Grid.LoadFromFile

boolean Grid.LoadFromFile ( 

string ObjectName,

string FullPath,

string SeparatorCharacter = "," )

Example 1

-- Load values from a csv file into the grid.
Grid.LoadFromFile("Grid1", "AutoPlay\\Docs\\gridfile.csv", ",", false);
-- Set the fixed column up again since this will not be stored in the csv file.
Grid.SetFixedColumnCount("Grid1", 1);
-- Set the fixed row up again since this will not be stored in the csv file.
Grid.SetFixedRowCount("Grid1", 1);

Loads values from a .csv file.

Example 2

-- Load values from a txt file into the grid.
-- Also note that this uses a semicolon rather than a comma as the separator
Grid.LoadFromFile("Grid1", "AutoPlay\\Docs\\config.txt", ";", true);

Loads a text file that is semi colon delimited.

See also:  Related Actions