Search found 980 matches

by trevordevore
Mon Apr 21, 2008 4:25 pm
Forum: Talking LiveCode
Topic: revExternalLibrary error
Replies: 19
Views: 6065

Ah, I figured that since the SQLite driver could not connect to the database that revExecuteSQL was being called with an invalid databaseID parameter which does cause an error in the IDE. Try this in a button script: on mouseUp pMouseBtnNo revexecuteSQL 300, "SELECT * FROM table" end mouseUp An erro...
by trevordevore
Mon Apr 21, 2008 4:06 pm
Forum: Talking LiveCode
Topic: revExternalLibrary error
Replies: 19
Views: 6065

The Query Builder just fails to connect and doesn't display any error dialogs. I'm not sure what kind of error trapping Rev is using under the hood however. The error that Andy posted doesn't make much sense in and of itself, especially since the same code appears to work for most users. Andy may ha...
by trevordevore
Mon Apr 21, 2008 3:19 pm
Forum: Talking LiveCode
Topic: revExternalLibrary error
Replies: 19
Views: 6065

Could it have anything to do with the special characters in the path name? I noticed in the path that Jose's has what looks like a "smart apostrophe". Perhaps the sqlite driver is choking on that? '/Users/joselozano/Jose's Applications/PDT.app/Contents/MacOS/PDT' I just did a quick test by creating ...
by trevordevore
Thu Apr 17, 2008 2:44 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Is there an easy way to get the current path?
Replies: 7
Views: 2074

Coming from another environment to Revolution can be frustrating at times. I decided to use Revolution for a project a number of years back when I had always used Director for that type of application before. Getting my head around the Revolution philosophy took a while but I do find it an incredibl...
by trevordevore
Thu Apr 17, 2008 4:11 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Is there an easy way to get the current path?
Replies: 7
Views: 2074

With a slight modification to the handler you posted you can get what you are after assuming the stack whose filename you use is used to build the executable or is in the same folder as the stack used to build the executable. You just need to check if the stack filename contains a reference to an OS...
by trevordevore
Wed Mar 12, 2008 6:41 am
Forum: CGIs and the Server
Topic: How to install missing libraries on RedHat linux?
Replies: 9
Views: 6406

I recently got Rev 2.9 running as a CGI on our Debian Linux server. I had to install libx11 and libext. I used the following commands: sudo apt-get install libxext6 sudo apt-get install libx11-6 My notes on the process are available at the following url. Perhaps they will help. http://revolution.scr...
by trevordevore
Thu Mar 06, 2008 3:01 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Checking an inputted field for numeric
Replies: 5
Views: 1284

Jan, I just tested pasteKey in a standalone with a menubar and the message is not sent to fields if your menubar has command/control + v assigned to Edit-Paste. If you don't have your own menubar then the pasteKey message is sent. I tested in 2.8 and 2.9 so it looks like pasteKey can't be relied upo...
by trevordevore
Tue Mar 04, 2008 2:50 am
Forum: Using Externals
Topic: PDF myDocRef
Replies: 2
Views: 3197

The text you supply to qrtPDF_WriteText can come from anywhere really. The text should be plain text and (not htmltext or rtftext) and should be in ISO 8859-1 encoding. If you need to format text take a look at the demo 2 script "Text boxes and areas example" which demonstrates calls to qrtPDF_SetFo...
by trevordevore
Thu Jan 24, 2008 8:15 pm
Forum: Databases
Topic: Option Menu with Database - view description but save id
Replies: 2
Views: 2430

When you read the data from the database table create two CR delimited lists. One for the color names and one for the color ids. Some psuedo code to illustrate: repeat for each record theRecord in the cursor put the colorName of theRecord & CR after theColors put the colorID of theRecord & CR after ...
by trevordevore
Thu Jan 24, 2008 8:07 pm
Forum: Talking LiveCode
Topic: mouseDoubleDown Problems
Replies: 14
Views: 5257

Since you mention that your mouseDown/mouseUp scripts are long and complex it may be possible that the scripts haven't finished running yet and that is interfering with the mouseDoubleUp message. I'm just guessing here as I don't know if that is possible. In any case, what if you tried something lik...
by trevordevore
Tue Dec 04, 2007 4:05 pm
Forum: Multimedia
Topic: control player object with mouse scroll wheel
Replies: 3
Views: 3554

Hi Martin, Try changing your code to this: on stepforward lock screen set the currenttime of me to (the currenttime of me) + round(the timescale of me / 4) unlock screen end stepforward on stepbackward lock screen set the currenttime of me to (the currenttime of me) - round(the timescale of me / 4) ...
by trevordevore
Wed Oct 31, 2007 2:45 pm
Forum: Building Externals
Topic: Passing arguments from revolution to c++ external
Replies: 4
Views: 5270

So I need to typecast them on the c++ side. Yes. I can only seem to access the first element of the passed array in c++, I'm not even sure if i'm passing a multi element array. from runrev: answer externalfunction("Hello World") --is this an array of chars? Actually this is an array of C-strings wh...
by trevordevore
Tue Oct 30, 2007 7:36 pm
Forum: Building Externals
Topic: Passing arguments from revolution to c++ external
Replies: 4
Views: 5270

The parameters you pass from Revolution to the function/command defined in the external will always be passed as an array of strings. At that point you can coerce the values as needed.
by trevordevore
Thu Oct 04, 2007 2:47 pm
Forum: Mac OS
Topic: Path to library
Replies: 1
Views: 2256

I don't know of a code that points directly to the Library but "asup" will point to the Application support folder in the root library "/Library/Application Support". I imagine you would want to store your data in this sub folder in any case so maybe that will work for you. To get the users app supp...
by trevordevore
Thu Sep 20, 2007 9:18 pm
Forum: Talking LiveCode
Topic: Questions You Were To Afraid To Ask!
Replies: 10
Views: 3637

I loaded your example stack on Windows XP (native) and 2000 (under Parallels) and it looked right to me. Here is a screenshot of your stack in Windows 2000 with the original image shown on top of it:

Image

What are you seeing?

Go to advanced search