[Gambas-user] Unable to split string containing ascii characters

Dimitris Anogiatis dosida at ...626...
Mon Jun 6 07:47:24 CEST 2011


Hey Titan,

Using the Split function is not the only option if you want to parse data
from a string

There's also Mid$, Left$, Right$ InStr, RInStr and other functions that you
use to extract
specific data from a string. Scan is another function that you can use to
split strings into
pieces but it's not as widely used.

Check it out here:  http://www.gambasdoc.org/help/lang/scan

If you're the one generating the string in the first place the best way to
go about
extracting data from a string is if you create some kind of an identifiable
beginning
and end of the important information in your string.

if you're not the one generating the string in question you need to see if
there is
an identifiable pattern so you can use InStr or RinStr to find the pattern
in the entire
string and then chop it off accordingly.

It's easy to get frustrated but as in every programming language out there
there's always
more than just one way to skin a cat

For your convenience here is a list of all the string related functions and
their descriptions
http://www.gambasdoc.org/help/cat/string?v2

Hope this helps

Regards,
Dimitris


On Sun, Jun 5, 2011 at 6:36 PM, richard terry <rterry at ...1946...> wrote:

> On Monday 06 June 2011 10:29:23 Titan Rain wrote:
> > I'm sorry for the hostility, I am frustrated as you perceived. I've been
> >  trying to accomplish this for 3 days, in just this case, as well as the
> >  few days I spent hacking my way around it in an earlier case. I've never
> >  thought to replace the whole string by some single character then split
> by
> >  that. I appreciate the pointer, and apologize for my anger.
> >
> >
> ---------------------------------------------------------------------------
> > --- Simplify data backup and recovery for your virtual environment with
> >  vRanger. Installation's a snap, and flexible recovery options mean your
> >  data is safe, secure and there when you need it. Discover what all the
> >  cheering's about. Get your free trial download today.
> > http://p.sf.net/sfu/quest-dev2dev2
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> The interesting thing about gambas is that many non obvious things are
> really
> simple. I similarly used to spend many hours getting frustrated (usually
> due
> to my own stupidity and lack of logic, I might add).
>
> If you need help just tar a project from the menu in gambas and people will
> take a look at the code and post it back.
>
> Just ask and anyone will help.
>
> Regards
>
> Richard
>
>
> ------------------------------------------------------------------------------
> Simplify data backup and recovery for your virtual environment with
> vRanger.
> Installation's a snap, and flexible recovery options mean your data is
> safe,
> secure and there when you need it. Discover what all the cheering's about.
> Get your free trial download today.
> http://p.sf.net/sfu/quest-dev2dev2
> _______________________________________________
> 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