Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

Call

Use this function in Longview Application Framework to run a Subroutine Document from a Model Document.

Use a Subroutine Document to avoid repeating common calculations in multiple Longview documents. You can also create a subroutine when you have to create a complex calculation.

Copy

Syntax

CALL "Subroutine";ListPassedSyms;ListConstants;ListReturnSyms        

where:

  • "Subroutine" is a Subroutine Document. It can include a complete or partial folder path in the format Subroutine.Folder. If the document is in the Longview working folder, you do not need to specify the folder. The folder path must be enclosed in double quotation marks.
  • ListPassedSyms is a list of input symbol values required by the calculations specified in the Subroutine Document. The number of symbols (both SymNameIn and SymNameOut) and constants in the Call statement must equal the number found in the header line (the first line) of the Subroutine Document. If no symbols or constants are passed between the Subroutine Document and the calling document, the Subroutine Document does not contain a header line. Use semicolons ( ; ) to separate each part of the Call statement, even if some of them are not required. If necessary, use commas ( , ) to separate multiple parameters within a part. Whether you have any symbols to pass on depends on whether the Subroutine Document needs them. Specify the input symbols only if the Subroutine Document requires the values of the symbols to complete the calculations.
  • ListConstants is a list of constant values to pass to the Subroutine Document.
  • ListReturnSyms is a list of output symbols or calculated results passed back by the Subroutine Document to the original document.

Note: The names of the symbols and constants you use in the Call statement may differ from the symbol names specified in the header line of the Subroutine Document. However, they must be of the same type and contain the same number of parameters.

Copy

Syntax example

CALL "Subl.txt"; CASH1, CASH2; 33; “abc”; CASH3, CASH4                

Published:

Call

Use this function in Longview Application Framework to run a Subroutine Document from a Model Document.

Use a Subroutine Document to avoid repeating common calculations in multiple Longview documents. You can also create a subroutine when you have to create a complex calculation.

Copy

Syntax

CALL "Subroutine";ListPassedSyms;ListConstants;ListReturnSyms        

where:

  • "Subroutine" is a Subroutine Document. It can include a complete or partial folder path in the format Subroutine.Folder. If the document is in the Longview working folder, you do not need to specify the folder. The folder path must be enclosed in double quotation marks.
  • ListPassedSyms is a list of input symbol values required by the calculations specified in the Subroutine Document. The number of symbols (both SymNameIn and SymNameOut) and constants in the Call statement must equal the number found in the header line (the first line) of the Subroutine Document. If no symbols or constants are passed between the Subroutine Document and the calling document, the Subroutine Document does not contain a header line. Use semicolons ( ; ) to separate each part of the Call statement, even if some of them are not required. If necessary, use commas ( , ) to separate multiple parameters within a part. Whether you have any symbols to pass on depends on whether the Subroutine Document needs them. Specify the input symbols only if the Subroutine Document requires the values of the symbols to complete the calculations.
  • ListConstants is a list of constant values to pass to the Subroutine Document.
  • ListReturnSyms is a list of output symbols or calculated results passed back by the Subroutine Document to the original document.

Note: The names of the symbols and constants you use in the Call statement may differ from the symbol names specified in the header line of the Subroutine Document. However, they must be of the same type and contain the same number of parameters.

Copy

Syntax example

CALL "Subl.txt"; CASH1, CASH2; 33; “abc”; CASH3, CASH4                

For an optimal Community experience, Please view on Desktop