Re: novice question re "marked" and customkeys

2011-03-31 Thread Timothy Miller
Bob's experience, quoted below, seems odd. I don't think this is normal LC behavior. Something has gone wrong, it seems. I might have missed a reply to Bob that explains it, but I didn't see one. Did you ever figure it out, Bob? on mouseUp push card set lockscreen to "true" set lockme

Re: novice question re "marked" and customkeys

2011-03-31 Thread Jim Ault
On Mar 31, 2011, at 4:57 PM, Peter Brigham MD wrote: Cycling through the cards by reference is fast ('set the hilite of btn "barked" of marked card n to false') -- always, always, always avoid things like "go card n" within a loop, since that takes lots of time. After the list of card i

Re: Live LiveCode Code Event #17

2011-03-31 Thread Thomas McGrath III
Darn, I'll be out of town Saturday. Unless we get this to work on the iPad. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On Mar 31, 2011, at 7:33 PM, Mark Schonewille wrote: > Dear LiveCode fans, > > I'm happy to announce another Live LiveCode Code Event with two interes

Re: Bark Dark

2011-03-31 Thread Jim Ault
On Mar 31, 2011, at 3:29 PM, Bob Sneidar wrote: I don't think the property thing will work because I don't think you can find a card with a property or enumerate them as such. (This AIN'T Applescript man!" The 'property thing' does not refer to the CARD properties, but the customProperties

Re: novice question re "marked" and customkeys

2011-03-31 Thread Peter Brigham MD
"mark cards where..." is very fast and very flexible. Using a (possibly hidden) checkbox button should be quite feasible even with lots of cards. To "unbark all" you can loop through all the cards and set the hilite of the button to false -- be sure not to *go* to the cards, just loop throu

Re: novice question re "marked" and customkeys

2011-03-31 Thread dunbarx
I think Tim wants many different and independent "marked" functions. The native marking system includes the abilities that are missing in using custom properties, say. But maybe a slight change in usage would work. Since "go next marked card" is something the engine understands and manages, wh

Live LiveCode Code Event #17

2011-03-31 Thread Mark Schonewille
Dear LiveCode fans, I'm happy to announce another Live LiveCode Code Event with two interesting presentations. This weekend's event is scheduled for Saturday, 2 April 2011 at 19:00h GMT (Sat. 22:00 in Moscow, Sat. 20:00 in Paris, Sat. 14:00 in New York, Sat. 11:00 in Los Angeles, Sun. 04:00 in

Re: novice question re "marked" and customkeys

2011-03-31 Thread Pete
I think Mike's solution is the best. I didn't know you could mark cards in the way he suggested - doesn't seem much point in rolling your own when LC can do it for you. I guess the performance thing could be an issue if you can't use a custom property and there's a large number of cards. Pete On

Re: mileage -- re tax time

2011-03-31 Thread RevList
How to use LiveCode on March 31, 2011 at 10:13 AM -0700 wrote: >Feel free to use it as the basis for something. I haven't tried to >delve into the iPhone/iPad/mobile platform, as I have my hands full >with my full-time job and LC desktop. If someone wants to take this >and run with it on mo

Bark Dark

2011-03-31 Thread Bob Sneidar
Well I put together a simple stack demonstrating a shared field with 2 lines, one for "barked" one for "darked" and some buttons to "dark" a card or "bark" a card and then find cards with those in that field. There are also buttons to "unbark", "undark", "Silence all" and "blind all". (Cute huh?

Just noticed

2011-03-31 Thread Mike Bonner
When i paste code into the script editor it doesn't set the dirty bit. Has it always been this way and I've just never noticed it before? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manag

Re: novice question re "marked" and customkeys

2011-03-31 Thread Bob Sneidar
Never mind I can use the number of this card. Apparently the ID returns the ID of the first card the group was placed on. The number returns the actual number of the card being shown!! As an aside, the name also returns the name of the first card of the group. May I say that this behavior is r

Re: novice question re "marked" and customkeys

2011-03-31 Thread Timothy Miller
A big thankya goes out to Peter, Mike, Bob and Peter. Good ideas all. Tim On Mar 31, 2011, at 10:49 AM, Peter Brigham MD wrote: > I suspect that using a customproperty of the card would be faster for large > numbers of cards. Accessing the contents of a field is slow, relative to > pulling cu

Re: novice question re "marked" and customkeys

2011-03-31 Thread Bob Sneidar
Aye, but of course if you have that many cards you should probably be doing this through SQL. Bob On Mar 31, 2011, at 10:49 AM, Peter Brigham MD wrote: > I suspect that using a customproperty of the card would be faster for large > numbers of cards. Accessing the contents of a field is slow,

Re: novice question re "marked" and customkeys

2011-03-31 Thread Bob Sneidar
Okay I was going to make a demo stack of how to do this, but I have run across a problem someone was talking about earlier and I didn't get it then but I sure do now! In a button as part of a background group on a card I have: On mouseUp put the id of this card into theFirstCard go next

Re: novice question re "marked" and customkeys

2011-03-31 Thread Peter Brigham MD
I suspect that using a customproperty of the card would be faster for large numbers of cards. Accessing the contents of a field is slow, relative to pulling customprops. But it probably doesn't matter unless you have >1000 cards. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comca

Re: novice question re "marked" and customkeys

2011-03-31 Thread Mike Bonner
You could come at this from a different direction. Since you can mark conditionally, you can set a property (or global, or have a hidden checkbox, or whatever) and then change your marks on the fly based on that. IE, if you have a "darked" hidden checkbox on your cards and need to loop through you

Re: novice question re "marked" and customkeys

2011-03-31 Thread Peter Haworth
One possibility would be to maintain a list of the "barked" cards somewhere, maybe in a custom property of your main stack. You could do that with a setProp handler for "barked" that added the card ID to the master list if the property was set to true and removed it if it was set to false (assu

Re: novice question re "marked" and customkeys

2011-03-31 Thread Bob Sneidar
I think you are right Mark. A hidden field with the word "barked" or "darked" in it and some use of the find command would serve you better. Undarking all cards though would definitely require a repeat loop or a recursive call, with Exit to top when you cannot find any more. Bob On Mar 31, 2

novice question re "marked" and customkeys

2011-03-31 Thread Timothy Miller
Hey dudes, The "marked" property is so easy to use. "go next marked" and "unmark all cards" are so fast and foolproof! Very handy. I'm wondering if I can somehow define my own versions of "marked" E.g., in a hypothetical stack, the "marked" of cards 3, 10, 22 and 99 is "true" I somehow define

Re: mileage -- re tax time

2011-03-31 Thread Peter Brigham MD
On Mar 31, 2011, at 12:12 PM, Bob Sneidar wrote: Now THAT would make a GREAT iPhone app! Feel free to use it as the basis for something. I haven't tried to delve into the iPhone/iPad/mobile platform, as I have my hands full with my full-time job and LC desktop. If someone wants to take thi

Re: Accessing customised columns in a datagrid

2011-03-31 Thread Peter Haworth
Yes, that's what I was trying to say - the last column does extend to the far right of the datagrid so that would explain it. Now I just have to figure out how to detect that situation and deal with it. Pete Haworth On Mar 31, 2011, at 6:10 AM, Trevor DeVore wrote: > On Thu, Mar 31, 2011 at 1

Re: mileage -- re tax time

2011-03-31 Thread Bob Sneidar
Now THAT would make a GREAT iPhone app! Bob On Mar 31, 2011, at 5:25 AM, Peter Brigham MD wrote: > A little utility I put together that I use for totaling deductible milage for > tax purposes. Enter a "from" address and a "to" address, click a button to > fetch the mileage for that trip (uses

Re: lines of UFT16 text are broken?

2011-03-31 Thread Kee Nethery
The solution to having line breaks work when using UTF16 text is to not do that, it doesn't work. I tried several characters that contain a byte that could look like a return and ... when the text is UTF16 that byte of a normally legit unicode character, is treated as a return. My favorite test

Re: mileage -- re tax time

2011-03-31 Thread RevList
How to use LiveCode on March 31, 2011 at 5:25 AM -0700 wrote: >A little utility I put together that I use for totaling deductible >milage for tax purposes. Enter a "from" address and a "to" address, >click a button to fetch the mileage for that trip (uses Google Maps >and parses the HTML),

Re: Standalone Application Security

2011-03-31 Thread Warren Kuhl
Richard, Thank you very much for the explanation! This really puts my mind at ease. I will make sure to password protect my application. Since I am not storing nuclear secrets...I will just to my best to encrypt as you have outlined below. Appreciate your response, Warren On Thu, Mar 31, 2011

Re: Standalone Application Security

2011-03-31 Thread Richard Gaskin
Warren Kuhl wrote: I have a application that I am rolling out shortly. The stack includes a key to access an excrpyted Valentina DB. From what I read with other posts on the list, RunRev applications are not that hard to decrypt? If this is the case, what are the best pays to protect myself fr

Re: mileage -- re tax time

2011-03-31 Thread Keith Clarke
...in the UK you can claim cycled mileage against tax of GBP0.20 per mile. However, I don't think I'll be adding a 'means of transport' menu item just yet, as in the seven years that I've been running my own company, my total cycling mileage claim is... now, how many, err, hang on, let's see, ah

Re: mileage -- re tax time

2011-03-31 Thread Klaus on-rev
Hi Peter, Am 31.03.2011 um 15:36 schrieb Peter Brigham MD: > On Mar 31, 2011, at 8:52 AM, Klaus on-rev wrote: >> Hi Peter, >>> A little utility I put together that I use for totaling deductible milage >>> for tax purposes. Enter a "from" address and a "to" address, click a button >>> to fetch t

Re: mileage -- re tax time

2011-03-31 Thread Peter Brigham MD
On Mar 31, 2011, at 8:52 AM, Klaus on-rev wrote: Hi Peter, A little utility I put together that I use for totaling deductible milage for tax purposes. Enter a "from" address and a "to" address, click a button to fetch the mileage for that trip (uses Google Maps and parses the HTML), click

Re: mileage -- re tax time

2011-03-31 Thread Peter Brigham MD
On Mar 31, 2011, at 8:47 AM, dunb...@aol.com wrote: Hi. Couldn't access the page. I am not authorized. You probably caught a 45 second window when I was uploading a minor change to the file. Try again. Craig Newman A little utility I put together that I use for totaling deductible mi

Re: Accessing customised columns in a datagrid

2011-03-31 Thread Trevor DeVore
On Thu, Mar 31, 2011 at 1:53 AM, Peter Haworth wrote: > I think I figured this out. I only need to add the +5 if the column > containing the checkbox is the last column in the datagrid - anywhere else > and the +5 pushes it too far to the right. I'm guessing this has something > to do with the v

Standalone Application Security

2011-03-31 Thread Warren Kuhl
I have a application that I am rolling out shortly. The stack includes a key to access an excrpyted Valentina DB. From what I read with other posts on the list, RunRev applications are not that hard to decrypt? If this is the case, what are the best pays to protect myself from having someone to

Re: mileage -- re tax time

2011-03-31 Thread Klaus on-rev
Hi Peter, > A little utility I put together that I use for totaling deductible milage for > tax purposes. Enter a "from" address and a "to" address, click a button to > fetch the mileage for that trip (uses Google Maps and parses the HTML), click > another button and add the trip to a cumulativ

Re: mileage -- re tax time

2011-03-31 Thread dunbarx
Hi. Couldn't access the page. I am not authorized. Craig Newman > A little utility I put together that I use for totaling deductible milage for tax purposes. Enter a "from" address and a "to" address, click a button to fetch the mileage for that trip (uses Google Maps and parses the HTML)

Re: mileage -- re tax time

2011-03-31 Thread Randy Hengst
Peter, That's very handy…. thanks for sharing. take care, randy hengst - On Mar 31, 2011, at 7:25 AM, Peter Brigham MD wrote: > A little utility I put together that I use for totaling deductible milage for > tax purposes. Enter a "from" address and a "to" address, click a button to > fetch

mileage -- re tax time

2011-03-31 Thread Peter Brigham MD
A little utility I put together that I use for totaling deductible milage for tax purposes. Enter a "from" address and a "to" address, click a button to fetch the mileage for that trip (uses Google Maps and parses the HTML), click another button and add the trip to a cumulative list of trip