Shop OBEX P1 Docs P2 Docs Learn Events
Range Operator ;x — Parallax Forums

Range Operator ;x

ZetsuZetsu Posts: 186
edited 2012-10-24 18:41 in Propeller 1
..........

Comments

  • kuronekokuroneko Posts: 3,623
    edited 2012-10-24 17:31
    You could use byte/word/longfill, e.g. assuming a byte array: bytefill(@Values[20], 23, 10).
  • AribaAriba Posts: 2,690
    edited 2012-10-24 18:41
    Another way is to use loops instead of 10 seperate lines:
    repeat i from 20 to 29
       Values[i] := 0
    
     repeat i from 20 to 29
       Values[i] := 23
    

    Andy
Sign In or Register to comment.