empty date in xBrowse column

Post Reply
User avatar
Detlef
Posts: 209
Joined: Mon Feb 07, 2022 9:54 pm

empty date in xBrowse column

Post 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
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: empty date in xBrowse column

Post 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.
Regards

G. N. Rao.
Hyderabad, India
User avatar
Detlef
Posts: 209
Joined: Mon Feb 07, 2022 9:54 pm

Re: empty date in xBrowse column

Post by Detlef »

Many thanks, Mr. Rao
both tips are working fine.
Post Reply