Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GETPEM and array properties
Message
De
18/04/2005 12:24:49
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01005796
Message ID:
01005838
Vues:
14
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform