Thank you for the reply and code.

I can’t seem to get it to work right.
The only thing I could make it do is
if ABC is string1 and ABC us string2
it will delete string2 but if chars are
before the ABC in string2 nothing is
deleted.

Even so it is good code and I might
need to use it sometime.

John Balgenorth


On Aug 24, 2014, at 9:28 AM, Peter Haworth <p...@lcsql.com> wrote:

> if tString1 ends with tString2 then
>   delete char (the length of tString1 - the length of tString2 +1 ) to -1
> of tString1
> end if
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> 
> 
> On Sun, Aug 24, 2014 at 8:12 AM, JB <sund...@pacifier.com> wrote:
> 
>> Hi,
>> 
>> Thanks for the reply.
>> 
>> I am saying if I have “ABC” in one string and the other string
>> has “KCFAJFCABC” then I want to delete the “ABC” from
>> the end of the second string leaving “KCFAJFC”.
>> 
>> John Balgenorth
>> 
>> 
>> On Aug 24, 2014, at 8:09 AM, dunb...@aol.com wrote:
>> 
>>> Hi.
>>> 
>>> 
>>> Are you saying that if you have "ABCD" and somewhere else you have:
>> "AXFRZC" that you want to delete the "C" from the first string?
>>> 
>>> 
>>> Whatever you want, the chunking and text control within LC is more than
>> adequate to do the job, and will be fun do execute as well. But is this
>> what you meant?
>>> 
>>> 
>>> Craig Newman
>>> 
>>> 
>>> 
>>> -----Original Message-----
>>> From: JB <sund...@pacifier.com>
>>> To: How to use LiveCode <use-livecode@lists.runrev.com>
>>> Sent: Sun, Aug 24, 2014 10:16 am
>>> Subject: delete end chars
>>> 
>>> 
>>> If I have a certain amount of characters
>>> and I want to check the end of another
>>> line of characters to see if they are there
>>> and if so then delete them what is the
>>> fastest way to do delete the characters
>>> at the end of the specified line?
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to