AutoPlay Media Studio 9

Grid.LoadFromFile

Grid.LoadFromFile

This is the first topic This is the last topic  

Grid.LoadFromFile

This is the first topic This is the last topic  

OverviewExamples

boolean Grid.LoadFromFile (

string ObjectName,

string FullPath,

string SeparatorCharacter = ",",

boolean AutoSize = true )

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


Learn More: Indigo Rose Software - AutoPlay Media Studio - Buy Now - Contact Us