Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class to Imitate Listbox
Message
From
05/09/2000 07:39:28
 
 
To
01/09/2000 10:58:51
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00411729
Message ID:
00412389
Views:
17
Carl:
If I understand what you are trying to accomplish, you can use an access/assign design. I've created properties called "fieldname" and "conversion" for all textboxes. Conversion has an access & an assign method. When the value in the table is different from what is to be entered or displayed in the textbox, I put "this.conversion" into the controlsource. In the Conversion.access, I convert the table value to what is to be displayed. In Conversion.assign, I convert it back. In the assign method, you need to make certain that you compare the current value of the textbox with the current value in the table. Don't do a replace if they are the same. VFP isn't smart enough to realize that you are replacing the old value with it's self and it indicates that the field has been changed and in our framework, advises the user that they have unsaved changes.

HTH
Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform