Loc
Name-Index-Number Conversion Function
The Loc function converts a name-index number or integer to a Location name. Use this function when a statement or function needs the name of a Location but whose name-index number is stored in an Attribute, Variable, or some other expression. It can also be used to vary a selected Location based on the name-index number stored in the expression.
Syntax
Loc(<location name-index number>)
Examples
Order 10 EntA TO Loc(5)
Display "EntA arrived at" $ Loc(5)
Parameters
(<location name-index number>)
The Location name-index number defined in your model to convert to a Location name.
Remarks
When used in a string expression, ProModel converts the name-index number to the actual Location name. If the expression points to a unit of a multi-unit location, then the Loc function returns the name of the parent Location.