Subj : MsgBase.cfg object
To   : Khelair
From : Nightfox
Date : Fri Feb 19 2016 12:45 pm

>   Is there some way other than MsgBase.cfg.index to retrieve the current
> index of either the current sub or the opened MsgBase object?  I'm
running
> into a wall that I've hit a few times here where I keep getting
exceptions
> thrown about 'mBase.cfg.index is undefined', where mBase is my verified
open
> MsgBase object.  I've stumbled around this problem many times before, but
> I'm having trouble figuring out how I got around it before.  Is this
still a
> supported object in the Synchronet JS api?
>   Very much appreciate any information on this you might be able to give.
> Thanks for your time.

msg_area.sub is an associative array of all sub-boards, indexed by internal
code.  You probably know the internal code you used to create the MsgBase
object, so you could look into msg_area.sub[code] (where code is the
internal code of the message sub-board) - There's probably a property there
that has the index of the current sub.  I can't look into it more right now,
but you can output all the properties & their values of that in JavaScript
like this:

for (var prop in msg_area.sub[code])
  console.print(prop + ": " + msg_area.sub[code][prop] + "\r\n");
console.pause();

Nightfox

---
� Synchronet � Digital Distortion: digitaldistortionbbs.com