Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to find Unknown la_array
Message
From
11/01/2002 17:20:15
Chris Berthold
The COMMERCIAL Group, Inc.
Sarasota, Florida, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00603765
Message ID:
00603796
Views:
25
>>>>I have an array that is in a visual class used on a form. In a method of that class I set la_array[1,1] = "MAIN". When I compile the application that includes that form I get Unable to find Unknown la_array. I've tried putting EXTERNAL ARRAY la_array before the form is called in the main code and after the array is declared but that didn't do it. Does anyone have any suggestions?
>>
>>>>If you are using this array in more than method of the form than you should make it a property of the form otherwise it would be only visible in the method where it was declared.
>>
>>I've declared the variable in the code prior to calling the form with the variable. If I ignore the error message generated the code works just fine. Its just really annoying to have to ignore it when I know there isn't a problem.

>I think there's a problem because you're breaking incapsulation of your form by using variables from the calling program instead of passing them as parameters.

But you can declare a normal variable and use it anywhere in that form or any visual classes that are in that form and foxpro will not generate this error. It almost seems like it thinks that la_array should be a UDF which it can't find!??!?!

lc_variable = "MAIN"

DO FORM myform
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform