![]() |
Print Using - Printable Version +- NaaLaa (https://www.naalaa.com/forum) +-- Forum: Other (https://www.naalaa.com/forum/forum-8.html) +--- Forum: Programming (https://www.naalaa.com/forum/forum-9.html) +--- Thread: Print Using (/thread-208.html) |
Print Using - johnno56 - 03-20-2025 I am trying to convert a QB64 program and I have encountered the command PRINT USING. Does anyone know of a procedure to format text to simulate the command? eg: PRINT USING "#,###,#00 Lives: # <--JAKE"; score2; lives2 if the score is 1234 and lives are 3: output would be: 1,234 Lives: 3 <--JAKE RE: Print Using - 1micha.elok - 03-20-2025 (03-20-2025, 01:00 AM)johnno56 Wrote: I am trying to convert a QB64 program and I have encountered the command PRINT USING. Perhaps like this one : ... Code: ' Example values RE: Print Using - johnno56 - 03-20-2025 Thank you. Much appreciated... ![]() RE: Print Using - Marcus - 03-21-2025 I can add some optional parameters to the 'str' function for that if you want? RE: Print Using - johnno56 - 03-21-2025 Thanks Marcus. But the odds of anyone else wanting to print formatted text, such as Print Using, could pretty remote and the time spent making the change to 'str()' may not be worth it... lol But I do appreciate the offer... thank you. |