Faster way to get tabStops?

Paul Dupuis paul at researchware.com
Wed Feb 18 20:15:57 EST 2015


On 2/18/2015 6:50 PM, Dan Friedman wrote:
> Greetings!  I am trying to set the tabStops to fit the data a field.  The script below works great!  However, ask it to process a few thousand lines with 10 or so columns, and you'll have time to get a cup of coffee!  Any ideas on how to speed this up?  Maybe there is some magical property I don't about?
>
>

If you are using LC 6.5 or above, look at the measureText(text,object
reference,[mode]) function in the dictionary. It may (or may not) be
faster than the formattedWidth of a chunk of the field.




More information about the use-livecode mailing list