[Gambas-user] Line Column

Bodard Fabien gambasfr at ...11...
Fri Sep 10 13:24:44 CEST 2004


Le jeudi 9 Septembre 2004 15:45, Rob a écrit :
> On Thursday 09 September 2004 07:10, Benoit Minisini wrote:
> > sLine = Split(MyTextArea.Text, "\n")[TheLine]
>
> Wow, I didn't know you could index into the return value of a
> function without assigning to a temp variable.  Should we add
> this to Split()'s documentation and others that return an array?
>
> Rob
>

It's logical...!!!  Split return an array, and is an array !

we can say Split ( String [ , Separators , Escape ] )  as Array


Fabien Bodard


i've remember many thing in three day :

Print the 4 th line in MyFile :

PRINT Split(File.Load("MyFile"),"\n")[3]

Fabien Bodard





>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user




More information about the User mailing list