Hi all, I need of your help.
I'm currently using this code to export data to excel from 2 dbf and it works fine, except 2 fields export data as text and i would like to convert them into numeric, the fields are Price and totalprice;
Like I mentioned above the data exports fine, but these 2 are exporting as text
I can format the data in excel to convert it to numeric but is double work, i was just wondering if it can be converted into numeric on my code above, any help will be much appreciated.
Thank you
I'm currently using this code to export data to excel from 2 dbf and it works fine, except 2 fields export data as text and i would like to convert them into numeric, the fields are Price and totalprice;
Code:
select line, order.itemno, percentage, invoice, cusno, table1.descrip as Description,;
table1.sccal as Scientific_cal, str(int(Percentage/100*table1->pack),4) as pack,;
val(price(table1.fob)) as price,;
str(round2(int(Percent/100*table1->pack)*val(price( table1->Fob ))),7,2) as totalprice;
from order;
inner join table1;
on order.itemno = table1.itemno;
where invoice=invnum;
into cursor TemapCursor
copy to c:\download\file XLS
Like I mentioned above the data exports fine, but these 2 are exporting as text
Code:
val(price(table1.fob)) as price,;
str(round2(int(Percent/100*table1->pack)*val(price( table1->Fob ))),7,2) as totalprice;
Thank you