2014-08-13 01:45 AM
2014-08-13 10:45 AM
2014-08-13 05:11 PM
2014-08-13 07:22 PM
dim xxx[]or
dim yyy[][]The variables vardim1() and vardim2() return the array length
rows= vardim1(xxx)or
columns= vardim2(xxx)Hope this helps.
2014-08-13 08:09 PM
2014-08-13 08:45 PM
!--value or master script dim xxx[] n= 0 for i = 1 to vardim1(myarray) if myarray > 0 then !--filter what is included to the array 'xxx' n= n+1 xxx= myarray endif next i !--make it a value list values 'mylist' xxx
2014-08-13 09:34 PM
Juha wrote:
for i = 1 to vardim1(myarray)
GDL wrote:Awesome - *this* is exactly what I was looking for. I saw vardim1 in the manual, but didn't really know how it applied to my problem.
These functions return as integers the actual dimension values for the (array) expression specified as a parameter. They must be used if you want to handle correctly all actual elements of a dynamic array or an array parameter.
2014-08-13 10:59 PM