Hi Antonio
I have created a window with two gets and a combobox - I can add the first record okay ,
but when I try to add a new record as below
@ 2,01 SAY "Enter Job Number " SIZE 120,14 of oWnd1
@ 15,140 GET oGet VAR oSample:jbno SIZE 75,20 PIXEL OF oWnd1 UPDATE picture '@!'
@ 2,22 SAY "Client " SIZE 50,14 of oWnd1
@ 15,290 GET oGet1 VAR oSample:client SIZE 200 ,20 PIXEL OF oWnd1 UPDATE picture '@'
@50,15 BUTTON "New" of oWnd1 ;
SIZE 60,30 ;
ACTION(oSample:blank(),lNew := TRUE,oWnd1:Update(),oWnd1:Refresh(),oGet:SetFocus())
The gets and combobox are not refreshed - if I check a database field as below the database field is empty
ACTION(oSample:blank(),MsgInfo(oSample:jbno),lNew := TRUE,oWnd1:Update(),oWnd1:Refresh(),oGet:SetFocus())
I compiled and linked in the window program from source and checked the following
METHOD Update() INLINE ;
AEval( ::aControls, { |o| If( o:lUpdate, (MsgInfo('u'),o:Refresh()),) } )
The MsgInfo is shown - so I presume the oWnd1:Update() is working - also I presume o: is the window object
and refresh method is called
METHOD Refresh() INLINE MsgInfo('refresh'),WndRefresh( ::hWnd ) once again the MsgInfo is shown.
I cant WndRefresh method.
Cheers
Colin