I am not finding this easy!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
I am not finding this easy!
Hi,
I am evaluating RunRev on Ubuntu 8.04 but must admit that I am having a torrid time of it. I am strictly a data hack so I started with sqlite sampler example. It says in the intro that dbSQLite currently works only on Windows and Mac OS X but it seemed to work none the less. Huh?
I then went on the the Databases.rev example which gives the error:
could not create sqlite database file at "/sqlitedatabasesample.db"
I guess this is a permission thing because the program is trying to create the database in the root directory.
Looking at the code, it would appear that the program is not correctly interpreting the bit
"put item 1 to -2 of the filename of this stack into tSQLiteDatabaseFile" correctly because the stack is saved in /home/charles/My Revolution Studio/
Surely I am making this harder than it should be!
rgds
I am evaluating RunRev on Ubuntu 8.04 but must admit that I am having a torrid time of it. I am strictly a data hack so I started with sqlite sampler example. It says in the intro that dbSQLite currently works only on Windows and Mac OS X but it seemed to work none the less. Huh?
I then went on the the Databases.rev example which gives the error:
could not create sqlite database file at "/sqlitedatabasesample.db"
I guess this is a permission thing because the program is trying to create the database in the root directory.
Looking at the code, it would appear that the program is not correctly interpreting the bit
"put item 1 to -2 of the filename of this stack into tSQLiteDatabaseFile" correctly because the stack is saved in /home/charles/My Revolution Studio/
Surely I am making this harder than it should be!
rgds
Hi charlesg,
I downloaded the SQLite tutorial, which you can access from the Start Centre, by clicking on More Tutorials.
The stack I downloaded is called SQLite Sampler. On card 9, there are 3 buttons. One of the buttons is Connect to AppReg. I clicked this button --it was really all I did-- and the database file was created in the Revolution application folder.
Does this work for you?
Best,
Mark
I downloaded the SQLite tutorial, which you can access from the Start Centre, by clicking on More Tutorials.
The stack I downloaded is called SQLite Sampler. On card 9, there are 3 buttons. One of the buttons is Connect to AppReg. I clicked this button --it was really all I did-- and the database file was created in the Revolution application folder.
Does this work for you?
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
charlesg,
Can you post the script?
What does "as described" mean? If your problem is that it works while it isn't supposed to, then report that as a documentation bug.
Mark
Can you post the script?
What does "as described" mean? If your problem is that it works while it isn't supposed to, then report that as a documentation bug.
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Most people who answer here are very experienced, and only look at the tutorials when there's a specific question pertaining to them. Please give more details as to where exactly you found database.rev.
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Contact:
Re: I am not finding this easy!
I haven't looked at the example but I am going to venture to guess that the issue has to do with accessing the filename of the stack. If the stack happens to be a substack rather than a mainstack then the 'filename' property will return empty. If you use the 'effective filename' then the filename of the mainstack will be returned. Try this and see if it works:charlesg wrote:Looking at the code, it would appear that the program is not correctly interpreting the bit
"put item 1 to -2 of the filename of this stack into tSQLiteDatabaseFile" correctly because the stack is saved in /home/charles/My Revolution Studio/
Code: Select all
put item 1 to -2 of the effective filename of this stack into tSQLiteDatabaseFile
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder