<tabs> in the editor(s)

Alex Tweedly alex at tweedly.net
Sun Jul 10 09:42:34 EDT 2005


Jon wrote:

> I guess I should have asked this obvious question a few weeks ago, 
> when it was revealed that <tab> reformats text rather than inserting 
> the <tab> character.
>
> How does one insert a <tab> character using the editor(s) [including 
> Constellation, Jerry]?  I want to create a table of values, and I 
> think I need to use tabs to separate out the various values.  Or maybe 
> I'm on the wrong track entirely.  Won't be the first time...

I usually do something like

local myVar = "1,2,3"
....
replace comma by TAB in myVar
....

though I have been known to do

>   put "asd\twer" into a
>   replace "\t" with TAB in a

Or use a different character instead (I often use "|", in any case where 
I might want to deal with "normal text" which might contain tab 
characters); obviously you can't do that if you need tab-formatting in 
output to fields, but otherwise it's often a better choice.

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



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.11/44 - Release Date: 08/07/2005




More information about the use-livecode mailing list