Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Reference
Message
From
26/12/2007 17:31:35
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01277566
Message ID:
01277640
Views:
31
>>How can I have a reference to an object like this?
>>
>>
>>loLine = 'loLine' + ALLTRIM(STR(ix))
>>&loLine = LineToObject(laLines[m.ix])
>>
>>
>>So that I can reference loLine5.Property if ix = 5 ?
>>
>>The above doesn't work.
>
>
>loLine = evaluate('loLine' + alltrim(str(ix))) && but should it be 'thisform.loLine' ?
>
>How are you creating these objects?

This is all PRG-based code.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform