1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Using external include files in Flex 4.6

Discussão em 'StackOverflow' iniciado por fdantas, Setembro 11, 2015.

  1. fdantas

    fdantas Administrator Moderador

    How can I insert pieces of code into MXML that are included at compile time in the code, such as Progress includes ? For example : in Progress I use this way to do what I want.

    MyInclude.i

    DEF VAR myVar AS CHAR NO-UNDO.
    FUNCTION fnSetChar RETURNS LOGICAL:
    ASSIGN myVar = 'test'.
    END FUNCTION.


    MyProgram.p

    {MyInclude.i}
    MESSAGE fnSetChar() SKIP myVar
    VIEW-AS ALERT-BOX BUTTONS OK.


    There is many ways to use includes in Progress, passing parameters, reusing codes, etc.

    I would like to know if anyone have an idea how can I do something like this in Flex. i.e.:

    <fx:Declarations>
    //include the content of the "include file" here in compile time
    </fx:Declarations>


    Sorry for my English. Hope anyone can help me with this.

    Thanks.

    Continue reading...

Compartilhe esta Página