No.cnavarro wrote:This expression works?
Code: Select all
oSheet:Cells( 1, 1 ):Value = CTOD( " / / " )
EMG
No.cnavarro wrote:This expression works?
Code: Select all
oSheet:Cells( 1, 1 ):Value = CTOD( " / / " )
NIL or NULL ?Enrico Maria Giordano wrote:Antonio,
NILAntonio Linares wrote:When you use an empty date with xHarbour what value do you get in the Excel cell ?
EMG
Code: Select all
? oSheet:Cells( 1, 1 ):Value, VALTYPE( oSheet:Cells( 1, 1 ):Value )
Code: Select all
NIL U
Sorry. I see an empty cell. So we only need an automatic convertion from CTOD( "" ) to NIL.Antonio Linares wrote:I meant what do you see in Excel. What is shown is Excel ?
Not the value that you get from Harbour.
Yes, I already reported the result. It works.Antonio Linares wrote:have you tried this ?
oSheet:Cells( 1, 1 ):Value = nil
Code: Select all
oSheet:Range( "A:A" ):Set( "NumberFormat", '00/00/00' ) // field mask
// sets headers
oSheet:Cells( 1, 1 ):value := "Date"
...
...
...
Do while ...
oSheet:Cells( nRow, 1 ):Value := ctod("")
...
....
nRow++
skip
Enddo
Yes. But I have far too many places when dates can be empty.Antonio Linares wrote:But this worked fine, right ?
oSheet:Cells( 1, 1 ):Value = nil
Code: Select all
oSheet:Cells( 1, 1 ):Value = ""
oSheet:Cells( 1, 1 ):Value = 0
oSheet:Cells( 1, 1 ):Value = .F.