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

2011-06-07 Thread Fabien Bodard
2011/6/6 Caveat : > For myself, apology accepted, but then I'm not the one that spent the > last 12 years of his life dedicating hour after hour and day after day > to developing such an amazing language as Gambas :-) > > Hearing your frustration, I'm wondering whether you're taking a > corkscrew t

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

2011-06-07 Thread Titan Rain
I appreciate all the suggestions and options everyone has posted, and I'm taking them all into consideration as I move forward in this project. -- EditLive Enterprise is the world's most technically advanced content author

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

2011-06-06 Thread Jesus
El 06/06/11 09:25, Caveat escribió: > > I don't really know what it is you're ultimately trying to achieve but > if you need to do extensive string manipulations perhaps even involving > regular expressions, perl might be a better choice. If you're trying to > parse web-pages, then python with

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

2011-06-06 Thread Bruce Bruen
On 06/06/11 09:25, Caveat wrote: > You're asking the wrong question. What you meant to ask was whether > anyone thought it necessary to include that functionality in the > language itself. > > Splitting your string on "AE" is easily done, for example: > >DIM aString AS String >DIM strings

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

2011-06-06 Thread Caveat
For myself, apology accepted, but then I'm not the one that spent the last 12 years of his life dedicating hour after hour and day after day to developing such an amazing language as Gambas :-) Hearing your frustration, I'm wondering whether you're taking a corkscrew to crack a nut (or a nut-crack

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

2011-06-05 Thread Dimitris Anogiatis
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'

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

2011-06-05 Thread richard terry
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 t

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

2011-06-05 Thread Titan Rain
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 tha

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

2011-06-05 Thread Caveat
You're asking the wrong question. What you meant to ask was whether anyone thought it necessary to include that functionality in the language itself. Splitting your string on "AE" is easily done, for example: DIM aString AS String DIM strings AS String[] aString = "AE300AE318AE65AEBuddiesA

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

2011-06-05 Thread Titan Rain
So in 12 years of development no one has ever thought it might be necessary to split a string by more than one character? -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a sn

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

2011-06-05 Thread Benoît Minisini
> This is getting ridiculous. > > I have now written a function to strip out all the headers and replace > all Chr(&C0) and all Chr(&80) (the ascii AE's) with a plain text AE. > The string is now > "AE300AE318AE65AEBuddiesAE302AE319AE300AE319AE7AEclassybabe27_742AE301AE319 > AE303AE319AE301AE318AE

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

2011-06-05 Thread Titan Rain
This is getting ridiculous. I have now written a function to strip out all the headers and replace all Chr(&C0) and all Chr(&80) (the ascii AE's) with a plain text AE. The string is now "AE300AE318AE65AEBuddiesAE302AE319AE300AE319AE7AEclassybabe27_742AE301AE319AE303AE319AE301AE318AE300AE318AE65AEF

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

2011-06-04 Thread Kevin Fishburne
On 06/05/2011 01:52 AM, Titan Rain wrote: > I'm trying to split a response from a server that has been stored as a > string. This response contains the ascii characters  as data field padding. > I should mention the response can get quite long too. Over 500 characters > easily. For example a r

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

2011-06-04 Thread Titan Rain
I'm trying to split a response from a server that has been stored as a string. This response contains the ascii characters  as data field padding. I should mention the response can get quite long too. Over 500 characters easily. For example a response may look something like 3somestring