fgl_lastaction()

fgl_lastaction() returns the name of the last triggered action.

Syntax:

CALL fgl_lastaction()

Possible values:

any action name (STRING)

Usage and examples

fgl_lastaction() takes no parameters and returns the name of the last triggered action as a string of characters:

CALL fgl_getlastwidgetid()

or

LET id_var=fgl_getlastwidgetid()

After triggering the action,

we get the result depending on its name:

Screenshots above come from the example program, fgl_lastaction-fgl_getlastwidgetid.

 

fgl_lastaction() can be used for any kinds of actions regardless of how they were declared:

e.g.,

MENU

  ON ACTION "accept"

<Button text="Button" visible="true" identifier="bt1" gridItemLocation="0,0,1,1" horizontalAlignment="Stretch" verticalAlignment="Stretch" margin="5,5,5,5">

    <Button.onInvoke>

        <ActionEventHandler type="actioneventhandler" actionName="act_bt1"/>

    </Button.onInvoke>

</Button>

 

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.