LOCAL zz as Integer zz=0 zz = null =MESSAGEBOX(STR(zz,5))without zz=0 it gives the error.
local zz as Character zz=null =messagebox(val(zz)) && Should give an error too according to Help on VALworks.
>zz = .NULL. >? ISNULL(zz) ---> .T. > >? STR(zz,5) ---> Error: Function argument value, type, or count is invalid >? STR(.NULL.,5) ---> .NULL. > >? zz+"AA" ---> Operator/Operand type mismatch >? .NULL. + "AA" ---> .NULL. > >? NVL(zz+"AA","xxxxxx") ---> Operator/Operand type mismatch >? NVL(zz,"xxxxxx") ---> "xxxxxx" > >USE myTable >REPLACE c1 WITH .NULL. > >? c1 + "AA" ---> .NULL. >SCATTER MEMVAR >? m.c1 + "AA" ---> .NULL. > >zz=c1 >? zz + "AA" ---> .NULL. > >zz = .NULL. >? zz + "AA" ---> .NULL. > >RELEASE zz >zz = .NULL. >and all the errors return > > >>