>>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?
>
>VFP6 allows you to add properties programmatically at runtime. It's not an option for VFP5.
Ummmm.... didn't KenX have some cool thing for this over at ClassX.com?
Roxanne M. Seibert
Independent Consultant, VFP MCP
Code Monkey Like Fritos