Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dimension & Arrays
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00044461
Message ID:
00044464
Vues:
27
>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

Array will be scoped for the snippet (event,method) where you issued DIMENSION, therefore if you issue thisform.lbLabel.caption = xTemp(500,1) from another snippet, you will get the error. Also (minor point) it's nicer to use xTemp[500,1].
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform