Page 1 of 1

Bug in TSay

Posted: Sun Dec 18, 2005 9:56 pm
by Enrico Maria Giordano
Clicking on the button of this sample:

Code: Select all

#include "Fwce.ch"


FUNCTION MAIN()

    LOCAL oWnd, oSay

    LOCAL cVar := "Test"

    DEFINE WINDOW oWnd

    @ 1, 1 SAY oSay VAR cVar

    @ 3, 1 BUTTON "Change";
           ACTION MSGINFO( oSay:VarGet() )

    ACTIVATE WINDOW oWnd

    RETURN NIL
you will get

Message not found TSAY:VARGET

EMG

Posted: Sun Dec 18, 2005 10:28 pm
by Antonio Linares
Enrico,

Same as Class TControl Method VarPut(). It was not implemented yet. Its already included for next build:

Code: Select all

   METHOD VarGet() INLINE If( ValType( ::bSetGet ) == "B", Eval( ::bSetGet ),)
Thanks for the feedback :)

Posted: Mon Dec 19, 2005 7:41 am
by Enrico Maria Giordano
Thank you!

EMG