How to use Array's

RonaldW
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?
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?
0
Comments
-
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:
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!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions