Skip to main content

ImportFromFile

Structure

ImportFromFile(sFileName: Text): Text

Type

Function

Description

This function imports the sFileName file into the database. The file should be a zip previously created from Export/Import module. If the import is successful the function will return 'SUCCESS'

Parameters: 1

sFileName = the name of import file - full directory and file name + zip can be given. If no extension is given then zip will be assumed. If no directory is given then the IndySoft Temp directory will be assumed.

Return Value

Boolean

Examples

sFileName = "C:\MyImportDir\LatestImport.zip"

sResult = ImportFromFile(sFileName)

if sResult = "SUCCESS" then

ShowMessage("Import completed: " & sFileName)

Else

ShowMessage("Import NOT completed: " & sFileName & Chr(13) & sResult)

End If |