NearestNode

Top  Previous  Next

Function NearestNode(node,nodenum: integer): integer

 

Finds the nearest node from a list of nodes, calculated from a starting node.

 

Enter a list of possible nearest nodes through the standard node list functions and call the function with these parameters:

 

Node is the starting node.

Nodenum is the number of nodes on the node list.

 

Returns the ID of the nearest node on node list, that is a number between 1 and nodenum. The real node ID can then be found with NodeListGet. If return value=0, none of the nodes where found.

 

Possible error codes: -10 -30 -43

Versions: Standard Pro

ActiveX / VCL / CLX component: RWcalc