Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a Custom Class Programmatically?
Message
From
29/07/1999 00:20:04
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Create a Custom Class Programmatically?
Miscellaneous
Thread ID:
00247522
Message ID:
00247522
Views:
52
Is there any way to use structured programming commands within a class definition?

What I'd like to do is something like:

********************
LOCAL liPropertyCount, lcPropertyName

DEFINE CLASS SARTest AS Custom
FOR liPropertyCount = 1 TO 5 STEP 1
lcPropertyName = "nProperty" + LTRIM(STR(liPropertyCount))

&lcPropertyName = 0

ENDFOR

ENDDEFINE
***********************

but, of course, VFP5 complains on the FOR line.

Any ideas, anyone?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Next
Reply
Map
View

Click here to load this message in the networking platform