Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preventing errors when passing an array to a procedure
Message
De
16/11/1999 07:40:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00291398
Message ID:
00291400
Vues:
20
>When building an EXE, I'm receiving errors when passing arrays to procedures/functions/forms.
>
>This will cause an error when compiling:
>DIME laMyArray[1]
>MyProcedure(@laMyArray)
>
>PROCEDURE MyProcedure(aMyArray)
>
>RETURN
>
>How can I prevent these type of errors from occuring?


Actually they're warnings not errors but boring to see. Before using it in the procedure ie: in first line after "parameters ..." declare it as external :

function myfunction
lparameters taMyArray
external array taMyArray
...

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform