Page 1 of 1

Bug in TBar?

Posted: Tue Oct 16, 2007 7:47 am
by Enrico Maria Giordano
With the latest libs I get

Code: Select all

Error BASE/1004  Class: 'NIL' has no exported method: OBAR
running the following sample:

Code: Select all

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oPrn

    PRINT oPrn PREVIEW
        PAGE
        ENDPAGE
    ENDPRINT

    RETURN NIL
EMG

Posted: Tue Oct 16, 2007 8:10 am
by nageswaragunupudi
Guess RPreview is checking for oBar of WndMain(). In this example WndMain() returns NIL. This is my guess but this is the most likely possiblity.

Mr. Antonio to Fix it in notime.

Posted: Tue Oct 16, 2007 8:11 am
by nageswaragunupudi
Sorry, I meant
Mt Antonio "can" fix in no time.

Posted: Tue Oct 16, 2007 8:15 am
by Antonio Linares
Fixed :-)

Thanks

Posted: Tue Oct 16, 2007 9:54 am
by Enrico Maria Giordano
Sorry, now it gives

Code: Select all

Error BASE/1004  Class: 'NIL' has no exported method: L2007
EMG

Posted: Tue Oct 16, 2007 10:02 am
by Antonio Linares
Fixed, thanks Enrico :-)

Posted: Tue Oct 16, 2007 10:03 am
by nageswaragunupudi
It is the same issue. The intention was to ascertain if the WndMain()'s oBar and oMsgBar's l2007 is true.

Another peaceful look at the code will bring out where all the nil checks are to be made.

Posted: Tue Oct 16, 2007 10:04 am
by Antonio Linares
Please check with the new LIBs just sent, thanks!

Posted: Tue Oct 16, 2007 10:06 am
by Enrico Maria Giordano
Sorry, no change.

EMG

Posted: Tue Oct 16, 2007 10:11 am
by Antonio Linares
Damn, I left one. Fixed :-)

Posted: Tue Oct 16, 2007 10:13 am
by Enrico Maria Giordano
It's ok now, thank you.

EMG