|
Post by DJLinux on Mar 23, 2008 1:59:14 GMT -5
I miss END(return_coder)
Thanx Joshy
|
|
|
Post by Tom Mulgrew on Mar 23, 2008 4:49:30 GMT -5
What's END(return_coder)?
|
|
|
Post by DJLinux on Mar 23, 2008 5:29:45 GMT -5
END ' will end the exe without any return code END(1) ' will end the exe and returns 1 to the caller
ret=ExecuteProgram("httpsend.exe","-server test.com -pw ***** -upload test.html") if ret=0 then printr "ok" elseif ret=-1 then printr "can't start httpsend.exe" else printr "httpsend.exe got an error:" + ret end if
int main() ' the int is the return code (DOS,WINDOWS,LINUX,UNIX ...) or C/C++ Exit(code)
you don't know what are the return code is or is it a joke ;D
Joshy
|
|
|
Post by Empyrion Martyr on Mar 23, 2008 18:34:14 GMT -5
return_coder
|
|
|
Post by DJLinux on Mar 23, 2008 18:57:47 GMT -5
ah i see 
|
|
cameron
Posts

A new take on the old ASCII smiley face, because thats how you feel after 16 hours of coding.
Posts: 70
|
Post by cameron on May 31, 2008 6:54:50 GMT -5
You mean the datatype declarer for the function, even void was a datatype, I have to laugh at that because in all of C's wisdom the dudes in '74 left out a way to declare subroutines without using the function keyword, geez, sweet guys.
|
|
|
Post by Supermonkey on May 31, 2008 10:10:12 GMT -5
Say what now? Have you used C? You don't declare functions using any keyword... What djlinux was asking for was a way to set a return code upon completion of the programs execution, nothing to do with datatypes for functions.
|
|
cameron
Posts

A new take on the old ASCII smiley face, because thats how you feel after 16 hours of coding.
Posts: 70
|
Post by cameron on Jul 7, 2009 18:24:48 GMT -5
err, function as in <returntype> <functionname> (<params>), anyway, this is not right, as I found an way to make an psuedo-function (somewhat like an inlined function) using #define in C. For inst. #define addAB() (a+b) So I was wrong back then, eny way, they ommitted the return code ability of END in B4GL, they did that in VB too, THAT SUCKS, BRING BACK THE RETURN CODE!
int main() ... RET //For The Win!
|
|
|
Post by shadow008 on Jul 9, 2009 19:55:58 GMT -5
make a plugin maybe?
|
|
cameron
Posts

A new take on the old ASCII smiley face, because thats how you feel after 16 hours of coding.
Posts: 70
|
Post by cameron on Jul 9, 2009 20:37:07 GMT -5
That would probably be OVERKILL.
|
|