Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preventing errors when passing an array to a procedure
Message
From
16/11/1999 07:40:07
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00291398
Message ID:
00291400
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform