- Code: Select all Expand view RUN
#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