Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dimension & Arrays
Message
From
13/08/1997 12:15:20
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00044461
Message ID:
00044468
Views:
35
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform