Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE status code (last 16 bits of return code) how to che
Message
De
02/07/2003 05:18:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
02/07/2003 00:13:42
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00805583
Message ID:
00805988
Vues:
43
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform