delete end chars

Peter Haworth pete at lcsql.com
Sun Aug 24 15:35:04 EDT 2014


On Sun, Aug 24, 2014 at 10:35 AM, JB <sundown at pacifier.com> wrote:

> (tString1,"(.*)" & tString2 & "$",tString1,tStart,tEnd)


My apologies, should have tested it first!  It should be:

if matchChunk(tString1,".*(" & tString2 & ")$",tStart,tEnd) then
   delete char tStart to tEnd 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>



More information about the use-livecode mailing list