Information générale
Catégorie:
Visual ProMatrix
Versions des environnements
Network:
Windows 2003 Server
>Hank and everyone,
>
>I probably don't understand something.
>
>If you specify lLookupDescription property to be .T., then the textbox correctly shows the description, but how now can I get the ID? The textbox.value is the description.
>
>I thought it was the only problem with the unbound textbox. But a minute ago I created bound textbox (drag the textbox from the table into the form, then choose builder). Then I specify cLookup properties for the textbox.
>
>The form shows information OK, but the value of the textbox becomes the description now.
>
>I can use a workaround trick, I guess, but is it supposed to behave this way? Should I read the value from the cursor's field instead?
>
>Thanks.
In VPME9.0, and probably 9.1, the lookup textbox and combobox stores the real controlsource in cSaveControlSource, or some such. When the value is changed, the framework populates the value back to whatever the cSaveControlSource happens to be. There are also one or more u*val properties on the controls; e.g., uLastVal. At any given point you can find the PK value of the textbox in that variable. The names might have changed for 9.1, but something like that will be there.
Hank
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement