Subj : ptridx in msg_area.grp_list.sub_list
To : Digital Man
From : deon
Date : Tue Dec 03 2024 09:32 pm
Re: ptridx in msg_area.grp_list.sub_list
By: Digital Man to deon on Mon Dec 02 2024 11:29 pm
Howdy,
> The best way to uniquely identify a sub-board is via its internal code. Then
> can also reference a sub quickly/easily via msg_area.sub[internal_code].
Yeah, that's not helping me with what I'm wanting. internal_code's can be changed, which would throw off what I'm trying to do.
Sorry, you've given me other answers to my question, so I want to confirm - and I'll create an example.
Lets say I have Sub Board "foo" (internal code GRP-FOO), which in scfg you edit that sub board, under "Advanced Options", its states "Point File Index" and a number, eg: 23.
This number 23 corresponds to a JS object call to msg_area.grp_list[x].sub_list[y].ptridx with a value of 23. ("y" is not necessary 23), that is this Sub Board - correct?
So "foo" will always have ptridx = 23 until it is deleted - correct? Nothing else will result in that value being changed?
If I was to go through all the results of msg_area.grp_list[x].sub_list - only 1 will have a value of ptridx=23, which is this sub board?
I see you are planning other things with (other?) instances of ptridx - are you planing on getting rid of this value in the sub board config too?
Thanks...
...����
---
� Synchronet � AnsiTEX bringing back videotex but with ANSI