Search found 882 matches

by trevordevore
Thu Jan 24, 2008 8:15 pm
Forum: Databases
Topic: Option Menu with Database - view description but save id
Replies: 2
Views: 2116

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: 4042

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: Rich Media
Topic: control player object with mouse scroll wheel
Replies: 3
Views: 3090

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/Plugins
Topic: Passing arguments from revolution to c++ external
Replies: 4
Views: 4790

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/Plugins
Topic: Passing arguments from revolution to c++ external
Replies: 4
Views: 4790

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: 1972

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: 2923

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?
by trevordevore
Thu Sep 20, 2007 2:13 pm
Forum: Talking LiveCode
Topic: Questions You Were To Afraid To Ask!
Replies: 10
Views: 2923

I just did the following test: 1) Created a new stack. 2) Imported a PNG image (291 x 75) 3) Set the backgroundPattern to the id of the image. The image tiled nicely across the entire stack background. This is in version 2.8.1 of Revolution. I believe that version prior to 2.7 had limits on the size...
by trevordevore
Fri Sep 14, 2007 5:45 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Getting only the immediate child groups of a group
Replies: 1
Views: 1018

Unfortunately there is no way of getting direct Group children. This is very unfortunate as interrogating groups for immediate children becomes very slow as the number of controls grows.
by trevordevore
Mon Sep 10, 2007 1:47 pm
Forum: Converting to LiveCode
Topic: applying images to polygons
Replies: 1
Views: 3017

Perhaps this blog post will be helpful:

http://www.revdeveloper.com/include/blog/mark/?p=4
by trevordevore
Tue Aug 01, 2006 2:51 pm
Forum: Databases
Topic: mySQL connection to a port
Replies: 5
Views: 3518

Yes, the bug was filed just the other day. As for SSL, you use either 1 or 0.
by trevordevore
Wed Jul 26, 2006 5:31 pm
Forum: Databases
Topic: mySQL connection to a port
Replies: 5
Views: 3518

Kris,

revOpenDatabase is documented incorrectly. The correct syntax is:

Code: Select all

revOpenDatabase(type, host, name, username, password, port, useSSL)
What you want is this:

Code: Select all

put revOpenDataBase("MySQL","localhost","testdb","user","password","8889") into tConnectionID 

Go to advanced search