Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE status code (last 16 bits of return code) how to che
Message
From
02/07/2003 05:18:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/07/2003 00:13:42
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00805583
Message ID:
00805988
Views:
44
>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)
  * Previous code
else
  * Do whatever with null return
endif
Or (Assuming 0 could be used in place of null):
lcreturncode=nvl(xx.setup(hNext), replicate(chr(0),4)) && Return 0 if null
* Previous code
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform