I have an app which I have developed on the Mac, and at one stage I transferred it over to Windows just to see if I could open it as it connects to a database. It opened just fine.
I then had to do some final touches to the program, which I did on the Mac, then I transfered the Xojo Project to my Windows VM on my Mac. As usual I had to tweak a couple of things in the UI.
Then when I came to run it it gave the error message that it couldn’t find the database on disk (I supply the error message).
The sqlite file is sitting in the same folder as the Xojo binary file. My Code for getting the sqlite file is:
[code] Shared Function setupNewDatabase() As PoultryDatabase
'Make sure we can get to the Poultry_db database on disk
Dim dbFile As FolderItem = GetFolderItem(“Poultry_db.sdb”)
If dbFile = Nil Or dbFile.Exists = False Then
MsgBox(“Could not find database on disk.”)
Dim Poultry_db As New PoultryDatabase
Poultry_db.DatabaseFile = dbFile
If Not Poultry_db.Connect Then
MsgBox("Could not connect to " + dbFile.Name)
When I look at the Absolute Path in the debugger it is: “MacintoshHD:Users:cliffgs:Documents:CliffsStorage:ArnoldAcresResources:PoultryClubProject:Poultry_db.sdb”
On Windows it is: “C:\Users\cliffgs\PoultryClubProject\DebugClasses Selection\Poultry_db.sdb”
Where is the “\DebugClasses Selection” coming from, and what difference should it make if it is something Xojo requires to do to work on WIndows.