Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dimension & Arrays
Message
De
13/08/1997 12:15:20
Edward Crawford
City Facilities Management
Glasgow, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00044461
Message ID:
00044468
Vues:
30
>I was wonder if anyone could help me with an array problem.
>
>I have a database which populates an array like follow
>
>DIMENSION xTemp(999,2)
>
>store "Hello" to xTemp(500,1) and so on.
>
>Now what I would lile to do is to get the value from a memory location
>
>thisform.lbLabel.caption = xTemp(500,1)
>
>This would then give me a caption that equal "Hello"
>
>What i get is ( program xTemp is not found )
>
>Thanks for any help
>
>James

James:

Foxpro thinks that you are trying to call a method called xTemp(), it is not seeing it as an array name. You should check and make sure that the array is properly scoped. Run debug and see if Foxpro sees xTemp as an array when you use it. You may also want to use the [] rather than the () to designate the array elements to cut down on user confusion as well.

Ed
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform