Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays
Message
 
 
To
25/05/2001 09:44:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Arrays
Miscellaneous
Thread ID:
00510432
Message ID:
00511488
Views:
17
>I suppose that I was detoured from doing that because every method i've tried causes an build time error ( including the three lines you sent ); how can that build time error be removed?
>
>local array myarray[1]
>do form myform with myarray
>
>In the form's Init:
>lparamaters tamyarray <-- build error - "Unable to Find Unknown "

The compile time "error" is a warning because the compiler thinks you are trying to access a program since you haven't explicitly dimesnioned an array in the current method.

You can include

EXTERNAL ARRAY tamyarray

in the Form's Init or you could create a dummy procedure in your Main program like the following (technique courtesy of a recent Craig B. message):
function CPFakeOut

PUBLIC ARRAY taMyArray[1]
return
Never call the procedure so the array will never get created but it's enough to make the compiler stop complaining.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform