03-19-2005, 01:44 AM
:oops: This is very embassing for me to be posting a question in a noob forum, but it is a noob question after all....
Ok, lets say if I had this SUB.
Now, I want to have this line of code in my program:
How do I return a boolean value from a sub?
Let's say here's the SUB:
How do I return Bolvar So the IF checks it like in the other line. One more thing while I'm here: what is the symbol for a boolean variable?
Did I explain that well? :lol:
Ok, lets say if I had this SUB.
Now, I want to have this line of code in my program:
Code:
IF My_Sub var1%, var2%, var3$ THEN Do_Something
How do I return a boolean value from a sub?
Let's say here's the SUB:
Code:
SUB My_Sub (var1%, var2%, var3$)
var1% = var2%
Bolvar = -1
END SUB
How do I return Bolvar So the IF checks it like in the other line. One more thing while I'm here: what is the symbol for a boolean variable?
Did I explain that well? :lol: