Function Request - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: General (http://qbasicnews.com/newforum/forum-6.html) +--- Forum: General/Misc (http://qbasicnews.com/newforum/forum-18.html) +--- Thread: Function Request (/thread-6846.html) |
Function Request - Antoni Gual - 04-10-2005 Now FB has PRINT USING and PRINT # USING implemented, perhaps it's time to fill one of the QB shortcomings, the "format to string", a function returning a string formatted by USING, a sort of C's sprintf... Probably PRINT USING is already using an internal buffer, it would be a matter of returning that buffer instead of printing. In QB there was a hack using FIELD and a NUL file, but in FB FIELD has a different meaning... Function Request - VonGodric - 04-11-2005 that would be awesome! Function Request - jdebord - 04-11-2005 Unfortunately, PRINT USING does not work in exponential format (at least in 0.12b). For instance, the following code: Code: x# = 1.23D-5 prints 1.23 It seems that the caret string is simply ignored. I asked the question on this forum some time ago, but Victor said that this could not be corrected |