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

17676Re: [Clip] Re: Newbie seeks help with array processing

Expand Messages
  • buralex@gmail.com
    Mar 28, 2008
    • 0 Attachment
      "Don - HtmlFixIt.com" <don@...> said on Mar 28, 2008 20:45
      -0400 (in part):
      > ^!SetArray %VariableName%=ArrayData (added in v4.6)
      The one thing I'd add to Don's summary is how to process elements of an
      array in a loop.
      For some reason it took me a long time to understand how the syntax for
      the key statement works:
      ^!set %thisVal%=^%theArray^%i%%

      As in:

      ^!SetArray %theArray%="Value 1";"Value 2";"Value 3"
      ^!set %i%=0
      ^!inc %i%
      ^!if ^%i% >^%theArray0% alldone
      ^!set %thisVal%=^%theArray^%i%%
      ; -- do something ---
      ^!info ^%i% = ^%thisVal%
      ^!goto loop

      Regards ... Alec -- buralex-gmail

      [Non-text portions of this message have been removed]
    • Show all 9 messages in this topic