On Fri, 12 Apr 2013, artur bala wrote:

>> I do supplya list of variables as a function parameter.
>> Is there a way, inside the function, to grasp the names of the variables in 
>> the list ?
>> I tried the argname() command but it just gives back the name of the list.

There's more than one way:

<hansl>
function void listfoo (list L)
   string s = varname(L)
   printf "L names = '%s'\n", s
   loop foreach i L
     printf "L %d: name = '$i'\n", i
   endloop
end function

open data4-10
list L = ENROLL CATHOL WHITE
listfoo(L)
</hansl>

Allin Cottrell

Reply via email to