Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Plugged
23
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 4th Nov 2003 20:46
what are the rules of access between functions and array do i have to pass array as parameters if so do i have to do every part of the array i want or all of the as like "array()"

function(array())
or
function(array(1),array(2),array(4))

the arrays are decleared at the beginning so they are global

thx

CLear Coder
Plugged
23
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 6th Nov 2003 21:46
*bump*

CLear Coder
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 6th Nov 2003 22:21 Edited at: 6th Nov 2003 22:24
Arrays are global by default so you can read/write to them from within functions.

If you only want the funtion to use the data from a single slot of the array then

abc(6)

function abc(i as integer)
print arrayname(i)
endfunction

would print the info in arrayname(6) to the screen.

Login to post a reply

Server time is: 2026-07-26 17:33:33
Your offset time is: 2026-07-26 17:33:33