Use this for debugging purposes along with the PRINT function to know line number in script section where the information is located.

 

NOTE:

Always append an open and closed parentheses () symbol after function name (See examples).  

 

Syntax:

Print LineNumber()

 

Parameter:

Description:

N/A

Does not use a parameter.

 

Example 1:

'  Display the editor line number where the LineNumber function is located.
PRINT "LineNumber ", LineNumber()

 

Return 1:

Returns the current line number of the script where this function is placed.

 

Example 2:

'  Use LineNumber, and block.scriptName to know where

'  Print Output information is located. to identify
PRINT LineNumber(), "Enter any other values needed"

 

Return 2:

872,Enter any other values needed

 

Example 3:

'  Print Script Information with a Line Number Reference
PRINT "iLineNum", "ScriptName", "Why", "t.CurDate"
PRINT iLineNum(), block.scriptName, sWhyMsg, test.currentDate

 

Return 3:

iLineNum

CallScript

Why

t.CurDate

24

Before Trading Day

Position Changes

1/13/2015

 

 

Links:

Block Object

See Also:

General

 


Edit Time: 9/25/2017 09:09:58 AM


Topic ID#: 402

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software