refreshData  
Top  Previous  Next

refreshData ( string File )

Use this function to reload data from a file into an opened table.

Parameters
 
File  
 
A string specifying the title of a table to be refreshed. This also indicates the name of the file from which the data will be reloaded.  
 
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 and refreshes its content after a pause.  
 
setCurDir ("data")  
loadData("sample1.dbs")  
pause()  
'edit the content of the table, press Execute when finished  
refreshData("sample1")