I have a GET define so:
REDEFINE GET oValue VAR mValue ID 2105 of oQry_Dlg ;
on change ( iif(! oSave:lactive, Set_Save() ) ) ;
update
Whenever the value of mValue becomes numeric the picture of oValue is changed as in the next line.
oValue := tGet():Redefine( , bSetGet := {||mValue }, oQry_Dlg, ,"@R ######.##" , , , , , , ,True, , ,False )
Whenever the value of mValue becomes a date the picture of oValue is changed as in the next line.
oValue := tGet():Redefine( , bSetGet := {||mValue }, oQry_Dlg, ,"@D" , , , , , , ,True, , ,False )
Whenever the value of mValue becomes a character string the picture of oValue is changed as in the next line.
oValue := tGet():Redefine( , bSetGet := {||mValue } , oQry_Dlg, , , , , , , , ,True, , ,False )
This works unfailingly for numbers and dates but does not work with strings. I've tried every character picture I can think of and nothing works.
The other problem I'm having is that oValue does not refresh until the cursor is place in the control. oValue:Refresh(), oValue:SetFocus() does not work.