(re)sizing Arrays at runtime?

BuhmannnBuhmannn Member Posts: 2
Hi all,

is there any way to size or resize arrays at runtime in Navision Attain?



Greetings

Buhmann(n)

Comments

  • apprinsapprins Member Posts: 4
    Nope, this is not possible. IMHO it is beter to use temporary tables.

    HTH
    André P. Prins
    Twain Development
  • dennis_decoenedennis_decoene Member Posts: 13
    Maybe the function
    [Count =:] COMPRESSARRAY(StringArray)
    
    can bring you a solution?
    I don't need PGP, my handwriting suffices.
  • OliverTOliverT Member Posts: 37
    i would prefer a temporary table, too!
  • guidorobbenguidorobben Member Posts: 157
    a tempory table has some disadvantages too. With an array yu can simpy ask MyArray[I-1]. I can loop through the items and ask what the previous item was. With temp tables this is not that simple.

    Guido
  • apprinsapprins Member Posts: 4
    Depends on which table definition you use for the temporary table. There are enough tables in Navision with a simple 1 field index. Or you can create your own, of course.

    Regards,
    André
    André P. Prins
    Twain Development
Sign In or Register to comment.