BBC BASIC for Windows
« Printng from a array »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:49pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Printng from a array  (Read 998 times)
Wendell
New Member
Image


member is offline

Avatar




PM


Posts: 28
xx Re: Printng from a array
« Reply #11 on: Mar 3rd, 2014, 03:16am »

Thanks for all the help almost got arrays and DIM down pretty good. one more question is the a way to Right Justify a number in bbc basic ?
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Printng from a array
« Reply #12 on: Mar 3rd, 2014, 08:22am »

on Mar 3rd, 2014, 03:16am, Wendell wrote:
one more question is the a way to Right Justify a number in bbc basic ?

So long as you are using a monospaced (fixed pitch) font, such as Courier New or Lucida Console, numbers are right justified by default. Try running this code:

Code:
      PRINT 1
      PRINT 23
      PRINT 456
      PRINT 7890 

The column width is set by the least-significant byte of @% (initially 10).

In a PRINT statement right-justification is switched off by a semicolon (;) and switched on by a comma (,).

You can, of course, also easily achieve right-justification using the FNusing function.

Richard.

User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls