jojovalenton
2nd May 2018, 10:52
hi,

pls help on how to use get in afs variable, system saying it must be call by reference but putting ref in is no allowed outside function. thanks.

stpapi.get.field("whinh5600m000","whinh501.pono",str$(o.pono))

regards,
jojo

vahdani
2nd May 2018, 12:22
Hi,

you have to do something like the following:

|Define return field as string!
string l.pono$(4)
|What we actually want is this!!
domain tcpono l.pono

...
stpapi.get.field("whinh5600m000","whinh501.pono", l.pono$)

|Convert the returned string variable to long:
l.pono = lval(l.pono$)

jojovalenton
3rd May 2018, 09:25
hi vahdani,

thanks for reply. i will this on my afs.

regards,
jojo