Jump to content
Sign in to follow this  
MiMac

Return Array or String on Exit

Recommended Posts

Hey everybody,

I have a question about executable script.

Is it possible that the script.exe returns a string or an array instead of a code number?

If yes, what is the method to so that?

Thanks for your reponses.

MiMac.

Share this post


Link to post
Share on other sites

@picaxe, that is a Function return... I think he is looking for an "exit code" return... but maybe I misunderstood

No, you are right danwilli.

My question is for an exit code of an executable like "script.exe".

Share this post


Link to post
Share on other sites

@danwilli you're right, it is possible to return a string from a compiled exe, see here via stdout, don't know about an array

Edited by picaxe

Share this post


Link to post
Share on other sites

@danwilli you're right, it is possible to return a string from a compiled exe, see here via stdout, don't know about an array

Thanks for your response.

I dont' have time now to test it, but i'll try next week.

MiMac.

Share this post


Link to post
Share on other sites

I do not think you can use an array....

in fact... I get issues if I use a number over 9 digits

IE:

Exit(987654321) gives me an exit code of: 987654321

-BUT-

Exit(9876543210) gives me an exit code of: 1286608618

strange

Yes, i know that Exit() doesn't work. It can return only "code". But, i would like to return a string like "Error" or "azertyuiop" (It's just examples :) ).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...