Damn, I'm about to explode:
what's wrong with the following code? :
In my module:
In my TestMyModuleFile:
I just tried making a general Append procedure that receive an array that can be modified (var) and add it something of the same type... The compiler compiles my mod, no prob here, but my test returns an error like:
"Unable to convert from MyType Array to Object Array Var"
How could I make this fu..... function that is REALLY beginning to piss me off?????
(KamaShin on a rampage, ready to kill everything that moves)
what's wrong with the following code? :
In my module:
Function Append(t:Object[] Var,o:Object) Local size:Int = Len(t) t = t[..size+1] t[size] = o End Function
In my TestMyModuleFile:
Type MyType Field s:String End Type Global t:MyType[] Global m:MyType Print "Append firsttry:"+Chr(13) m = New MyType m.s = "firsttry" t = Append(t,m)
I just tried making a general Append procedure that receive an array that can be modified (var) and add it something of the same type... The compiler compiles my mod, no prob here, but my test returns an error like:
"Unable to convert from MyType Array to Object Array Var"
How could I make this fu..... function that is REALLY beginning to piss me off?????
(KamaShin on a rampage, ready to kill everything that moves)