I remember Tomasz had said that if we pass values by reference, built in functions do not work, or give error message. I do not find the documentation where this is explained, after some googling. Is this explained somewhere?
printf gives error message. However NZ() function does not. I setup an example that demonstrates it:
function myFunc( fType )
{
local ltmp;
ltmp = fType;
fType = 26;
ftype[4] = 30;
ltmp = fType;
ftype=Nz(ftype); // This command messes up the ftype var
ltmp=Nz(ltmp); // This command is ok
ftype = ltmp; // a way to fix it
return true;
}
local
xx1, xx2;
xx1 = 5;
xx1[2]=Null;
xx1=Nz(xx1); // This command is ok
xx2 = myFunc( &xx1 );