Formated Output
Posted: Thu Feb 10, 2011 2:54 pm
I am evaluating PureBasic for which I have found good performance (speed two times VB), but some things are nor clear.
I ask information how to make a formated output on a file or a printer.
I find many keywords Write.... for the different variable type, with the limitation of a single variable output for every keywords, a situation which is much less flexible than that in VB where with the Print # statement all can be done in a single line with the option of the default variable spacing with the "," .
In VB the case of a precise formated output with the Format statement it is possible specify how a number must be written ( also in the scientific notetion) and with the TAB() and SPC() funcion define the position in the line.
After the examinatioin of the keyword in PureBasic I think that to have a formated ouput I need to conver the numeric data in a strings and assamble them according the required spacing in a string line and print it; but is not clear how the obtain a scientific output for a real number.
I ask also information for the differnce to have an output on a file or a printer.
I thak very much for every information you can supply to me.
I ask information how to make a formated output on a file or a printer.
I find many keywords Write.... for the different variable type, with the limitation of a single variable output for every keywords, a situation which is much less flexible than that in VB where with the Print # statement all can be done in a single line with the option of the default variable spacing with the "," .
In VB the case of a precise formated output with the Format statement it is possible specify how a number must be written ( also in the scientific notetion) and with the TAB() and SPC() funcion define the position in the line.
After the examinatioin of the keyword in PureBasic I think that to have a formated ouput I need to conver the numeric data in a strings and assamble them according the required spacing in a string line and print it; but is not clear how the obtain a scientific output for a real number.
I ask also information for the differnce to have an output on a file or a printer.
I thak very much for every information you can supply to me.