Search found 2733 matches

by SparkOut
Mon Jul 28, 2008 10:55 am
Forum: Databases
Topic: revOpenDatabase and revCloseDatabase
Replies: 3
Views: 4626

The error report says that you have an invalid database id. That makes me wonder whether you have not got a value in your dataConnectionID because it is a local variable to your disconnection handler. If you declare dataConnectionID as a global variable, (or as a script local variable where the two ...
by SparkOut
Mon Jul 28, 2008 10:42 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: tabbing from a combo box to another field
Replies: 3
Views: 2909

I don't get it. Hitting tab in a Combo box moves to the next field for me (Rev Studio 2.9 on Windows XP).
Could it be anything to do with the "autoTab" property being set to false?
by SparkOut
Sun Jul 27, 2008 10:44 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Functions ARGH! Help with this simple SUM script pls?
Replies: 3
Views: 3265

I started playing with a test stack, and in the meantime you have already got some answers, but I typed a reply anyway, so I'll paste it below, as there may be some other areas you want to examine (eg closeField) Hi heatherbee (so far as I know) keyDown or rawKeydown may or may not be the appropriat...
by SparkOut
Tue Jul 22, 2008 8:49 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: basic draw line graphic
Replies: 10
Views: 14023

Actually I taught myself something too:

the lineSize property is used to control the thickness of the line, rather than border
by SparkOut
Mon Jul 21, 2008 11:03 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: basic draw line graphic
Replies: 10
Views: 14023

Glad to help. If there's a more comprehensive tutorial I find I'll post info, but examining the options you can set in the Properties Inspector for a graphic will give you a good idea. Have a look in the docs for points and relativePoints too.
by SparkOut
Mon Jul 21, 2008 10:27 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: basic draw line graphic
Replies: 10
Views: 14023

Re: basic draw line graphic

local tPointsList --this will hold the list of coordinates, one per line put "10,10" into tPointsList --the first coordinate put cr & "100,100" after tPointsList --the next coordinate create invisible graphic "myNewLine" --optionally invisible, but allows you to manipulate the properties before sho...
by SparkOut
Sat Jul 19, 2008 11:36 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Date epoch problem
Replies: 4
Views: 6972

I should also mention I'm using Windows (XP). Rereading the documentation for the "convert" command I notice Note: The range of dates that the convertcommand can handle is limited by the operating system's date routines. In particular, Windows systems are limited to dates after 1/1/1970. Although I'...
by SparkOut
Sat Jul 19, 2008 11:29 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Date epoch problem
Replies: 4
Views: 6972

There's definitely something problematic with the epoch cutoff pre 1970. local tDate set the useSystemDate to true put "01/01/1970" into tDate convert tDate to dateItems if tDate is a date then answer tDate && "is a valid date" -- this is valid subtract 1 from item 1 of tDate convert tDate to short ...
by SparkOut
Sat Jul 19, 2008 11:17 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Date epoch problem
Replies: 4
Views: 6972

Thanks Mark I already looked at the centuryCutoff but I couldn't see how that could apply here. The docs quote centuryCutoff as Value: The centuryCutoff is a two-digit number. By default, the centuryCutoff is set to 35. Comments: The centuryCutoff specifies the two-digit year that ends the century. ...
by SparkOut
Fri Jul 18, 2008 4:45 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Date epoch problem
Replies: 4
Views: 6972

Date epoch problem

I searched for info in the documents, guide and here, but I can't see anything that points me right so please direct me to the proper place if necessary. I have made a date entry checker function, to make it quicker than a calendar popup and less tedious than entering a whole date. (It will only be ...
by SparkOut
Tue Jul 15, 2008 11:39 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Event: "New file in folder"
Replies: 5
Views: 5820

At least on Windows, you could try calling "handle.exe" http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx and parsing the info returned. There's an Expert's Exchange article on using vbscript to do this, which you could fire off from Rev if necessary http://www.experts-exchange.com/Progr...
by SparkOut
Wed Jul 09, 2008 11:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mouseover rollover effects
Replies: 10
Views: 11248

Yep:

Code: Select all

set the layer of image "imagename" to top
or bottom, or "layer number", as appropriate
by SparkOut
Fri Jul 04, 2008 9:42 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Concurrency, or parallel processing or background tasks
Replies: 3
Views: 5076

I don't know if this is an optimal or even efficient way, but I tested like this: Made a plain card with two buttons (Inject and Dump) and one field called "fldAcceleratorStuff" Inject button script global gValue, gStopFlag on mouseUp global gValue, gStopFlag put false into gStopFlag put 0 into gVal...
by SparkOut
Thu Jul 03, 2008 1:47 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Can any object do this...
Replies: 8
Views: 9127

Glad it helped. There is one caveat though - which is that if after entering a new item in the combo-box, the user clicks a button which does not have the traversalOn property set (ie the "Focus with keyboard" box is not checked, so that a user can click it with the mouse, but tabbing via the keyboa...
by SparkOut
Thu Jul 03, 2008 10:40 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Can any object do this...
Replies: 8
Views: 9127

Re: Can any object do this...

Had some fun with comboBox. Only one item can be typed in direct. Any further items have to be put in programmatically. When the "second" item is put in the first disappears. So they all have to be put in by program which means that I have to test before adding the "cr" else there's a blank first e...

Go to advanced search