Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compile error
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00674791
Message ID:
00674802
Views:
24
The case doesn't matter. If you know the place in the form's methods code, where you use aEmployees array, put local array aEmployees[1] statement before creating this array. Are you sure, you don't pass this array into some functions? If yes, the second line in the function code (after lparameters statement) should read external array taEmployees

Also make sure, you don't use this array in report. If you do, you would have to declare it global and kill afterwards...

>Hi again Nadia,
>
>The array is local to the event, and so I don't bother with making it a property of the form.
>
>My problem is that, during compile, it seems to find a reference to "AEMPLOYEES" (note case) which I cannot find when searching through the form. I do find it when browsing the SCX file as mentioned below.
>
>Rgds
>
>
>
>>>Hi,
>>>
>>>I keep getting an error in compiling which says 'Unable to find Unknown AEMPLOYEES'.
>>>aEmployees is an array created and used in on of my forms. I've used Ctrl-F to search ALL objects on the form for code using it. The instances using it are valid and work when executed.
>>>Windows text search narrows it down to that form.
>>>I opened the form as a table and found a case-sensitive match to 'AEMPLOYEES' in the OBJCODE memo field of the record relating to the Form object itself.
>>>
>>>Any ideas how I can get rid of the error? I suspect it is a remenant of old code that I can't directly access.
>>>
>>>TIA
>>
>>How do you use this array? Can you create it as a property of form?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform