Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Visual Promatrix with the existing application
Message
De
05/07/2009 14:10:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual ProMatrix
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01408759
Message ID:
01410179
Vues:
66
This message has been marked as a message which has helped to the initial question of the thread.
>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
Fil
Voir

Click here to load this message in the networking platform