• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Replacing range within a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Replacing range within a string


  • Subject: Replacing range within a string
  • From: Bryan Harris <email@hidden>
  • Date: Tue, 27 Feb 2001 12:23:40 -0600

Is there an equivalent of the Perl "substr" command in AS?

More specifically, I'd like to remove the seconds on a "time string of
(current date)". Is there an easy way to do this?

(something like: set text -6 thru -4 of aTimeString to "")

TIA.

- Bryan


  • Follow-Ups:
    • Re: Replacing range within a string
      • From: g3pb <email@hidden>
  • Prev by Date: global variable not being recognized by script object subroutine
  • Next by Date: Re: Re: Write to file
  • Previous by thread: Re: global variable not being recognized by script object subroutine
  • Next by thread: Re: Replacing range within a string
  • Index(es):
    • Date
    • Thread