[Gambas-user] Array slicing - how is it done in Gambas?

nando nando_f at ...951...
Thu Oct 11 21:30:53 CEST 2012


An alternate consideration is to create a dynamic object array
and .add the myString[] elements you want.
You'll end up with an array of pointers to the original string text.
No copying of data, just pointers.
I've done this in the past. Works very nice.


---------- Original Message -----------
From: RICHARD WALKER <richard.j.walker at ...247...>
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Sent: Thu, 11 Oct 2012 17:14:31 +0100
Subject: Re: [Gambas-user] Array slicing - how is it done in Gambas?

> Fabien,
> In the end I got the job done with String.Remove rather than
> String.Extract(). In this particular case it was easier to remove the
> elements already processed and then pass the remainder in a recursive
> call to the same procedure for further processing.
> 
> In the short time I had to experiment I could not get String.Delete()
> to delete anything. It seems to be that the documentation is correct -
> it is the same as String.Extract(), though why it is called Delete is
> not clear.
> 
> Richard
> 
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list