Hi,
when I click button oButton I set nRadio value to -1 then I perform a refresh of oRadio but nothing changes.
I expect to find the radio button in the initial state
Is there a solution?
Thanks
Marco
#include "fivewin.ch"
FUNCTION MAIN
LOCAL oDlg
LOCAL oRadio , nRadio := -1
LOCAL oButton
LOCAL oSay, cSay := STR(nRadio,3)
DEFINE DIALOG oDlg
@ 2 , 10 BUTTON oButton ;
ACTION ( nRadio := -1 , ;
oRadio:Refresh() , ;
cSay := STR(nRadio,4) )
@ 1 , 1 RADIO oRadio VAR nRadio PROMPT "One " , "Two " OF oDlg ;
ON CHANGE ( cSay := STR(nRadio,3) , ;
oSay:refresh() )
@ 3 , 1 SAY oSay PROMPT cSay OF oDlg
ACTIVATE DIALOG oDlg
RETURN NIL