Subj : JS Formatting
To : Digital Man
From : DesotoFireflite
Date : Sun Jul 10 2022 07:50 pm
Re: JS Formatting
By: Digital Man to DesotoFireflite on Sun Jul 10 2022 02:40 pm
DM> Re: JS Formatting
DM> By: DesotoFireflite to All on Sun Jul 10 2022 07:24 am
>> I added a message option to send me an email everytime a new user was
>> verified by the emailvar.js. It's working correctly, and I'm very
>> satisfied with my efforts to make it work. The message it send to my
>> email is as follows:
>> -+- Snipit ----
>> msgtxt = "New Member, Alias: " + user.alias + ", #: " +
>> String(user.number) + ", Joined " + system.name + " Today " + (new
>> Date()); -+- Snipit ----
>> expands as follows in the message:
>> New Member, Alias: Tuff, #: 191, Joined Valhalla Home Services Today
>> Sun Jul 10 7:15:32
>> I would rather it to be somewhat like this:
>> New Member Joined Valhalla Home Services Today Sun Jul 10 7:15:32.
>> Alias: Tuff
>> Number: 191
>> Is there a way to do this. For the like of me, I can't find a way to
>> do this formatting. I'm successful in doing it in one line, but I'm
>> trying to learn more. Thanks in advance.
DM> msgtxt = "New Member Joined " + system.name + " Today " + new Date() +
DM> ".\r\n"; msgtxt += "\r\n Alias: " + user.alias;
DM> msgtxt += "\r\n Number: " + user.number;
DM> msgtxt += "\r\n";
WOW, that was simple enough. I had no idea you could do it this way, but after looking at it, it makes perfect sense.
I wish there was a tips and tricks info site on js, that I could explore.
Thanks again for the assist.
SysOp: C.G. Learn, AKA: DesotoFireflite
Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com:23
A Gamers Paradise - Over 250 Registered Online Game Doors!
--- Don't eat the yellow snow!
� Synchronet � Valhalla Home Services � USA �
http://valhalla.synchro.net