Re: Enhancements to msg_areas and MsgBase.
By: Digital Man to deon on Sun Apr 24 2022 10:10 am
> > The documentation for MsgBase.cfg indicates that the "index" (to sub_list) should be shown, but it doesnt appear. It shows
> > grp_number,
> > but not index.
>
> The "index" property of cfg is populated in the msg_area object but not instance of MsgBase, by design.
>
> > Is that an ommission? (If so, can it be added).
>
> It was intentional (there's no array being generated when a MsgBase object is created).
OK, makes sense.
I got it from here https://synchro.net/docs/jsobjs.html#MsgBase.cfg_object_properties, I guess it needs updating in case it throws somebody else off :)
> Yes, and you can use "code" as a index into msg_area.sub[] to get to the "cfg" of interest (that includes the "index" property).
Ahh, OK that should work too, thanks. I'll have a play.
> I'll add a issue/request to gitlab for that enhancement.
Thank you :)
...лоеп
---
ю Synchronet ю Alterant | an SBBS in Docker on Pi!
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
|