First 1000 characters without loop?

Richard Gaskin ambassador at fourthworld.com
Fri Jun 23 20:06:06 EDT 2017


Mark Waddingham wrote:

 > On 2017-06-23 03:19, Richard Gaskin via use-livecode wrote:
 >> Seems murky.  I'd much rather at least have something like a byteLen
 >> function, which returns the number of bytes for a given string.  With
 >> that I can maintain byte offsets into a file with good performance
 >> and no ambiguity.
 >
 > You do:
 >
 >    the number of bytes in textEncode(tString, <encoding>)

Ah, yes - of course.  Thanks for the reminder.  I keep forgetting about 
the byte chunk type.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list