SQLITE Query Successful command line faile RR

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Post by trevordevore » Sat Oct 31, 2009 2:00 pm

Hi Kevin,

I can't tell from your last response if you were just posting what you got working or not. I just wanted to confirm that your original code works fine (Rev works with SQLite databases in memory) if you include the database id when calling revDataFromQuery:

Code: Select all

on mouseUp pMouseBtnNo
    put revOpenDatabase("sqlite",,,,,,,) into _db 
    put revDataFromQuery(comma,return,_db,"SELECT datetime('now');") into _now
    revCloseDatabase _db 
    answer _now
end mouseUp
Placing the following code in a button in Rev 3.5 enterprise will display "2009-10-31 12:59:43" in an answer dialog.
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

Post Reply