len of field

Alex Tweedly alex at tweedly.net
Thu Aug 25 13:39:07 EDT 2005


Lynch, Jonathan wrote:

>Here is a single line method:
>
>Put Characters 1 to 14 of (tVar & "              ") into tVar
>
>
>This has a difference, however. It automatically removes all the characters in tVar past character 14. Perhaps that is preferable?
>  
>
It probably is preferable. If it's not, use

   put char len(tVar)+1 to 14 of "              " after tVar

(make sure you have at least 14 spaces - more doesn't hurt
 you could use "... to -1" - but "... to 14" makes it more 
self-documenting :-)

-- 
Alex Tweedly       http://www.tweedly.net



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.15/80 - Release Date: 23/08/2005




More information about the use-livecode mailing list