- 70.3K All Categories
- 73 General
- 73 Announcements
- 64.4K Microsoft Dynamics NAV
- 16.9K NAV Three Tier
- 38.2K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 112 Navision DOS
- 850 Navision e-Commerce
- 887 NAV Tips & Tricks
- 767 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 224 Dynamics CRM
- 107 Dynamics GP
- 9 Dynamics SL
- 1.5K Other
- 974 SQL General
- 379 SQL Performance
- 31 SQL Tips & Tricks
- 23 Design Patterns (General & Best Practices)
- Architectural Patterns
- 6 Design Patterns
- 3 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 79 Testing
- 1.2K Download section
- 23 How Tos section
- 253 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

MarharytaMykytenko
Member Posts: **48**

I have a List Page which displays data of one integer field from a table.

I have to produce some operations with this field (sort in decreasing). So my field is like 10 dimension array (10 integer numbers are get).

Here error is occurs ("j" gets value from 1 to the (length of array-1))

Could anybody tell me what I have to change or just why I have this error

I have to produce some operations with this field (sort in decreasing). So my field is like 10 dimension array (10 integer numbers are get).

Here error is occurs ("j" gets value from 1 to the (length of array-1))

Could anybody tell me what I have to change or just why I have this error

0

## Answers

744874Check the "dimensions" value of the properties of your variable J.

If it's undefined, set it to 1, as so:

48OK, thanks but now "j" is array and this error is occurs

74I'm sorry @MarharytaMykytenko , I meant the "Input" variable, not the "J" variable, my mistake.

48heeeh,

No, nothing changed

9581 is not a sensible value for dimension. In this property you specify, how many elements your array will have.

Dimension is actually quite misleading here (and also in your usage if the term in your original question).

An array, as you used it in your example code has one dimension (It' is a line or string of data, having 1 coordinate). You can give it additional dimensions by adding more values to the Dimension property, separated by semicolons. You then specify the same number of subscripts when using the values of your array

e.g

A has property Dimension=10;10

A[1,1] is your first element (note: it's 1-based)

Array A now has two dimensions. It is a field (or plane) of values needing 2 coordinates to identify a value. The size of each dimension is 10.

An ordinary Array has on dimension. So in your case

variable Input should have property Dimension=10

If you still have problems, try to remove any code that has no bearing in the error, reducing the code to the bare minimum where the error still occurs. If that process did not help you by itself to figure out the problem, post that code, including the declarations, for the community to investigate further.

48Thanks everyone for answers and ideas.

I have already solved my problem. Your tips were so useful.

48