Extract word from string

edited 9:29AM in FastReport 4.0
Hello, I have a table in my dataBase which contains 10 fields including name, surname and nickname. I use a dialog box in my report which items comprises by (name + ' '+ surname + ' '+ nickname) asString. I want when a record checked to extract its name and surname in order to specify the record id from my table. Any Suggestions? Thanks.

Comments

  • edited 9:29AM
    If you use TfrxCheckListBoxControl in your dialog then:

    1. Create an array having the same count of items as the CheckListBox and which is sorted in the same way as items in the CheckListBox.

    2. Put an ID of each record from your database in this array.

    3. Finally when user finish the dialog you'll be able to verify which items [0..ItemsCount-1] of CheckListBox are check and inspecting the same item (by its numer) of the array you will get ID of your record without any need to analize the string.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.