Combobox not change
Posted: Mon May 10, 2010 3:43 pm
The code below does not work:
Even if the style is changed (CBS_DROPDOWN, CBS_DROPDOWNLIST), still does not work.
Best Regards,
Fabio Souza
Code: Select all
STATIC aQtdes, cQtde
(...)
aQtdes := { "1", "2", "3", "4", "5", "6" }
cQtde := "1"
@ 13,98.5 COMBOBOX oCmbnQtde VAR cQtde OF oWndProdutos ITEMS aQtdes SIZE 20,75 PIXEL
(...)
MudarQtde()
(...)
STATIC FUNCTION MudarQtde()
oCmbnQtde:nAt := 2 // this does not work
oCmbnQtde:SetText("2") //this does not work
oCmbnQtde:Select(2) // this does not work
oCmbnQtde:Refresh()
RETURN .T.
Best Regards,
Fabio Souza