Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays
Message
 
 
À
25/05/2001 09:44:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Arrays
Divers
Thread ID:
00510432
Message ID:
00511488
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform