Options

Indexing an array in C/AL

kszymanskikszymanski Member Posts: 42
edited 2002-01-23 in Navision Financials
Hello,

i wan't to do the following:

3 dimensional Text Array

1 2 3

1 Debitor No. integer
2 Debitor Name text


And so on. This means,

array[1][1] => Debitor
array[1][2] => No.
array[1][3] => integer

Now i wan't to do the following to get the
value:

val := array[1][1].array[1][2];

means

val := Debitor."Nr.";

But how can i explain C/AL to use the
content of array[x][x] as variablename (like
$ in php) ?

Thanks!

Best regards,
Kai.
--
Kai Szymanski
Abt. eBusiness
D. Schuricht GmbH & Co. KG

Comments

  • Options
    Stefan_LimpertStefan_Limpert Member Posts: 30
    Hi Kai,
    i hope i unterstand this.
    You want to use the value of an n-dimensional array?
    Use this:
    value := array[1,2];
    to get the value.
    Hope it was it
    Stefan
Sign In or Register to comment.