Menu
Java has a function called setTabSize(). Does JavaScript have a similar function?
Java has a function called setTabSize().
[/quote]
[i]Originally posted by Kor [/i]
[B]Which do what? (java and javascript are totally different languages) [/B][/QUOTE]
Your comment, jbot, is usless, according to the situation.[/QUOTE]
[i]Originally posted by Mike Burdick [/i]
[B]This is what I'm trying to accomplish:
I have several one line read-only text fields that I'm using to output some numbers to. Because they are in a column, I would like the contents to be right justified. I thougth if I could use a tab, I could position them correctly - pad them so to speak. To tab, I would put an escape code for tab (09) in the string.[/B][/QUOTE]
[CODE]
String.prototype.indent=function(type,size)
{
var s="";
for (var i=0; i<size.length; i++)
{
switch (type)
{
case "chars": s+=" "; break;
case "tabs": s+="t"; break;
}
}
return s+this;
}[/CODE]
[i]Originally posted by Mike Burdick [/i]
[B]
For some reason if I use that tab escape value it moves over 5 character spaces. I would like to be able to set it to other values as needed.
Anyway, this may not be possible, and I may only be able to pad it with normal spaces. [/B][/QUOTE]
I had no idea that the text field had that feature. I even searched the Internet, but nothing came up.
[/quote]
0.1.9 — BETA 5.5