Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Addproperty causing an error
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Addproperty causing an error
Miscellaneous
Thread ID:
00854147
Message ID:
00854147
Views:
59
Hi.
I have a comand as follows :
oObject.Addproperty('MyNewProperty')

The control Source of OObject happens to be :
Thisform.objMemVar.Myfield
(From a Scatter Name command)

When the Addproperty is being run, the ObjMemVar.Myfield does not exist and the Addproperty comes up with an error message. If I remove thew control Source, or change it to a property of the form that does exist when the Addproperty is being run, its ok.


It looks like the AddProperty does some sort of validation on the object and looks for a valid ControlSource property.
Unfortunately, this is not created until later on.

Has anybody come across this and know a way around it ?

Regards,

Gerard
Next
Reply
Map
View

Click here to load this message in the networking platform