Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Property default value
Message
 
 
To
24/10/2008 00:42:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01356658
Message ID:
01356811
Views:
17
>Sergey--
>
>
>>>How to I programmatically view the Default/Initial Value for a property I added to a form?
>>
>>The default value of any custom property in a class/form is .F.
>>That's what you get when you choose 'Reset to default'.
>
>Getting closer. Say I add a property "abc" to a form using the New Property dialog box, There is an Edit Box there entitled "Default/Initial Value". In my code I would like to restore abc to the value in Default/Initial Value. You are right--RestoreToDefault set abc to .f. I need to reset abc to the value in Default/Initial Value.
>
>Tim

I have a feeling you need to play with the assign and access methods for this property. Also this info may be in MemberData somewhere. Did you try to examine SCX file after you set the default value ?

On the first access of this property you can add a hidden property with the same name but starting with the _ However, sounds a bit like a kludge.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform