Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Createobject
Message
 
 
To
25/12/2002 03:19:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00735703
Message ID:
00735743
Views:
7
You can do that w/o macro substitution.
STORE createobject(lcClassName) TO ("this." + lcObjectName)
>
>Victor,
>Isn't this a duplication of createobject() or newobject(). If you could provide why you need to do it we can have better ideas. Macro substitution and eval() would work :
>
>procedure createObject
>lparamaters lcClassName, lcObjectName
>  this.&lcObjectName = createobject(lcClassName)
>*  this.oMyobject = this.&lcObjectName
>  with evaluate('this.'+lcObjectName)
>     .enabled = .t.
>  endwith
>endproc
>
Cetin
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform