Initializing arrays

In this category you can exchange your programming questions and solutions.
Post Reply
Bob82604
Posts: 6
Joined: Fri Dec 30, 2016 10:30 pm

Initializing arrays

Post: # 1273Post Bob82604
Mon Jan 09, 2017 5:24 am

I am working on a custom component that needs an external array.
This array is a 16 X20 byte array.
I there a way to initialize this array upon creation?

RapidQ allows :

defbyte QTIL311ARRAY(0 to 15 , 0 to 19) = { _
      0,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,0,1,1,0, _
      0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1, _
      1,1,1,0,0,1,0,1,0,1,1,0,1,0,1,0,1,1,1,1, _
      1,1,1,0,0,1,0,1,0,1,1,0,0,1,0,1,1,1,1,0, _
      1,0,0,0,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,1, _
      1,1,1,1,1,0,1,0,1,1,1,0,0,1,0,1,1,1,1,0, _
      0,1,1,0,1,0,1,0,1,1,1,0,1,1,1,1,0,1,1,0, _
      1,1,1,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1, _
      0,1,1,0,1,1,1,1,0,1,1,0,1,1,1,1,0,1,1,0, _
      0,1,1,0,1,1,1,1,0,1,1,1,0,1,0,1,0,1,1,0, _
      0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1, _
      1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0, _
      0,1,1,1,1,0,1,0,1,0,0,0,1,0,1,0,0,1,1,1, _
      1,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,0, _
      1,1,1,1,1,0,1,0,1,1,1,0,1,0,1,0,1,1,1,1, _
      1,1,1,1,1,0,1,0,1,1,1,0,1,0,1,0,1,0,0,0 _
    }

Is there something in fnx?

Post Reply