Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
With ... endwith and objects
Message
From
23/02/2006 10:28:28
 
 
To
23/02/2006 09:12:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01098462
Message ID:
01098508
Views:
10
>I want to use WITH .... ENDWITH with different objects that will be defined at the rum-time. How can I do that?

Try something like this:
LOCAL loMyObject AS MyObject OF MyClass.vcx
loMyObject = thisform.AddObject("MyObject","MyClass")
WITH loMyObject
  ...
ENDWITH
Previous
Reply
Map
View

Click here to load this message in the networking platform