As you know the sample program. I dont use unicode. (FW_SetUnicode( .f. )). I try both .T. and .F. in TGet():lDefaultANSI := ??.
How can I solve this problem?
Thanks,
sample program
- Code: Select all Expand view
- #include "FiveWin.ch"
function Main()
LOCAL oDlg, oGet
LOCAL cCad := pad("Testing Gets",40)
LOCAL nNum := 0
LOCAL dDat := Date()
FW_SetUnicode( .f. )
TGet():lDefaultANSI := .F.
Set century On
Set Date Ansi
Set Date format "mm/dd/yyyy"
SET _3DLOOK ON
// DEFINE DIALOG oDlg TITLE "TGet from " + FWDESCRIPTION
DEFINE DIALOG oDlg from 0,0 to 180,600 pixel TITLE "TGet from " + FWDESCRIPTION
@ 10, 15 SAY "Text..:" OF oDlg PIXEL
@ 10, 35 GET oGet VAR cCad OF oDlg SIZE 240, 10 PIXEL ;
ACTION (cCad := cGetFile32(cCad))
@ 70, 15 BUTTON "&Ok" OF oDlg SIZE 30, 12 PIXEL ACTION oDlg:End()
@ 70, 65 BUTTON "&Cancel" SIZE 30, 12 PIXEL OF oDlg ACTION oDlg:End() CANCEL
// TGet():SetColorFocus( nRGB( 200, 120, 120 ) )
ACTIVATE DIALOG oDlg CENTERED
MsgInfo(cCad)
return nil