>Hi Citin,
>
>The function I'm calling returns a .NULL. when I call it as follows:
>
>lcreturncode=xx.setup(hNext) && Where hNext is the active window.
>When I try to run the code you provided I get the error invalid data
>type because of the .NULL. returned. How do I capture the return code
>into the lcreturncode variable to then process with the code you
>provided.
>
>Thanks in advance.
>
>Gary
Returning null ??? Anyways then check for null return first :
lcreturncode=xx.setup(hNext)
if !isnull(lcreturncode)
else
endif
Or (Assuming 0 could be used in place of null):
lcreturncode=nvl(xx.setup(hNext), replicate(chr(0),4))
Cetin