SOLVED!
How to insert Array Values?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-03-15 04:17 AM
2018-03-15
04:17 AM

Solved! Go to Solution.
1 ACCEPTED SOLUTION
Accepted Solutions
Solution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-03-15 07:49 AM
2018-03-15
07:49 AM
You want an adjustable array - I think they call it a dynamic array.
As far as I know you can't have the user add new values directly to the array but you can create a new parameter that controls the size of the array.
'value' is the actual value you want to put into the array.
In this case value will be the same for each field in the array.
Unless you vary the value for each 'n' - i.e. value = value+1
Barry.
As far as I know you can't have the user add new values directly to the array but you can create a new parameter that controls the size of the array.
DIM x [] for n = 1 to y xWhere 'y' is a new parameter that sets size of the array.= value NEXT n PARAMETERS x=x
'value' is the actual value you want to put into the array.
In this case value will be the same for each field in the array.
Unless you vary the value for each 'n' - i.e. value = value+1
DIM x [] for n = 1 to y xNot sure if this will help or not.= value value = value+1 NEXT n PARAMETERS x=x
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-03-15 04:45 AM
2018-03-15
04:45 AM
Select the row button and then insert as many as you need.
You can then select the values for each and add a default value if needed.
Barry.
You can then select the values for each and add a default value if needed.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-03-15 06:45 AM
2018-03-15
06:45 AM
hi Barry Kelly !
Can I insert it in a 2D script? I want to use it to control the X coordinate but I cannot determine the number of points.
Can I insert it in a 2D script? I want to use it to control the X coordinate but I cannot determine the number of points.
Solution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-03-15 07:49 AM
2018-03-15
07:49 AM
You want an adjustable array - I think they call it a dynamic array.
As far as I know you can't have the user add new values directly to the array but you can create a new parameter that controls the size of the array.
'value' is the actual value you want to put into the array.
In this case value will be the same for each field in the array.
Unless you vary the value for each 'n' - i.e. value = value+1
Barry.
As far as I know you can't have the user add new values directly to the array but you can create a new parameter that controls the size of the array.
DIM x [] for n = 1 to y xWhere 'y' is a new parameter that sets size of the array.= value NEXT n PARAMETERS x=x
'value' is the actual value you want to put into the array.
In this case value will be the same for each field in the array.
Unless you vary the value for each 'n' - i.e. value = value+1
DIM x [] for n = 1 to y xNot sure if this will help or not.= value value = value+1 NEXT n PARAMETERS x=x
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-03-15 09:45 AM
2018-03-15
09:45 AM
Thank you for helping me solve the problem
