bizen99
6th July 2005, 17:46
Hi,

I want to pass a name field to a function,...

tdsls045.orno = 123345
pass.func("tdsls045.orno")

and then in the function read this field,....

domain tcorno orno.aux

orno.aux = "tdsls045.orno", => orno.aux = 123345

but with any field,...

thanks
bizen

patvdv
10th August 2005, 23:53
Please post your own solution rather than deleting your thread.

günther
22nd August 2005, 11:39
I suggest using the expr functions, e.g.


function pass.func(domain tcmcs.str255 str)
{
long expr.id
long long.value

expr.id = expr.compile(str)
long.value = l.expr(expr.id)
expr.free(expr.id)

| now long.value contains the VALUE of the global variable whose NAME
| you passed as string str.
}