José Luis Sánchez wrote:Hola,
A mi me pasa lo mismo. Tengo definida una columna en el browse de esta manera
oBrw:bStrData := Â { || tran(AP->ApImpNeto,"@E 999,999.99") }
y al generar el fichero Excel me dice que la columna es 'Número almacenado como texto'. Estoy probando la manera de que el importe salga correcto, con . de separador de miles y , para los céntimos y que luego me aparezca bien en Excel pero no doy con la forma.
¿ Alguna sugerencia ?
Saludos,
Use of bStrData was deprecated by FW many years back.
Instead please use
oBrw:bEditValue := { || AP->ApImpNeto }
oBrw:cEditPicture := "@E 999,999.99"
In this case, xbrowse knows that the value of the column is numeric and exports the data as numeric.
We advise you to use COMMAND syntax to create xbrowses. In addition to being simple to use, this will allow you to avail all the power of xbrowse smoothly and automatically.
You may still use the older method of oBrw:AddCol() ... etc, and oBrw:bStrData. Still xbrowse works like a "dumb" browse and then you may not expect most advanced features of xbrowse to work.