none
EASY QUESTION RRS feed

  • Question

  • Hello

    I have a small question:

    I want to set some parameters but I dont know how to no use less than 64 lines.

    I want to set x1=0 x2=0 x3=0 x4=0 x5=0 ...etc up to... x64=0

    This takes a lot of time and a lot of lines :)

    Can sombody help me?

    Thank you 

    Frédéric

    Friday, May 3, 2013 7:25 PM

Answers

  • Sure :]

    Like this:

    For i = 1 To 64
      x[i] = 0
    EndFor

    access "x" like this

    Textwindow.Writeline(x[1])

    Or for x 23,

    Textwindow.Writeline(x[23])

    Hope this helps!


    It is written: "'As surely as I live,' says the Lord, 'every knee will bow before me; every tongue will acknowledge God.'" Romans 14:11

    Friday, May 3, 2013 8:50 PM
    Answerer

All replies

  • Sure :]

    Like this:

    For i = 1 To 64
      x[i] = 0
    EndFor

    access "x" like this

    Textwindow.Writeline(x[1])

    Or for x 23,

    Textwindow.Writeline(x[23])

    Hope this helps!


    It is written: "'As surely as I live,' says the Lord, 'every knee will bow before me; every tongue will acknowledge God.'" Romans 14:11

    Friday, May 3, 2013 8:50 PM
    Answerer
  • Thank you very much!
    Friday, May 3, 2013 9:51 PM
  • Also see here for more info on arrays.
    Friday, May 3, 2013 10:38 PM
    Moderator