Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ISSUE: GETPEM can't return a array property
Message
De
06/09/2005 03:03:05
 
 
À
06/09/2005 00:37:03
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01046757
Message ID:
01046912
Vues:
25
>>>>Expected no errors:
>>>
>>>>ADDPROPERTY(_SCREEN,"AA[3]")
>>>>_SCREEN.AA[1]="AA[1]"
>>>>_SCREEN.AA[2]="AA[2]"
>>>>
>>>>? GETPEM(_SCREEN,"AA") && this return the first array element
>>>>? GETPEM(_SCREEN,"AA[1]") && Error
>>>>? GETPEM(_SCREEN,"AA[2]") && Error
>>>
>>>Since you have to use Type() instead of PemStat(,,5) I'ld have half guessed at it..
>>>
>>>regards
>>>
>>>thomas
>>
>>Thomas ?
>>
>>Where is PEMSTAT in my code ?
>Hi Fabio,
>
>perhaps my answer was a bit short...
>if you need to check for existance of array elements on property based arrays
>ADDPROPERTY(_SCREEN,"AA[3]")
>? TYPE("_Screen.AA[4]") =="U"
>? PEMSTATUS(_screen, "AA", 5)
>? PEMSTATUS(_screen, "AA[4]", 5)
>dimension _SCREEN.AA[5]
>? TYPE("_Screen.AA[4]") =="U"
>? PEMSTATUS(_screen, "AA", 5)
>? PEMSTATUS(_screen, "AA[4]", 5)
>
as you know, pemstat is of no use here and this is the context for:
>>>Since you have to use Type() instead of PemStat(,,5) I'ld have half guessed at it..
>The behaviour of Pemstat is similar to GetPem, insofar as indices are not supported.
>
>
>regards
>
>thomas

Certainly, but for PEMSTAT() this is acceptable,
while it is not for GETPEM().
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform