>>A piece of code that we have in our VFP 5 & 6 (works fine) build reads:
>>
>>form A
>>public dime allheaders[45,3]
>>do form B
>>
>>form B
>>external array allheaders
>>
>>generates and error when we try to build it in VFP 9
>>"unknown allheaders - undefined"
>>
>>Can anyone help?
>
>You can pass array as parameter or make it a property of _SCREEN. It's not a good idea to use global variables anyway.
LOCAL allheaders[45,3]
>do form B WITH @allheaders
>* or
>_SCREEN.Addproperty("allheaders[45,3]")
>
Thanks for the input, Sergey.
We changed
public dime
to
public array
and it all worked.
Regarding Public Variables, that is a whole 'nother discussion.
This particular code piece was moved from our DOS version written in 1988.
We cannot change that part at this time.
Glenn