Replacing Characters
JB
sundown at pacifier.com
Sat Sep 27 01:10:02 EDT 2014
Thank you for the info. I knew someone
who knew everything once but with the
rapid pace of change in technology it
became impossible for him to keep up
and everyday he ended up knowing a
little bit less.
John Balgenorth
On Sep 26, 2014, at 9:50 PM, <larry at significantplanet.org> <larry at significantplanet.org> wrote:
> My experience is that when doing string searching offset() is by far the fastest way.
> But I don't know everything.
> Larry
>
> ----- Original Message ----- From: "JB" <sundown at pacifier.com>
> To: "How to use LiveCode" <use-livecode at lists.runrev.com>
> Sent: Friday, September 26, 2014 10:26 PM
> Subject: Replacing Characters
>
>
>> I want to replace every third character in
>> a text string if it is a certain character. So
>> lets say I have a list of characters there
>> range from A thru F and the list is possibly
>> 10,000 characters long.
>>
>> I want to check every third character in the
>> list and if it is a D then I want to change it
>> to a +.
>>
>> I can probably do it with a repeat and use a
>> variable for a counter that resets every three
>> times and then check the character when the
>> counter gets to three but I was wondering if it
>> could be done faster somehow.
>>
>> John Balgenorth
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list