[Gambas-user] Reading the return from a shell command
Dave sharples
technoferret at ...598...
Fri Jan 21 18:09:07 CET 2005
On Fri, 2005-01-21 at 16:48, Rob wrote:
> Oh, sure.
>
> dim sa as new String[]
> ...
> sa = split("CAT DOG MOUSE", " ")
> print sa[0]
>
> > CAT
>
> Or if you want to do it more like the VB way...
>
> dim s as String
> ...
> s = left("CAT DOG MOUSE", instr("CAT DOG MOUSE", " ") - 1)
> print s
>
> > CAT
Cheers Rob,
I'll do it the Gambas way. :-)
More information about the User
mailing list