Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / [STYX] XML function for you

Author
Message
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 19th Oct 2006 18:20
In Styx, if you select a non-existent node, it will crash. Sometimes you may have a situation where a child node may or may not exist, quite legitimately.

This function will solve this problem for you. If it exists, it will move to the child node and return the node index. If it doesn't exist, you will remain at the current node, and teh return value will be -1.

If you pass a name$, it will use that. If you don't, it will use the index number instead.

An example of use would be:



Function:




Login to post a reply

Server time is: 2025-05-17 13:42:18
Your offset time is: 2025-05-17 13:42:18