Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.powerbasic > #48
| From | "Auric__" <not.my.real@email.address> |
|---|---|
| Newsgroups | comp.lang.basic.powerbasic |
| Subject | Re: Formatted PRINT in PowerBASIC |
| Date | 2012-03-16 15:48 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <XnsA018599E21733auricauricauricauric@88.198.244.100> (permalink) |
| References | <6Lp8r.22134$I33.18844@uutiset.elisa.fi> <XnsA017A32A66C8Dauricauricauricauric@88.198.244.100> <S%F8r.22303$I33.4056@uutiset.elisa.fi> |
Antti J Ylikoski wrote: > On 16.3.2012 1:01, Auric__ wrote: >> Antti J Ylikoski wrote: >> >>> What is the way to achieve formatted printing analogous to >>> >>> PRINT USING P1$; N1, N2, N3 >>> >>> in the PowerBASIC? >>> >>> I'm asking this here because the question may be of importance to many >>> individuals who wish to convert legacy code to the PowerBASIC >>> compilers. >>> (For which purpose it is eminently suitable.) How about adding a >>> PRINT USING capability to the PowerBASIC for backward compatibility >>> with older BASICs? >> >> It depends on which version of PowerBASIC you're using, and what you're >> trying to accomplish. >> >> Both PB/DOS and PB/CC have PRINT USING (look for USING in the help >> file); all versions have USING$ (which is different from USING; again, >> look for USING$ in the help file). >> >> If you're specifically looking for console output, you need PB/CC. > > I found the USING$ function and got my job done, thanks. I'm using the > PBCC. > > What would be the handiest way to simulate the TAB(N) function? I found > the TAB$() function but it is not immediately self-evident how to > simulate TAB() in a complex formatting program with the TAB$() function. > I can do so, but is there any easier and more direct way? Therefore, > how about adding the original BASIC TAB(N) to the PowerBASIC? In PB/CC, TAB() works as expected in conjunction with PRINT: PRINT TAB(n); whatever$ If you're trying to use TAB() outside of PRINT... can't help you there. (Personally, I don't use TAB(), I just position the cursor where I want it via LOCATE.) -- I'll just trot on down to the end of the line and wait for my head to explode.
Back to comp.lang.basic.powerbasic | Previous | Next — Previous in thread | Find similar
Formatted PRINT in PowerBASIC Antti J Ylikoski <antti.ylikoski@tkk.fi> - 2012-03-15 19:34 +0200
Re: Formatted PRINT in PowerBASIC "Auric__" <not.my.real@email.address> - 2012-03-15 23:01 +0000
Re: Formatted PRINT in PowerBASIC Antti J Ylikoski <antti.ylikoski@tkk.fi> - 2012-03-16 14:05 +0200
Re: Formatted PRINT in PowerBASIC "Auric__" <not.my.real@email.address> - 2012-03-16 15:48 +0000
csiph-web