Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » How to save the DB data to another SQLite db file in HomeBudget?
Re: How to save the DB data to another SQLite db file in HomeBudget? [message #14512 is a reply to message #14392] Thu, 28 February 2008 03:23 Go to previous message
fuqr is currently offline  fuqr
Messages: 16
Registered: July 2007
Location: Singapore
Promising Member
Thanks bytefield,
You are right the problem is the DB session is created in GUI_APP_MAIN.
Acturaly what I tried is the following:(simple way Smile )
===============================================
String filenameas; // I put in global variable: *.h

void HomeBudget::DbSaveAs()
{
FileSel fsas;
fsas.ActiveDir(GetCurrentDirectory());
fsas.Type("db3", "*.db3");
if(fsas.ExecuteSaveAs()
{
if(FileExists(filenameas))
......
}
}

GUI_APP_MAIN
{
......
String filename = fs;
FileIn fi(filename);
filenameas = filename; // failed line ???
......
}
===================================================
To open different DB file I didn't use *.cfg file.
Thanks for your help!


 
Read Message
Read Message
Read Message
Previous Topic: Can't fetch row...
Next Topic: Table field name conflict?
Goto Forum:
  


Current Time: Mon Aug 25 10:51:44 CEST 2025

Total time taken to generate the page: 0.05990 seconds