>>>>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].
>>
>>use... PUBLIC ARRAY instead of DIMENSION, just remember to RELEASE it when you're done (prob in the form.release)
>>
>>HTH
>>
>>Matt
>
>Nope. It should be Form.property-array.
IMHO, it depends on whether he's using this (quite large) array to hold items like captions for all forms or whether it's form specific. If the former, either a Public array or an Application property-array (if he has an application object) would be required.
Actually, Jim, I'm curious what a 999 row array is used for if it isn't table data?
Barbara
a