Hi all,
there is a problem exporting from xBrowse to Calc with this last FWH version.
See error:
Application
===========
Path and name: K:\pigc\PIGC.Exe (32 bits)
Size: ********* bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20150830)
FiveWin Version: FWHX 15.09
Windows version: 6.1, Build 7601 Service Pack 1
Time from start: 0 hours 0 mins 36 secs
Error occurred at: 10/12/15, 10:36:50
Error description: Error BASE/1109 Argument error: $
Args:
[ 1] = C .
[ 2] = B {|| ... }
Stack Calls
===========
Called from: K:\pigc\ADDON32\xbrowse.prg => TXBROWSE:TOCALC( 7962 )
----
The problem is related to this xbrowse code:
CASE cType == 'N'
cFormat := If( FWNumFormat()[ 2 ], If( lxlEnglish, "#,##0", "#.##0" ), "0" )
if oCol:cEditPicture != nil
if "." $ oCol:cEditPicture && THIS IS THE LINE WHO GENERATE THE ERROR
cFormat += If( lXlEnglish, '.', ',' ) + StrTran( ;
StrTran( SubStr( oCol:cEditPicture, ;
At( '.', oCol:cEditPicture ) + 1 ), '9', '0' ), '#', '0' )
endif
if ( nAt := At( ' ', cFormat ) ) > 0
cFormat := Left( cformat, nAt ) + '"' + SubStr( cFormat, nAt + 1 ) + '"'
endif
endif
oSheet:GetColumns():GetByIndex( nCol-1 ):NumberFormat:=GetNumberFormatId(oBook, cFormat, cType)
oSheet:GetColumns():GetByIndex( nCol-1 ):HoriJustify = 3 // 3 Right Alignement
Any ideas ? Thank you in advance.