• I know this is a very general code, and it can not be reproduced consistently.
    It does not happen to every designer of the project. It seems to happen most often
    when using the menu or a PML menu of "buttons". Some designers love it, others hate it.
    Once the error occurs, the only thing that works is the command line.
    Nothing on the menu works. Only solution is to type monit to exit
    any ideas?
    Thanks
    Allan
  • These are the resulting codes:
    (2,779)   Method
  • 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]