Re: [Gambas-user] Matrix resize

2013-12-07 Thread PICCORO McKAY Lenz
matrix resie canot be directly, u must make it indirect throught another matrix, by ejample trhought method, like previous m,ail show u with arrays (but dont use that) also dinamyc sizes or matrix cannot be done,, u must use idividual dinamic arrays

Re: [Gambas-user] Matrix resize

2013-12-05 Thread terco IDE
I prefer the Jussi aproach, because a lot of code is already wrtitten with [r,c] format and is easier to read. I hope that works for Public arrays! Thanks Martin > Subject: Re: [Gambas-user] Matrix resize > To: mailing list for gambas users > Message-ID: > > Content-T

Re: [Gambas-user] Matrix resize

2013-12-05 Thread Fabien Bodard
You can use arrays of array private MyArray as new Object[] Public sub _New() ResizeMyArray(MyArray,15,12) end Public sub ResizeMyArray(hMyArray as Object[], X as integer, y as integer) hMyArray.Resize(X) For i = 0 to hMyArray.max if hMyArray [i] then hMyArray[i].Resize(y) else hMyA

Re: [Gambas-user] Matrix resize

2013-12-05 Thread Jussi Lahtinen
Unfortunately this is missing feature from Gambas. Maybe Benoit has reason for it, I don't know. However here is code for resizing 2D arrays: Private Function Resize2DArray(hArray As Object, SizeX As Integer, SizeY As Integer) As Object Dim hNewArray As Object = Object.New(Object.Type(hArray),

[Gambas-user] Matrix resize

2013-12-05 Thread terco IDE
First of everything: BIG thanks to Benoit for crating Gambas! Is there any workaround for resizing matrices? rigth now, I'm using this code notMatrix.Resize(100*200) ' 100 rows, 200 cols ' get element [row,col] x = notMatrix[col + row*200] , and on a big program, code get's really dirty Th