Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a string from EXE
Message
 
 
To
22/06/2004 12:23:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00914425
Message ID:
00916102
Views:
11
>I used the term empty in my post loosley. If the registry key is not there, it does return a .NULL. String. I step through the code in the debugger and do get into that IF, so I know that part works. It just doesn't seem to return any vals. The program will exit, but I can't grab that error code.

I used following batch file for testing if return code is what I expected. You've to run it from Command promp otherwise you wouldn't see result.
@echo off
h:\temp\test.exe
if errorlevel 257 goto other
if errorlevel 256 goto l256
:other
echo Other RC
goto end
:l256

echo RC=256

:end
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform