General information
Category:
Coding, syntax & commands
Gerard,
Check out the AddProperty method. It should do what you want. I think this is VFP6 and later. The Help doesn't state a limit, but there *may* be one.
As to private to the form, I'm not sure what you mean. Since a property has to be hierarchically addressed, it's sort of 'private' intrinsically.
good luck
Jim Nelson
>Is there a way to dynamically, at run time, create Properties and make them private to the form ?
>
>If this is possible, I could cycle through each relevant file, and make each field a Property of the form.
>
>Regards,
>
>Gerard
>
>
>
>
>
>>Gerard,
>>
>>If you do that, each variable will be local to each method, rather than to the form. IOW, if you have variable x in the init() and in the when() methods, they will not be the same variable.
>>
>>>
>>>If I make all the Memory variables lcoal,by looping around every field in a particular file, will these memory variables not then be local to the screen and not interfere with a second instance. If this is the case, I should not need to set up a Screen object to hold the memory variables ?
>>>
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only