Re: Right Justifyã By: DesotoFireflite to Digital Man on 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ã > DM> 5 characters (minimum), using spaces for padding. If you wantedã > DM> 0-padding instead, then you'd specify "%05u". If you wantã > DM> left-justification, use "%-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 :(ããYou would use %s instead of %u:ã
https://en.wikipedia.org/wiki/Printf_format_stringã-- ã digital manããSynchronet/BBS Terminology Definition #33:ãFTN = FidoNet Technology NetworkãNorco, CA WX: 57.3øF, 43.0% humidity, 11 mph ESE wind, 0.53 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã