[Gambas-user] Range Operator
Michael Isaac
macisaac at ...689...
Fri Nov 26 00:58:54 CET 2004
You need a range operator. This is what I mean.
DIM X AS NEW String[]
X = [ "A", "B", "C", "D", "E" ]
We have defined X, which is 0 to 4 (total of 5) elements long, lets say
I only need a small part of the array, It would be nice to be able to
slice it, like this...
Dim Y As New String[]
Y = X[1..3]
Y would now be equal to [ "B", "C", "D" ] this would save everyone,
especially me, alot of time writing for...next statments. Is there
anyway to accomplish this? or do i have to wait for 1.0 ;)
Michael
More information about the User
mailing list