Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I know at runtime if a class is defined
Message
From
09/03/2004 05:08:50
 
 
To
09/03/2004 00:12:22
James Chan
Objectmastery Pty Ltd
Hawthorn, Australia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00884319
Message ID:
00884357
Views:
9
Why not do this:
* use ON ERROR on old VFP
ON ERROR *
for Loop = 1 to MaxClass
* TRY
    oObject = CreateObject(ConstructClassName(m.Loop))
    * do something
* CATCH
* ENDTRY
endfor
*restore error
ON ERROR
Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform