FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Bug in Combobox
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Bug in Combobox
Posted: Sun Dec 18, 2005 09:45 PM
In the following sample:

#include "Fwce.ch"


FUNCTION MAIN()

    LOCAL oWnd, oCbx

    LOCAL aVar := { "A", "B", "C" }

    LOCAL cVar := ""

    DEFINE WINDOW oWnd

    @ 1, 1 COMBOBOX oCbx VAR cVar;
           ITEMS aVar

    oCbx:SetFocus()

    @ 3, 1 BUTTON "Change";
           ACTION ( oCbx:VarPut( "B" ), oCbx:Refresh() )

    ACTIVATE WINDOW oWnd

    RETURN NIL


if you click on the button you get the following error:

Message not found TCOMBOBOX:VARPUT

EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Bug in Combobox
Posted: Sun Dec 18, 2005 10:22 PM
Enrico,

This method was missing from Class TControl:

   METHOD VarPut( uVal ) INLINE  If( ValType( ::bSetGet ) == "B",;
                                 Eval( ::bSetGet, uVal ),)


Already implemented for the next build.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM

Continue the discussion