Call Macro + jump to Connection Point..
Posted: Sun May 11, 2014 2:04 pm
Hi,
i have two questions:
is it possible to make in Main a Call Macro with jump to Connection Point
or other
is it possible to jump from Main to a Connection Point outside the Main .. to a Connection Point in a Macro
..
i think this is not the functionally from a Goto Connection Point right?
so i must do it by code like this?
i make a new Makro and named this to "pointA"
in the Makro as named "pointA" i write my Code for a "ConnectionPoint..pointA"
i make in main a call Macro and call "pointA" if i will "jump to a connection Point"
little confuse i know.
I Hope i have declare fine for a Help in this.
I will make a Menue for LCD like a switch
key pressing will count up or count down the MenuPoint as Integer ( Byte 0..255)
pseudo in pascal
case MenuePoint of
1: JumpTo mnu_01 | Call Macro ...... // As a Macro.. or a Connection Point in a Macro or a Connectionpoint...
2: JumpTo mnu_02
3: JumpTo mnu_03
4: JumpTo mnu_04
5: JumpTo mnu_05
6: JumpTo mnu_06
7: JumpTo mnu_07
end // Case
..as Label
:mnu_01
LCD.Print("Menue 1")
:mnu_02
LCD.Print("Menue 2")
:mnu_03
LCD.Print("Menue 3")
...
or as own Makro...
"mnu_01"
begin
LCD.Print("Menue 01")
end
Thank for Tip!
Best wishes
Rudi
i have two questions:
is it possible to make in Main a Call Macro with jump to Connection Point
or other
is it possible to jump from Main to a Connection Point outside the Main .. to a Connection Point in a Macro
..
i think this is not the functionally from a Goto Connection Point right?
so i must do it by code like this?
i make a new Makro and named this to "pointA"
in the Makro as named "pointA" i write my Code for a "ConnectionPoint..pointA"
i make in main a call Macro and call "pointA" if i will "jump to a connection Point"
little confuse i know.
I Hope i have declare fine for a Help in this.
I will make a Menue for LCD like a switch
key pressing will count up or count down the MenuPoint as Integer ( Byte 0..255)
pseudo in pascal
case MenuePoint of
1: JumpTo mnu_01 | Call Macro ...... // As a Macro.. or a Connection Point in a Macro or a Connectionpoint...
2: JumpTo mnu_02
3: JumpTo mnu_03
4: JumpTo mnu_04
5: JumpTo mnu_05
6: JumpTo mnu_06
7: JumpTo mnu_07
end // Case
..as Label
:mnu_01
LCD.Print("Menue 1")
:mnu_02
LCD.Print("Menue 2")
:mnu_03
LCD.Print("Menue 3")
...
or as own Makro...
"mnu_01"
begin
LCD.Print("Menue 01")
end
Thank for Tip!
Best wishes
Rudi