Bug in Combobox

Bug in Combobox

Postby Enrico Maria Giordano » Sun Dec 18, 2005 9:45 pm

In the following sample:

Code: Select all  Expand view
#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
Enrico Maria Giordano
 
Posts: 8338
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Sun Dec 18, 2005 10:22 pm

Enrico,

This method was missing from Class TControl:

Code: Select all  Expand view
   METHOD VarPut( uVal ) INLINE  If( ValType( ::bSetGet ) == "B",;
                                 Eval( ::bSetGet, uVal ),)


Already implemented for the next build.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41341
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Enrico Maria Giordano » Mon Dec 19, 2005 7:41 am

Thank you!

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8338
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 7 guests