Function inside a super genie(Pop-up)

Hi.

I'm trying to figure out how to re-use the variables inside the PopUpPage.

Here's a link to the function im trying to use inside my popup.

proscada.ru/ctkbase.en/resources/attachments/q4572/exec-guid36c264eab1aa4e048470d7d23cdeb0c2.ci

This simple function works in the genie but not in a super genie.

//MouseButtonDown

ExecEx("%Drawing%")

I've tried replacing the % sign with ? and lots of other ways, with no success. (The function still works if I just type in a "direct" path to open a folder., but I want to use a variable, that I can edit)

FUNCTION

PopUpPage(INT X,INT Y,INT Mode, STRING Drawing)

WinNewAt("!PopUpPage",X,Y,Mode);
SleepMS(25);
WinTitle("TITLE");

Got any ideas?

Thanks in advance.

Robin

Parents
  • I'll try to explain by pictures, I've tried to make it more simple, since everything is in swedish and there will just be confusion with lots of tags.

    The genie

    Same genie (cropped out mode, just so you can see the part about Drawing)

    "Genie form substitution" NOTE, Here's also the substitution for Drawing, I just cropped the pictures, since the variables are in swedish.

    PopUpPage with a go-to button

    Another page/super genie
    Appearance, using the ass function.

    Same page as above(Infopage)

    The problem https://softwareforums.aveva.com/cfs-file/__key/system/emoji/1f61b.svg

    FUNCTION

    PopUpPage(INT X,INT Y,INT Mode,STRING Drawing)

    Ass(-2,1,Drawing+"_o_MAN",0);
    Ass(-2,2,Drawing+"_o_AUT",0);
    Ass(-2,100,"'"+Drawing+"'",0);

    WinNewAt("!PopUpPage",X,Y,Mode);
    SleepMS(25);
    WinTitle(Drawing+" Info");

    END

    So to sum things up, all I want to do is to use a substitution for the STRING Drawing (example: Bird, and if I press the button it will open up a picture of a bird), which works fine if I use the ExecEx function in the circle/genie.

    However, when trying to use the ExecEx function in one of the super genies it doesn't work with either the % sign or the ?

    I hope this was a better explanation https://softwareforums.aveva.com/cfs-file/__key/system/emoji/1f603.svg

Reply
  • I'll try to explain by pictures, I've tried to make it more simple, since everything is in swedish and there will just be confusion with lots of tags.

    The genie

    Same genie (cropped out mode, just so you can see the part about Drawing)

    "Genie form substitution" NOTE, Here's also the substitution for Drawing, I just cropped the pictures, since the variables are in swedish.

    PopUpPage with a go-to button

    Another page/super genie
    Appearance, using the ass function.

    Same page as above(Infopage)

    The problem https://softwareforums.aveva.com/cfs-file/__key/system/emoji/1f61b.svg

    FUNCTION

    PopUpPage(INT X,INT Y,INT Mode,STRING Drawing)

    Ass(-2,1,Drawing+"_o_MAN",0);
    Ass(-2,2,Drawing+"_o_AUT",0);
    Ass(-2,100,"'"+Drawing+"'",0);

    WinNewAt("!PopUpPage",X,Y,Mode);
    SleepMS(25);
    WinTitle(Drawing+" Info");

    END

    So to sum things up, all I want to do is to use a substitution for the STRING Drawing (example: Bird, and if I press the button it will open up a picture of a bird), which works fine if I use the ExecEx function in the circle/genie.

    However, when trying to use the ExecEx function in one of the super genies it doesn't work with either the % sign or the ?

    I hope this was a better explanation https://softwareforums.aveva.com/cfs-file/__key/system/emoji/1f603.svg

Children
No Data