PDA

View Full Version : getChildren Documentation Issue



bmos
January 5th, 2023, 14:43
https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644582/DB#getChildren


subpath (string)
A relative node identifier specifying the node to delete children from (if sourcenode is a databasenode object)

It appears too much has been copied from deleteChildren (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644582/DB#deleteChildren).

Am I correct in assuming that the second arg for DB.getChildren is optional or nonexistent?

Moon Wizard
January 5th, 2023, 18:58
Thanks. I've updated the documentation.

The second tag is optional (thus the brackets around the parameter in the code section), and works exactly the same.

I also added the getChildList API, which I've started using which uses numerical keys for the table returned. (which should be slightly faster, since any string parameters in either direction require byte conversion.)

Regards,
JPG