VARIABLE CONTENT AS COMMAND

5 years 2 months ago #29533883 by pamon
HI EVERYBODY.

Is ther any way to use the content of a variable as a command or reference? or create a command or macro or function?
supposing i want to store the word "TurnDo1on" in a variable named xyz and use the content of this variable in a gosub to execute block TurnDo1on: for example.

instead of writing :
GOSUB TurnDo1on

maybe something like:
GOSUB(TurnDo1on)

or:
GOSUB&TurnDo1on

Thank you.

Please Log in or Create an account to join the conversation.

5 years 1 month ago #29533946 by Gabriel_Isko
Replied by Gabriel_Isko on topic VARIABLE CONTENT AS COMMAND
Nothing like this is implemented in Microbasic, nor are parametric functions. You will most likely have to use a series of IF statements.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds