This function retrieves the end node of an element.
GetElementEndNode (string DatabaseName, int ElementIndex)
DatabaseName (character string). The full path name to the relevant database.
ElementIndex (integer). The relevant index of the element.
-9999998 (if the specified database is invalid)
-9999999 (if the index is out of bounds)