www.Chart4.NET | Samples

Loads data from a CSV (Comma Separated Values) file / flat file. See LoadFromCsvContent() for the desired CSV format and remarks.

Namespace:  UnifoChart.Hierarchy
Assembly:  UnifoChart.Hierarchy (in UnifoChart.Hierarchy.dll) Version: 2.6.0.0 (2.6)

Syntax

C#
public string LoadFromCsvFile(
	string FilePath,
	string CommaString
)
Visual Basic (Declaration)
Public Function LoadFromCsvFile ( _
	FilePath As String, _
	CommaString As String _
) As String
Visual Basic (Usage)
Dim instance As HierarchyData
Dim FilePath As String
Dim CommaString As String
Dim returnValue As String

returnValue = instance.LoadFromCsvFile(FilePath, _
	CommaString)
Visual C++
public:
String^ LoadFromCsvFile(
	String^ FilePath, 
	String^ CommaString
)
J#
public String LoadFromCsvFile(
	String FilePath,
	String CommaString
)
JScript
public function LoadFromCsvFile(
	FilePath : String, 
	CommaString : String
) : String
JavaScript
function LoadFromCsvFile(FilePath, CommaString);

Parameters

FilePath
Type: System..::.String
Filename including the path of the file, that has valid CSV content.
CommaString
Type: System..::.String
The string or character that has to be treated as a comma (,) within the text.

Return Value

Returns blank if succeeded, error message otherwise.

See Also