Creating arrays

lreinax
Member Posts: 34
Hi,
is it posible to index an array with a code or I have to use a number always?
Thanks
regards
is it posible to index an array with a code or I have to use a number always?
Thanks
regards
0
Comments
-
I think I have not explain my question clearly, what I want to do is declarate an array variable which firts dimension was a code variable and second dimension was a integer variable.
I`m not sure if it can be done??, maybe a should use a temp table?
Thanks again.0 -
Your second guess is the answer. You must use temp table because array indexes can be only numbers (integer).0
-
Thanks, I have not much experience in programming
is it posible to do with some other program languages?
I think so, but I'm not sure.
regards.0 -
I'm not sure that i understood your question. If we talk about indexes in arrays, so it can be only numbers. In other way you will never know the size of array and the order
If we talk about array values, so in Navision you must define type for each variable and it can't be changed. So all the valueas will be of the same type.
As i know, in some other languages you can use different data types in the same array.
But if you need to have similar functionality, just store all values in text format and then use function EVALUATE when you want to use this value. It is not very good solution, but anyway, it is0 -
You are right, I was talking about array values
I need to have differents data types in the same array.
As you say is not very good solution to use evaluate function.
Thanks a lot0
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