Subj : Re: Add and object to an array
To : echicken
From : Mortifis
Date : Fri Jul 19 2019 09:47 am
> Re: Re: Add and object to an array
> By: Mortifis to echicken on Thu Jul 18 2019 20:16:09
> Mo> I saw that, I had thought that writes to a file in /sbbs/data/logs/
> It goes wherever your log output goes (which varies with how your BBS is set
> up).
Bleh, ... backstory, I gotr hurt at work and am trying to learn new stuffies so
I chose JS ... I know how to do these things with php ... anyway, it seems the
JS examples and such are a little different in sbbs js (JavaScript-C 1.8.5)?
So, I used: dup_list.push({number: u.number, num: u.number, alias: u.alias,
email: u.netmail, d_num: d.number, d_alias: d.alias});
and thought it could be accessed with a console prompt
if(js.global.console)
edit=console.getstr(70,K_LINE);
else
edit=readln();
if(edit=="") {
print("\r\n\r\nExiting ...\r\n\r\n");
exit();
}
printf("Loading Record " + edit);
const dupUser = dup_list.find(dup_list => dup_list.number === edit);
but I get a syntax error :-/
No wonder I keep going back to php lol
My teachers always said "You can't make a living looking out a window!", they
were wrong, I drive truck :-P
---
� Synchronet � AlleyCat! BBS -
http://alleycat.synchro.net:81