ErosOlmi
03-07-2010, 11:59
Usually thinBasic matrix filling follows column order.
Next thinBasic beta preview will have the possibility to fill matrix with row order.
Also:
it will not be mandatory to indicate starting index during filling. If missing, 1 or 1,1 will be assumed
it will not be mandatory to add line continuation. When indicating data, if rows ends with a comma(,) it will be automatically considered as line continuation
How: just using ( and ) before and after data.
Example:
Dim a(MaxX, MaxY) As Double
a() = ( 1, 2, 3,
4, 5, 6,
7, 8, 9 )
When using () syntax, data will be entered in the matrix in row order and now column order.
Next thinBasic beta preview will have the possibility to fill matrix with row order.
Also:
it will not be mandatory to indicate starting index during filling. If missing, 1 or 1,1 will be assumed
it will not be mandatory to add line continuation. When indicating data, if rows ends with a comma(,) it will be automatically considered as line continuation
How: just using ( and ) before and after data.
Example:
Dim a(MaxX, MaxY) As Double
a() = ( 1, 2, 3,
4, 5, 6,
7, 8, 9 )
When using () syntax, data will be entered in the matrix in row order and now column order.