Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Functions
#1
if i write this

function'str ARRAY(str)'d int'p

then function has 2 arguments: 1string array d and 1 integer p
and function return a string.


1. now if i want a function to RETURN a string array (ARRAY(str) ), what is the code?

2. can a function returns more than 1 result? for example return 2 strings ?
#2
To return arrays, as well as multiple values, use reference arguments (with &).

function ... ARRAY(str)&r1 int&r2 str&r3

The caller passes a variable, and the function fills it.

More reading: http://www.quickmacros.com/help/QM_Help ... NTIPS.html


Forum Jump:


Users browsing this thread: 1 Guest(s)