Loading ...
Sorry, an error occurred while loading the content.

7357Re: [libertybasic] how do u print an array's contents

Expand Messages
  • AW
    Aug 1, 2002
      At 10:26 AM 8/1/02 -0000, you wrote:
      > G'day programmers,
      > my name is ryan and i'm relatively new at programming with liberty
      > basic. i have formed an array consisting of 20 names, and i can't
      > work out how to print the contents of the array. This problem is has
      > got me baffled, sorry for my ignorance, but if you have an answer
      > please e-mail me, thankyou,

      To print to the mainwindow:

      for i = 1 to 20
      print array$(i)
      next i

      To print to the printer:

      for i = 1 to 20
      lprint array$(i)
      next i

      To print to a texteditor:

      for i = 1 to 20
      print #win.texted, array$(i)
      next i


    • Show all 3 messages in this topic