Database.checkLineOrder


checkLineOrder(lineSelection, checkDirections, pErrMsg)

Given a string containing multiple line ID's in format "1;3;5T8", this function returns true if the lines form either a closed loop or a continuous line

lineSelectionstring string containing the line ID's that need to be checked. This string will be modified such that the lines are in order
checkDirectionsbooleanif TRUE, an error is returned if the lines' individual directions are not consistent. If FALSE, the individual lines' order is ignored.
pErrMsgstring error message describing why it failed
Return valuebooleantrue if the lines form a closed loop or continuous line

Back to Database

Back to Overview