Subj : Right Justify
To : Digital Man
From : DesotoFireflite
Date : Tue Dec 29 2020 04:44 pm
Re: Right Justify
By: Digital Man to DesotoFireflite on Mon Dec 28 2020 02:37 pm
DM> var lastCallerStr = format("\1h\1c%5u \1h\1c%5u", tlogons, firstOn);
DM> That print the integers ('u' means unsigned integer) right-justified to 5
DM> characters (minimum), using spaces for padding. If you wanted 0-padding
DM> instead, then you'd specify "%05u". If you want left-justification, use
DM> "%-5u". --
Ok, I think I got that, and I have managed to make it work with different colors for anything that uses strictly numbers, but lets say there is a alias field, and a date field, if I use the u, which applies to intergers, I get <error> in the field, and if I leave out the padding and justifaction, I get a blank screen.
var lastCallerStr = format("\1h\1c%5u \1h\1r%2u \1h\1g%2u", tlogons, age, sec);
The above works as is, but what would I use instead of a u to format the alias and a date field with color. I tried to find the answer on my own looking at the js object model, but no luck. I guess what do i use in place of the u for text and dates.
var lastCallerStr = "\1h\1b" + alias + " " + "\1h\1y" + lastOn;
Thanks, as always. I beginning to think, that this is way over my head :(
SysOp: C.G. Learn, AKA: DesotoFireflite
Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com
Valhalla II! - (GAP) - bbs.valhallabbs.com:24
A Gamers Paradise - Over 150 Registered Online Game Doors!
Home Of Odin's Maze Game Server!
Come Play Trade Wars On Valhalla's T.W.G.S!
--- Don't eat the yellow snow!
� Synchronet � Valhalla Home Services � USA �
http://valhalla.synchro.net