>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement