Server-Side JavaScript Example 3

List Enumeration Using RMAGetNthProperty()

var s = "" ; var listIndex = 0 ; var listName = RMAGetNthProperty( "config.FSMount", listIndex ); // GetNthProperty returns null asked for a property number greater then the length of the list while ( listName ) { // test whether "listName" is actually a sublist (of FSMount) if ( RMAGetNthProperty( listName, 0 ) ) { var mountPoint = RMAGetPropertyValue( listName + ".MountPoint" ); if ( mountPoint ) { s = "\n" ; RMAOutput( s ); } } listName = RMAGetNthProperty( "config.FSMount", ++listIndex ); }
Mount Points
File SystemMount Point
" + listName + "" + mountPoint + "