Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ALEN on property returns error
Message
De
31/05/2011 10:14:12
Walter Meester
HoogkarspelPays-Bas
 
 
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:
01512330
Vues:
80
>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?

the property is not hidden, nor protected. Its declared within DEFINE CLASS with DIMENSION as a property. However changing this to using ADDPROPERTY() did not resolve the problem either.

WIthin the Task class, ALEN(THIS.aFiles,1) works without a problem. However if the object is assigned to a variable oTask, it just bombs, while accessing oTask.afiles[1,1] works without a problem.

The size really is immaterial; its the result of ADIR() with about a dozen files in it.

Really stumped.


>>
>>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,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform