BreakProcedure()

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by pantera.

I'd appreciate a command that breaks and returns from a procedure whenever i want instead of at the end of it.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> I'd appreciate a command that breaks and returns from a procedure
> whenever i want instead of at the end of it.

The ProcedureReturn command will exit a procedure as soon as it's
used... you can always return a null parameter if you don't need one.


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by pantera.

yepp, it sure does when you mention it :)
I must have been thinking of the vb syntax
(where you can change the returnvalue several times without exiting. Thought ProcedureReturn was like the function name)
Post Reply