Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclass an entire library
Message
From
10/10/2002 12:11:31
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
10/10/2002 10:08:47
Victor Verheij
International Film Festival Rotterdam
Rotterdam, Netherlands
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00709736
Message ID:
00709902
Views:
17
>okay
>i replaced the statememt add class in the for loop for this one:
>
>CREATE CLASS (arrClasses[ix,1]) OF (lcNewClassLib) AS (arrClasses[ix,1]) FROM (lcSourceClassLib) NOWAIT
>
>I'm almost there, thanks to your code example, but...
>With the create class statement the class designer opens for everytime i go through the loop.
>
>Is there a way to NOT make this happen?

Yes:
oTempObj=newobject(arrClasses[ix,1], lcSourceClassLib)
oTempObj.SaveAsClass(lcNewClassLib, "b"+arrClasses[ix,1])
release oTempObj
I suggest adding a prefix to the name of the class, just to avoid ambiguity.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform