array
dfaalberto
Member Posts: 9
How can I stamp an array without writing in the section all the elements?
Rather than:
array[1]
array[2]
etc
to write:
array
0
Comments
-
-
dfaalberto wrote:

How can I stamp an array without writing in the section all the elements?
...
If "stamp" means "clear" than you can write:CLEAR(Array);
to clear all elements of the array.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
if "stamp" means print and section means report section...
You can add a subdataitem with Integer as source table. You add code on OnPreDataItem to filter your integer, e.g. if you have i:=1 to 10, then use SETRANGE(Number,1,10)
then you just add a filed in body section with source as:
array[number]®obi
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯0 -

I have found this other solution with the table Integer:
DataItem Name
Righe Vendita <Righe Vendita>
Righe Vendita <Righe Vendita 2>
Righe Vendita <Righe Vendita 3>
Temp.Situazione Alleva <Temp.Situazione Alleva>
Integer <Integer>
OnPreDataItem
Integer.SETRANGE(Integer.Numero,1,50);
OnPostDataItem
t := 0;
REPEAT
t := t + 1;
"Array Codice Famiglia"[t] := '';
"Array Ordini A"[t] := 0;
"Array Ordini B"[t] := 0;
"Array Ordini C"[t] := 0;
"Array 3/4 A"[t] := 0;
"Array 3/4 B"[t] := 0;
"Array 3/4 C"[t] := 0;
"Array Ricavi A"[t] := 0;
"Array Ricavi B"[t] := 0;
"Array Ricavi C"[t] := 0;
"Array P.zzo Medio A"[t] := 0;
"Array P.zzo Medio B"[t] := 0;
"Array P.zzo Medio C"[t] := 0;
UNTIL (t = 199);
// Resetto la conta
"Totale Clienti A" := 0;
"Totale Clienti B" := 0;
"Totale Clienti C" := 0;
"Cliente Precedente A" := '';
"Cliente Precedente B" := '';
"Cliente Precedente C" := '';
Section
The body of the table is used Integer and for the elements of the array use the field [Integer.Numero]0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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

