Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Properties in vfp50
Message
 
To
20/02/1997 15:35:39
General information
Forum:
Visual FoxPro
Category:
User groups
Miscellaneous
Thread ID:
00021280
Message ID:
00021445
Views:
46
>>>Why do I want to add new properties to my object's
>>>property list?
>>
>>To store information that is then available to all methods, objects, code etc. in your form. For example, you might have a property frmIndex which stores the active index of the table showing in a grid. If the user wants to change how the data is ordered (from last name to zip code for example) you store the change to the form property.
>>
>>HTH
>>Barbara
>
>Does that mean I can use property like switches that I can set?
>
>Rob

Not exactly. Use properties like variables. For instance if you have a property to store the index tag name, (as above), then you would store the active tag in the property.

** User chooses to order by Last Name
if thisform.cIndex <> 'LAST'
sele NAMES
set order to tag Last
thisform.cIndex = 'LAST'
endif

Note that the code is skipped if the value didn't need changing.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform