Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass array to function as parameter

Status
Not open for further replies.

MrDontKnowNothing

Programmer
Jun 26, 2003
94
DE
hi everyone,

when i tried to pass on an array, it complains that arrayname.prg does not exist.
so i tried to tell the type of parameter, but i haven't found the type array...

cheers

alex
 
=MyFunction(@MyArray)

You need to use the @ symbol before your array to send it by reference.

Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
Also you can declare the existing array in the function as EXTERNAL ARRAY arrayname
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top