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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array Passing in DarkBasic

Status
Not open for further replies.

stevecal

Technical User
May 10, 2000
78
0
0
DK
I had some fun and games last night in moving data between user functions which are arrays. There is no way of returning an array as a result of a function call.

However you can use arrays by declaring your arrays as global at the top of your program; the values can then be accessed in any function you need, and their values will be persistent.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top