Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array Problem
Message
De
21/08/2013 10:31:48
Mike Yearwood
Toronto, Ontario, Canada
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP3
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01580886
Message ID:
01580892
Vues:
74
>>Hi Gang!
>>
>>My fellow colleague at work has this problem. He has this in some code
>>
>>
>>PROCEDURE getArrayElement
>>      PARAMETERS lnElement
>>      pcTheData = laWarnLbl[lnElement]
>>      RETURN pcTheData
>>ENDPROC
>>
>>
>>The above snippet of code is giving me the “invalid subscript reference” error on the “pcTheData = laWarnLbl[lnElement] line.
>>
>>The value of lnElement at this point is 1.
>>
>>And laWrnLbl is dimensioned to 6.
>>
>>Thanks
>
>Could it be that the array laWarnLbl is local to another procedure? And not in scope within GetArrayElement?

He would get a different error message. File laWarnLbl is not found.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform