Page 1 of 1

empty date in xBrowse column

Posted: Sat Sep 24, 2022 9:25 pm
by Detlef
Hi all,

is there a way to put an empty date into a xBrowse column with nEditType := EDIT_DATE?

I have the case of columns with empty date contents.
If a user triggers the datepicker control by accident or curiousity, there is no way to escape by leaving the column value empty.

Thanks for each hint.
Detlef

Re: empty date in xBrowse column

Posted: Sun Sep 25, 2022 7:12 am
by nageswaragunupudi
If the original value is empty date, even after dtpicker is activated, pressing Esc restores the original value of empty date.

Also, please add this code:

Code: Select all | Expand

oCol:bKeyDown := { |k,f,br,col| If( k == 32, ( col:VarPut( CTOD( "" ) ), 0 ), nil ) }


If the original value is not an empty date, pressing Space key while on the cell makes it empty.

Re: empty date in xBrowse column

Posted: Sun Sep 25, 2022 7:02 pm
by Detlef
Many thanks, Mr. Rao
both tips are working fine.