Page 1 of 1

How do I update array the Fix after a DCGET COMBO created

Posted: Wed Sep 18, 2019 11:56 am
by digitsoft
Hi Roger
How do I update array the Fix after a DCGET COMBO created

@ xRow+00.5,09.4 DCGET cIDUsuario PICT "@K!" ;
GETOBJECT oIDUsuario ;
KEYBLOCK {|a,b,o|aSearchName(a,b,o,@cIDUsuario,@aIDUsuario)} ;
VALID {|l| BuscarUsuario( "C-1",aApp, GetList ) } ;
COMBO ;
WIDTH 26.0 ;
HEIGHT 09 ;
DATA aIDUsuario ;
ELEMENT 1 ;
WHEN {|| !lEditar }

Re: How do I update array the Fix after a DCGET COMBO cre

Posted: Thu Sep 19, 2019 1:37 am
by reganc
Have a look at dc_vartolistbox()..

Re: How do I update array the Fix after a DCGET COMBO cre

Posted: Thu Sep 19, 2019 2:07 am
by Tom
Since the combo is a browse which is created when clicking on the button, there is no need to actualize any control. If the combo array varies, the browse will do.

Re: How do I update array the Fix after a DCGET COMBO cre

Posted: Thu Sep 19, 2019 8:28 am
by reganc
Tom wrote:Since the combo is a browse which is created when clicking on the button, there is no need to actualize any control. If the combo array varies, the browse will do.
Oh, yes, didn't read it closely enough (and realise he was using a DCGET combo), did I? :-)

Re: How do I update array the Fix after a DCGET COMBO cre

Posted: Thu Sep 19, 2019 10:18 am
by digitsoft
Hello Tom
I am using a GET with COMBO
I have already tested with DC_VarToListBox, DC_GetBrowArray and DC_GetRefresh, but this does not update the DCGET with COMBO


@ xRow+00.5,09.4 DCGET cIDUsuario PICT "@K!" ;
GETOBJECT oIDUsuario ;
KEYBLOCK {|a,b,o|aSearchName(a,b,o,@cIDUsuario,@aIDUsuario)} ;
VALID {|l| BuscarUsuario( "C-1",aApp, GetList ) } ;
COMBO ;
WIDTH 26.0 ;
HEIGHT 09 ;
DATA aIDUsuario ;
ELEMENT 1 ;
WHEN {|| !lEditar }


reganc wrote:
Tom wrote:Since the combo is a browse which is created when clicking on the button, there is no need to actualize any control. If the combo array varies, the browse will do.
Oh, yes, didn't read it closely enough (and realise he was using a DCGET combo), did I? :-)