XML Loaddump

Deane Venske deane.venske at eduss.com
Mon Mar 8 13:12:36 CST 2004


To follow this up I've tried this in a blank RB app that only dumps and 
loadDumps a very simple db (1 table, 1 field no data) and it creates the 
XML but does not create the DB from loadDump.

> Hi everyone,
>
> I'm busy trying to load an XML dump file. I keep getting an error 19. 
> The docs say thats a windows error but can't find any info on that.
> I can load this XML file fine using VStudio, so I'm thinking there is a 
> problem in my code. But I can't figure it out. Can anyone see any 
> problems here?
>
>
> Sub Action()
>    Dim sqlFile As FolderItem
>    Dim backupDb As VDataBase
>    Dim f As FolderItem
>
>    sqlFile = GetFolderItem("tempBackup.xml")
>    backupDb = new VDataBase
>    f = GetFolderItem(edtBackupPath.Text)
>    backupDb.LoadDump(sqlFile, f, 2)
>    msgbox cStr(backupDb.ErrNumber)
>    backupDb.Close
> End Sub
>
>



-- 
Deane Venske - Senior Programmer
www.eduss.com.au   deane.venske at eduss.com
+61 7 55974600  +61 405148718
Suite 29,  207 Currumburra Rd
Ashmore, Queensland, 4214
Australia


More information about the Valentina mailing list