Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ALEN on property returns error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Divers
Thread ID:
01512305
Message ID:
01512321
Vues:
66
>Really? You can refer to the value of an array element with just the array name without an element reference? I did not know that.
>
>>Yes, ALEN() works on properties as well as long as it's an array.
>>Is the property hidden or private?
>>What is the size of array at the time of error?
>>
>>>
>>>I've got a strange problem. I've got an object 'oTask' that has an array property 'aFiles'. the following code returns an error
>>>
nCount = ALEN(oTask.aFiles,1)
>>>Returns an error "function argument type or count is invalid"
>>>While checking the value of
>>>
oTask.aFiles[1,1]
>>>Returns the expected value.
>>>
>>>I thought that ALEN() works on array properties as well as normal arrays variables. What am I missing here?
>>>
>>>Walter,

You could, but you will get the value of the first element:
DIMENSION aaa[3]

aaa[1] = 1
aaa[2] = 2
aaa[3] = 3
? aaa
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform