Creating arrays

lreinaxlreinax Member Posts: 34
edited 2004-07-26 in Navision Financials
Hi,
is it posible to index an array with a code or I have to use a number always?


Thanks
regards

Comments

  • lreinaxlreinax Member Posts: 34
    I think I have not explain my question clearly, what I want to do is declarate an array variable which firts dimension was a code variable and second dimension was a integer variable.
    I`m not sure if it can be done??, maybe a should use a temp table?

    Thanks again.
  • i4tosti4tost Member Posts: 208
    Your second guess is the answer. You must use temp table because array indexes can be only numbers (integer).
  • lreinaxlreinax Member Posts: 34
    Thanks, I have not much experience in programming
    is it posible to do with some other program languages?
    I think so, but I'm not sure.

    regards.
  • i4tosti4tost Member Posts: 208
    I'm not sure that i understood your question. If we talk about indexes in arrays, so it can be only numbers. In other way you will never know the size of array and the order :)
    If we talk about array values, so in Navision you must define type for each variable and it can't be changed. So all the valueas will be of the same type.
    As i know, in some other languages you can use different data types in the same array.
    But if you need to have similar functionality, just store all values in text format and then use function EVALUATE when you want to use this value. It is not very good solution, but anyway, it is :)
  • lreinaxlreinax Member Posts: 34
    You are right, I was talking about array values
    I need to have differents data types in the same array.
    As you say is not very good solution to use evaluate function.

    Thanks a lot :D
Sign In or Register to comment.