Others Commands
DescriptionGoto <label>
This command is used to transfer the program directly to the labels position. Be cautious when using this function, as incorrect use could cause a program to crash...
Note: To exit a loop savely, you always should use Break instead of Goto.
DescriptionEnd [ExitCode]
Ends the program execution correctly. The 'ExitCode' optional parameter can be specified if the program need to returns an error code (widely used in console programs).
The 'ExitCode' can be further used e.g. with the ProgramExitCode() command.
DescriptionSwap <expression>, <expression>
Swaps the value of the both expression, in an optimized way. The both <expression> have to be a variable, array or a linked list element (structured or not) and have to be one of the PureBasic native type like long (.l), quad (.q), string etc.Example:
Hello$ = "Hello" World$ = "World" Swap Hello$, World$ Debug Hello$+" "+World$