Return value from vb exe

How can we return a value from a Vb exe
as we have only unload me or end to close an application

As we do in a simple c code
int main()
{
if (param1 == 1)
    return 2 ;
return 1;
}
sreevani_msAsked:
Who is Participating?
 
bhagyeshtCommented:
1. you can write to a text file and read the output (prefered if integrating with ERP systems)
2. use ExitProcess API (prefered thro batch files)
0
 
AlexFMCommented:
I think my answer is OK.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.