Callback functions
Posted: Sat Oct 07, 2017 4:19 pm
Is there a way to create a callback function in Flowcode?
I would like to create a macro that passes control to a separate macro to display instructions to the user. The macro itself will be 'generic' and ideally incorporated into a component in time - the method of instructing the user could vary widely (flash an LED or display a message on a LCD etc)
So - I'd like to pass a macro's 'address' to the routine as ?? Handle - DisplayInstructions() ?? where the routine will then call DisplayInstructions(1), DisplayInstructions(2) etc
(Just like callback function parameters in C)
Martin
I would like to create a macro that passes control to a separate macro to display instructions to the user. The macro itself will be 'generic' and ideally incorporated into a component in time - the method of instructing the user could vary widely (flash an LED or display a message on a LCD etc)
So - I'd like to pass a macro's 'address' to the routine as ?? Handle - DisplayInstructions() ?? where the routine will then call DisplayInstructions(1), DisplayInstructions(2) etc
(Just like callback function parameters in C)
Martin