Parents
  • Hi Sir Allan,

    Try to check the codes make sure there is "endmethod" before difining a new method.

    ex. (collecting attachment)

    [COLOR=#ff0000]define method .copyatta()[/COLOR]

    var !collatta COLLECT ALL ATTA FOR CE
    !myarray = object array()
    !size = !collatta.size()

    !saveatta = !!ce
    !cenamn = NAMN OF CE

    do !x from 1 to !size
     $!collatta[$!x]

        !NAME = NAME
        !card = |NEW ATTA COPY | + |$!NAME|
        !myarray.append( !card )
    enddo

    !!ce = $!saveatta


    !myoutput = |c:\mark\collatta.txt|
    !MyFile = object FILE ( !myoutput )
    !MyFile.WriteFile(|OVER|,!myarray)
    !MyFile.close()

    [COLOR=#ff0000]endmethod  [/COLOR][COLOR=#00ff00]<------------ checked this!!!.[/COLOR][COLOR=#ff0000]

    [/COLOR]---------------------------------------[COLOR=#ff0000]

    [COLOR=#ff0000]define method .MARKDATA()  [COLOR=#00ff00]<------------ you're method!!!.[/COLOR][/COLOR]
    ----
    ----
    ---
    --
    [COLOR=#ff0000]endmethod
    [/COLOR]

    [/COLOR]hope this will help.

    Regards
    ;)[COLOR=#ff0000][/COLOR]
Reply
  • Hi Sir Allan,

    Try to check the codes make sure there is "endmethod" before difining a new method.

    ex. (collecting attachment)

    [COLOR=#ff0000]define method .copyatta()[/COLOR]

    var !collatta COLLECT ALL ATTA FOR CE
    !myarray = object array()
    !size = !collatta.size()

    !saveatta = !!ce
    !cenamn = NAMN OF CE

    do !x from 1 to !size
     $!collatta[$!x]

        !NAME = NAME
        !card = |NEW ATTA COPY | + |$!NAME|
        !myarray.append( !card )
    enddo

    !!ce = $!saveatta


    !myoutput = |c:\mark\collatta.txt|
    !MyFile = object FILE ( !myoutput )
    !MyFile.WriteFile(|OVER|,!myarray)
    !MyFile.close()

    [COLOR=#ff0000]endmethod  [/COLOR][COLOR=#00ff00]<------------ checked this!!!.[/COLOR][COLOR=#ff0000]

    [/COLOR]---------------------------------------[COLOR=#ff0000]

    [COLOR=#ff0000]define method .MARKDATA()  [COLOR=#00ff00]<------------ you're method!!!.[/COLOR][/COLOR]
    ----
    ----
    ---
    --
    [COLOR=#ff0000]endmethod
    [/COLOR]

    [/COLOR]hope this will help.

    Regards
    ;)[COLOR=#ff0000][/COLOR]
Children
No Data