New topic: 

How to create database? [beginners Q]

<http://forums.realsoftware.com/viewtopic.php?t=30712>

       Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic         Author  
Message       Eclipse           Post subject: How to create database? 
[beginners Q]Posted: Wed Oct 28, 2009 3:32 am                        
Joined: Sat May 19, 2007 6:01 am
Posts: 94              I have two buttons in my little small test-program... 
"create database", "delete database".
The code is from the book, the tutorial.
Code:

DIM TextDB As REALSQLDatabase
DIM TargetFile as FolderItem
DIM blnResult as Boolean

TestDB = New REALSQLDatabase
TargetFile = GetFolderItem("MyTestDB")

TestDB.Databasefile = TargetFile
blnResult = TestDB.CreateDatabaseFile

IF blnResult = TRUE THEN
  ' add code...
  TestDB.Close
  MsgBox "Database created"
ELSE
  MsgBox "Database Error: " + TestDB.ErrorMessage
END IF



error: TestDB = New REALSQLDatabase 

"This method or property does not exist"   
                            Top               TomHicks           Post subject: 
Re: How to create database? [beginners Q]Posted: Wed Oct 28, 2009 4:06 am       
                 
Joined: Mon Aug 20, 2007 9:42 am
Posts: 126              TestDB /= TextDB   
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to