Since I have been searching for a solution for 30 minutes right and cant seem to put a correct string combo in the search box I asked probably a simple question.
I want to stop a produre from going on once I get to a certain point in a IF statement. Anyway to do this?
Stopping a procedure
Stopping a procedure
Insanity is over rated, unless you can join me in mine.
Don't post questions at work
Don't post questions at work
Don't post questions at work
Don't post questions at work
Don't post questions at work
Don't post questions at work
- Fluid Byte
- Addict
- Posts: 2336
- Joined: Fri Jul 21, 2006 4:41 am
- Location: Berlin, Germany
Like this?
Code: Select all
Procedure MyFunction(Value)
If Value = 10
ProcedureReturn 0
EndIf
MessageRequester("Notice","This dialog will never show!",64)
EndProcedure
MyFunction(10)
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
- Fluid Byte
- Addict
- Posts: 2336
- Joined: Fri Jul 21, 2006 4:41 am
- Location: Berlin, Germany
If you don't intend to use inline assembly yes, otherwise no.Psychophanta wrote:Don't need to return any value, just ProcedureReturn is what you need to finish and exit from the procedure.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
I get your point (ProcedureReturn returns EAX when no value is given) but itFluid Byte wrote:If you don't intend to use inline assembly yes, otherwise no.Psychophanta wrote:Don't need to return any value, just ProcedureReturn is what you need to finish and exit from the procedure.
doesn't matter - Rookie just wants to exit the procedure. Psychophanta is right.
Good programmers don't comment their code. It was hard to write, should be hard to read.