Arrays with negative indexes

Hello my friends,
I had 2 questions regarding arrays.

  1. Is it possible to use negative indexes with arrays or how to get around this problem?
  2. How to easily initialize arrays like here below or do we have to enumerate each value?

Const
Matrice : Array[-1…1,-1…1] of Integer = ((-1,0,1), (-2,0,2), (-1,0,1));

Thank you.

You can use an dictioanry and put any value in as index.

or you use wrapper class around and array, which adds an offset as needed.

Thank you once again Christian!
OK I will create an offset.