How to use Array's

RonaldWRonaldW Member Posts: 6
Hello,

Here a few questions from a navision newbie.

For a report i need to print the comments which were part of the records which i was going through in the summary. I thought i could do this with a array.

I allready found out that when i make a Global Variable and go to the properties page to set the Dimensions that i can create an Array this way.

But is it also possible to create a Dynamic Array when i don't know how many Dimensions I need?

Other question: In the groupfooter I need to print the content of the Array. How can I do this? Do i need to create as many Textboxes as Dimensions as I have? Or is this also possible to print these values dynamic?

Comments

  • krikikriki Member, Moderator Posts: 9,118
    Arrays are always fixed.
    But you can use a temptable instead of an array. In this way you can also choose if you want a 0-based or 1-based array. You can best use any table that has an integer as primary key.
    Other question:
    You can create multiple sections, and put in the "OnPreSection()" a test to print it or not.
    In the first section:
    tmpTempTable.RESET;
    CurrReport.SHOWOUTPUT(tmpTempTable.FIND('-'));
    

    In the other sections:
    CurrReport.SHOWOUTPUT(tmpTempTable.NEXT <> 0);
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.