>I'm using local views without nulls, and blank dates are valid within the application. I'm considering going to remote views, but lack of an empty date, nulls and/or the automatic date entry are warping my little brain. Is there a fast and easy way to convert to blank VFP dates when using the view, and saving to the backend as null or whatever?
>
>Chris.
Using cursoradapter class you can define conversionfunc. ie:
Define Class Ca_MyTable As MyCaBase OF MyCAClasslib.prg
ConversionFunc = "MyDate E2N, MyChar TRIM"
ENDDEFINE
and e2n.prg:
Lparameters tuValue
If Empty(m.tuValue) OR (Vartype(m.tuValue) = 'C' And Trim(m.tuValue) == '{}')
Return .Null.
Else
Return m.tuValue
Endif
I suggest totally forgetting about "empty" date/times and use nulls instead.
Cetin