Exporting to excel a xBrowse column of type Date, the program crashes in this line:
Code: Select all
oSheet:Cells( nRow, nCol ):NumberFormat := Lower( Set( _SET_DATEFORMAT ) )
Code: Select all
METHOD ToExcel( oSheet, nRow, nCol ) CLASS TXBrwColumn
I put here the same fix I see in another place in the same file:
Code: Select all
if lxlEnglish
if ValType( ::cEditPicture ) == 'C' .and. Left( ::cEditPicture, 1 ) != '@'
oSheet:Cells( nRow,nCol ):NumberFormat := Lower( ::cEditPicture )
else
oSheet:Cells( nRow,nCol ):NumberFormat := Lower( Set( _SET_DATEFORMAT ) )
endif
endif