The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



LoadData


Unit: SDL_rchart
Class: TSmithChart
Declaration: function LoadData (FName: string; AppendIt: boolean): integer;

The method LoadData loads the data container of TSmithChart from a file which has been created by a previous call to SaveData. The parameter AppendIt determines whether the loaded graphics items are appended to the existing ones, or the data container is cleared before loading the items. LoadData together with SaveData may be used to create templates of graphics. 

The function returns the following result:

≥0 ... everything is OK, the returned value specifies the number of chart items read from the file
-1 ... the file cannot be read
-2 ... the file is not a chart item file (missing version and chart items id)


Last Update: 2017-Sep-09