It is really the same thing...

   put "Hello" into $MyCrappyText
   put char 2 to (the number of chars of $MyCrappyText) of $MyCrappyText into 
$MyCrappyText
   put $MyCrappyText

> Date: Wed, 19 Feb 2014 14:22:08 +0200
> From: richmondmathew...@gmail.com
> To: use-livecode@lists.runrev.com
> Subject: Re: Delete char in string
> 
> On 19/02/14 14:09, John Dixon wrote:
> > as in something like this...
> >     put char 2 to (the number of chars of fld 1) of fld 1 into fld 2
> >
> >
> Exactly:
> 
> nipping chars off strings in fields is dead easy:
> 
> delete char 1 from field "MYCRAPPYTEXT"
> 
> but I have a funny feeling that everything will move a whole lot quicker 
> if one could do this sort of thing:
> 
> delete char from $MYCRAPPYTEXT
> 
> where the name with the $ is a string variable [Err . .  guess my 
> FORTRAN underwear is showing]
> 
> >> Date: Wed, 19 Feb 2014 14:05:20 +0200
> >> From: richmondmathew...@gmail.com
> >> To: use-livecode@lists.runrev.com
> >> Subject: Delete char in string
> >>
> >> I am trying to do this:
> >>
> >> delete first char of $TEXT
> >>
> >> where $TEXT is a string
> >>
> >> and seem to be getting myself into trouble.
> >>
> >> Richmond
> >>
> >> _______________________________________________
> >> 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