Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help about combobox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00463718
Message ID:
00463761
Vues:
16
Hi!

I usually put into combobox together with names such fields as ID value of records. Make it a last column. In the columnwidths property specify somethin like '200,100,0' - last '0' no space to display ID values in the combobox to hide them from users. Than, when name selected in combobox, code in the InteractiveChange event of combobox should fire and do following:
take ID key of record from the current row selected in combobox. It is following value:
val(this.List[this.ListIndex,nIDColumn])
where nIDColumn is the column number for ID keys.
Than use this ID value to query all other data for selected name and populate other controls by these data. If you already have table opened you can just use LOCATE command.

>how can I store combobox related value to an textbox or editbox
>for example: rowsource field is name, how can store his birthday to textbox or editbox
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform