loadData
Top  Previous  Next

laodData ( [ string File ] )

Use this function to open an existing data file in a table.

Parameters
 
File  
 
An optional string specifying the path and name of the file from which the data will be loaded. If the path is not specified, the default directory will be used. The format of the data file is defined by a file extension. See the remarks below for a list of valid file extensions. If this parameter is omitted, the Open Data dialog box will appear allowing the user browse through the folder list and select the desired file.  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  
 
ERR_NOTFOUND  
 
The flag set if the file was not found.  
 
ERR_BADFORMAT  
 
The flag set if the file format was not recognized  
 
Example

This set of statements loads a sample data file into a table.  
 
setCurDir ("data")  
loadData("sample1.dbs")  
 
Remarks

The following data file extensions are supported:  
 
"dbs" – ImageWarp data file  
"dbx", – ImageWarp extended data  
 
For more information on the Open Data dialog and data file formats refer to ImageWarp User's Guide.