[Gambas-user] Output Printing
Ignatius Syofian
isy21 at ...1082...
Thu Dec 15 08:26:00 CET 2005
Hi all,
I write printing output use draw command, the problem is: how can i format
amount with #,###.## ?
My sample code is :
mglobal.rstemp=mglobal.db.exec("select * from ttransaction")
for each mglobal.rstemp
draw.Text(Format(.rsTemp!fprice,"#,0##"),5,1+9*ypos)
draw.Text(.rsTemp!fstockname,5+280,1+9*ypos)
next
but the output is like this
Rice Cooker 100.000
Emergency lamp 300
Children Bed Set 2.000.000
why can't be like this (align right for amount)
Rice Cooker 100.000
Emergency lamp 300
Children Bed Set 2.000.000
Something wrong with my code
or
i can use another method ?
like formating __.____.____ in text file, then printing to this text file ?
--
Regards,
Ignatius Syofian
More information about the User
mailing list