Bug in Combobox

Post Reply
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Bug in Combobox

Post by Enrico Maria Giordano »

In the following sample:

Code: Select all

#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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Enrico,

This method was missing from Class TControl:

Code: Select all

   METHOD VarPut( uVal ) INLINE  If( ValType( ::bSetGet ) == "B",;
                                 Eval( ::bSetGet, uVal ),)
Already implemented for the next build.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply