Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GETPEM and array properties
Message
From
18/04/2005 12:24:49
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01005796
Message ID:
01005838
Views:
15
I understand, I was trying to test if I can use GETPEM() as opposed to EVALUATE() since we are actually evaluating the property runtime. I was hoping that GETPEM() will get me faster performance.

>I am afraid, it is not only in VFP8: 'TestArray[9]' is not a property of OT, but TestArray is the property. You may use this:
>?getpem(this,'TestArray') &&to get the first element value
>or
>?this.TestArray[9] to get the 9th element value
>
>


>>Hi all,
>>In VFP 8, I cannot use GETPEM() for an array element of an array property. Is this really the case? What is the alternative?
>>
>>
>>oT = createobject('cusTest')
>>oT.TestGetPem()
>>define class cusTest as custom
>>  dimension TestArray[10]
>>  procedure TestGetPem()
>>     ?getpem(this,'TestArray[9]') && error
>>  endproc
>>enddefine
>>
ramil
~~ learning to stand still
Previous
Reply
Map
View

Click here to load this message in the networking platform