LoadCsvFile

<< Click to Display Table of Contents >>

Manual > Control Reference > Route > Route Methods >

LoadCsvFile


 

Read from CSV file.

 


syntax

LoadCsvFile(

         fileName,

         &data

         [,bHeader = FALSE]

         [,&headerData]

         [,firstLineStr = ""]

         [,endLineStr = ""]

         )

 


Parameters

 

fileName

 

Type:

character

 

File name.

 

&data

 

Type:

Character Array

 

Variable for storing the contents of the CSV file. The contents are obtained as a two-dimensional array. The contents are referenced by data[ column, row].

 

bHeader

 

Type:

Boolean

 

When TRUE is selected, the first line of the CSV file will be treated as a title line and will not be included in the data.

 

&headerData

 

Type:

Character Array

 

When bHeader is TRUE, the first line of the CSV file is considered to be the title line, and the contents of that title are stored in headerData.

 

firstLineStr

 

Type:

character

 

If firstLineStr is specified, a line that matches that character is searched for and the next line is read.

 

endLineStr

 

Type:

character

 

If endLineStr is specified, a line that matches that character is searched for and up to the previous line is read.

 

Return Value

 

 

Type:

Boolean

 

FALSE - Failure. TRUE - Success.

 


hmtoggle_plus1Explanation

 

hmtoggle_plus1Example

 


Supported


Script Action

Browser script

×

Calculation formula syntax

 

 


reference