Re: How to create a hyperlink within a text field?

2016-02-03 Thread Peter Brigham
A third alternative: split off the chapter title list into another field -- a list field -- and then you can just do a simple find in your text field when the user clicks in the chapter list field. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Wed, Feb 3, 2016 at

Re: How to create a hyperlink within a text field?

2016-02-03 Thread Peter Brigham
Two ways to do it. The first and simplest is to lock the screen and do 2 finds in succession, as you suggested. The second is to get the lineoffsets of the link text and scroll to the second occurrence of it. Once you find the line offset of the actual chapter heading, use "the formattedheight of l

Re: Probably a pointless question about using sort to search..

2015-12-10 Thread Peter Brigham
Someone on this list at some point posted an array sorting function that might be relevant here for some applications. See below. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig "Why is the alphabet in that order? Is it because of that song?" -- Steven

Re: list field not getting arrowkey msg

2015-07-20 Thread Peter Brigham
Unfortunately, I still get nothing with "the hilitedlines of me" in the field script. The arrowkey message is not going to the field. Here's the arrowkey handler in the card script. This works fine but I don't know why it should be necessary. on arrowkey what put hilitedline of fld "notesList"

Re: Insertion point problems

2015-06-24 Thread Peter Brigham
The difference may be that in Bernd's case the traversalon of the button is false, whereas in David's case the traversalon of the button is true, which will void the current selection in the field on mousedown. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Tue, J

Re: Insertion point problems

2015-06-24 Thread Peter Brigham
What I do for this is store the selectedchunk in a customprop or a script local on mouseEnter in the button script that will be doing the pasting. That way if the mousedown removes the current selection you already have the info you need. BTW, if you set the traversalon to false for the button, the

Re: Cyclomatic complexity

2015-06-08 Thread Peter Brigham
"Despite my inclinations, however, my accountant reminds me I'm not getting any younger, and that I need to remain mindful of little things down the road like retirement." Retirement? Oh yeah, seems to me I've heard of that. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmb

Re: Forcing 'paste' to paste plain text

2015-05-06 Thread Peter Brigham
Try this: put the clipboarddata["text"] into the selection -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Wed, May 6, 2015 at 12:00 PM, Graham Samuel wrote: > I want to make sure that any text pasted by my ‘paste’ menu gets pasted as > plain (unstyled) text

Re: Something like charIndex, but in a variable...

2015-04-30 Thread Peter Brigham
Here's a function I use all the time, which may come in handy: function offsets str, pContainer -- returns a comma-delimited list of all the offsets of str in pContainer -- returns 0 if not found -- note: offsets("xx","xx") returns "1,3,5" not "1,2,3,4,5" -- ie, overlapping of

Re: Power Status (was Re: Because LC can't do two things at once.)

2015-03-05 Thread Peter Brigham
So the Unix case should be: if there is a file "/sys/class/power_supply/BAT0/" then put url "/sys/class/power_supply/BAT0/" into tStatus else if is a file "/sys/class/power_supply/BAT1/" then put url "/sys/class/power_supply/BAT1/" into tStatus el

Re: Power Status (was Re: Because LC can't do two things at once.)

2015-03-02 Thread Peter Brigham
What gets returned in get URL "/proc/acpi/battery/BAT1/state" on Unix? If you give me a sample to work with I will finish the handler and post it. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Mon, Mar 2, 2015 at 11:15 AM, Richard Gaskin wrote: > Michael Dou

Re: 7.0.1-RC1 selectively not obeying "open card in script?

2014-11-07 Thread Peter Brigham
On Nov 6, 2014, at 4:58 PM, Peter Haworth wrote: > I spent an hour yesterday trying to track down a bug that turned out to be > caused by a misspelled variable name. I don't use explicit variables, so I avoid misspelling variable names by using Jaques' scriptPaint handler. Put this into a univer

Fwd: Shared Doc

2014-11-05 Thread Peter Brigham
stated that their “abuse team is working to prevent this kind of spoofing from happening again.” - I have changed my google password. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig -- Forwarded message -- From: Peter Brigham Date: Wed, Nov 5, 201

Re: scrollbars for a stack?

2014-11-05 Thread Peter Brigham
Here's one solution, no scrollbars but allows scrolling using the scrollwheel or two-finger touchpad scrolling if available. Put the following into the card script of your stack (or the stack script if more than one card): on rawkeydown what put the top of stack "myStack" into t if what = 6530

Re: Shared Doc

2014-11-05 Thread Peter Brigham
It surely is malware -- a number of people in my address book have gotten this message. I am very sorry for the annoyance. This is the very first time in 20 years on the Mac I've had a problem with my machine getting hijacked. It looks as if this originates from google Docs, which I have never used

Shared Doc

2014-11-03 Thread Peter Brigham
Hi, I've shared an item with you. Gmail Signups Click Here for slideshows(2) Gmail sheets: create and edit spreadsheets online. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Shared Doc

2014-11-03 Thread Peter Brigham
Hi, I've shared an item with you. Gmail Signups Click Here for slideshows(2) Gmail sheets: create and edit spreadsheets online. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Re: Tools Bar In The Way

2014-10-20 Thread Peter Brigham
in the messagebox: set the topleft of stack "revApplicationOverview" to 150,150 -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Mon, Oct 20, 2014 at 3:30 AM, Brahmanathaswami wrote: > Back into some stack work again after doing server side scripting (in lc) > fo

Re: the effective me?

2014-08-07 Thread Peter Brigham
I'm already using it, since it will be done at some point and then it works in the past too. I will have downloaded it some time ago. The future me will have, that is. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Wed, Aug 6, 2014 at 10:55 PM, J. Landman Gay wr

Re: popUp a button with itself on modified mouseDown?

2014-07-02 Thread Peter Brigham
I'm late to this discussion but here's what I do. It's a modular solution, and I use it a lot. It's great for contextual menus for right-clicking in a field (customize the button contents depending on context) and I've often used it for just what you are doing, to offer a popup list on right-clicki

Re: New chunks

2014-03-13 Thread Peter Brigham
On Wed, Mar 12, 2014 at 9:32 PM, Paul Dupuis wrote: > Can someone probably construct some sequence of characters that could be > called a sentence that might get mis-parsed? Possibly - I am familiar > with the library RunRev is using only by reputation, so I can't say for > sure. However for most

Re: [OT] Flash is NOT Dead

2011-08-02 Thread Peter Brigham MD
On Aug 2, 2011, at 12:12 PM, Lynn Fredricks wrote: >> It would appear Flash is dead or certainly critically ill. >> Happened much quicker than even I expected. >> >> http://www.telecomtv.com/comspace_newsDetail.aspx?n=47914&id=e >> 9381817-0593-417a-8639-c4c53e2a2a10 >> >> And all those people

Re: How do I remove part of a path?

2011-08-01 Thread Peter Brigham MD
When you replace item 4 of tStr with empty, you don't delete the item itself, you just make the item empty: put "a/b/c/d/e/f" into k set itemdel to "/" put "" into item 4 of k put k -> a/b/c//e/f What you need to do is delete the item itself: put "a/b/c/d/e/f" into k set itemdel to "/" delet

Re: Getting someone's age from dob and current year

2011-07-31 Thread Peter Brigham MD
On Jul 31, 2011, at 12:03 AM, Warren Samples wrote: > On Saturday, July 30, 2011 07:16:44 PM Roger Eller wrote: >> convert tToday to seconds >> convert tBorn to seconds > > > It's been talked about before, but this calls for a reminder: attempting to > convert a date prior to Jan 1, > 1970 t

Re: User Interface Question

2011-07-31 Thread Peter Brigham MD
And it's much better not to lock the cursor and then change it. Locked cursors have a way of sticking if the handler to unlock the cursor somehow misses. instead, don't lock anything, just set the defaultcursor to hand, then set it to empty when done. I usually have this in my stack script: on

Re: Where does survive the inventive user ?

2011-07-30 Thread Peter Brigham MD
On Jul 30, 2011, at 10:42 AM, Richard Gaskin wrote: > Kay C Lan wrote: > >> I look in my wallet an there are a couple of notes and a couple of plastic >> cards. The notes represent about 0.01% of iMoney I have in my account. I can >> use those plastic cards to access the BankCloud and if the stra

Re: Where does survive the inventive user ?

2011-07-27 Thread Peter Brigham MD
Just to let you know that you're not alone -- I'm a similar LC user, started with HC (actually bought and read through Danny Goodman's book even before I bought my first Mac), developed a set of stacks to manage my clinical notes, incorporated more and more features, moved it over to LC a number

Re: Setting a dirty flag for a file

2011-07-21 Thread Peter Brigham MD
On Jul 21, 2011, at 4:02 PM, Mark Schonewille wrote: > Hi Charles, > > I read your e-mail again. I understand that you want to know whether one or > more fields have changed, not whether a file is open. > > Usually, I generate an md5Digest and save that: > > on closeField > makeDigest > end

Re: AW: security code number generation

2011-07-18 Thread Peter Brigham MD
> component to make it a snap to work with. >>> >>> http://www.runrev.com/store/product/zygodact-1-0-4/ >>> >>> >>> Ken Ray >>> Sons of Thunder Software, Inc. >>> Email: k...@sonsothunder.com >>> Web Site: http://www.sonsothunder.

Re: defining and using globals in an application

2011-07-12 Thread Peter Brigham MD
I've been telling my bosses I could use arrays -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Jul 12, 2011, at 1:30 PM, Bob Sneidar wrote: > Hey now! Those aren't arrays!! > > Bob > > > On Jul 9, 2011, at 3:05 AM, Francis Nugent Dixon wrote: > >> Of cours

Re: Mac OS X missing controls in the LiveCode IDE

2011-07-12 Thread Peter Brigham MD
At the risk of embarrassing Stephen, here is a link to his older life in music: http://www.allmusic.com/artist/stephen-barncard-p54338/credits -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Jul 12, 2011, at 1:07 PM, stephen barncard wrote: > it's true. I'm almos

Re: Rev Customer Databased Hacked?

2011-07-12 Thread Peter Brigham MD
On Jul 11, 2011, at 5:12 PM, Andre Garzia wrote: > On Mon, Jul 11, 2011 at 5:37 PM, Pierre Sahores wrote: > >> I changed all mine, even if they went in theory full safe. It's realy best >> for all of us to verify that our passwords are at least trusted as 100% safe >> by the cPanel AJAX tester.

Re: text formatting

2011-07-10 Thread Peter Brigham MD
You can create the htmltext by hand as suggested, or you can do something like the following (not tested): --

Re: Using linkText

2011-07-08 Thread Peter Brigham MD
On Jul 7, 2011, at 6:17 PM, Ken Ray wrote: > > On Jul 7, 2011, at 4:14 PM, Pete wrote: > >> Thanks, hadn't noticed that. But it just seems to make the text a link or >> not, no way to specify what the link should be. >> >> Maybe I'm misunderstanding the purpose of linkText. What I want to do

Re: autoHilite and focus (following Jacque's solution)

2011-07-06 Thread Peter Brigham MD
On Jul 6, 2011, at 12:52 PM, J. Landman Gay wrote: > On 7/6/11 2:06 AM, Slava Paperno wrote: >> But then I added other buttons to the same card, and found that if any of >> them has AutoHilite set to true, my focus command is undone, and the focus >> moves to the card itself as soon as the mouseUp

Re: select after the selectedText

2011-07-06 Thread Peter Brigham MD
On Jul 6, 2011, at 3:47 AM, Richmond Mathewson wrote: > On 07/06/2011 10:38 AM, Mark Wieder wrote: >> Richmond- >> >> Wednesday, July 6, 2011, 12:19:41 AM, you wrote: >> >>> I have just tried this: >>> on mouseUp >>> set the useUnicode to true >>> set the unicodeText of the selectedText

Re: [OT] what RGB is blue?

2011-07-02 Thread Peter Brigham MD
I posted a stack to RevOnline demonstrating one of the illusions from the boingboing page. See "optical illusion" -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Jul 1, 2011, at 4:24 PM, Bob Sneidar wrote: > Well that is the point I was making, but when I see how

Re: System Date/Time Format Problems

2011-07-02 Thread Peter Brigham MD
There may be a better way, but you might have to use a shell call. Execute the following in the message box: put shell("man date | col -b") and look at the options. You can get any format you want, and this way you would have full control over date display format in LC. -- Peter Peter M. B

Re: [OT] Amiga OS in 2011

2011-06-29 Thread Peter Brigham MD
I have a sundial in my back yard. Sure, it's not quite as convenient as a watch, but it don't need no stinkin' batteries -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Jun 29, 2011, at 1:03 AM, Nonsanity wrote: > Oh yeah? Well... well... MY wristwatch is a P

Re: [OT] Text analysis and author, anyone done it?

2011-06-25 Thread Peter Brigham MD
On Jun 24, 2011, at 11:46 PM, Peter Alcibiades wrote: > It can be done statistically. Various methods have been proposed and used. > One general kind of measure is the probability of another word coming, as a > function of the past n words. Another is to measure the length of gap > between occur

Re: [OT] Text analysis and author, anyone done it?

2011-06-25 Thread Peter Brigham MD
On Jun 25, 2011, at 3:48 AM, Peter Alcibiades wrote: > Well just in case anyone ever does need to do it, here are two places to get > started. One is NLTK - the free Natural Language Toolkit and its associated > free online book Natural Language Processing with Python. Which appears to > double

Re: horizontal and vertical scrolling

2011-06-16 Thread Peter Brigham MD
lous to just blindly assume that >>> they'd have hands! ;-) >>> Best, >>> Keith.. >>> >>> On 16 Jun 2011, at 19:03, Peter Brigham MD wrote: >>> >>>> But when we finally make contact with another intelligent speci

Re: horizontal and vertical scrolling

2011-06-16 Thread Peter Brigham MD
But when we finally make contact with another intelligent species, will we discover that all their cards are right-handed? (It goes with out saying that such a species will necessarily be using LiveCode.) If so, then importing any of their cards might result in the stack disappearing in a flash

Re: How to structure HTML text (tags and attributes) for processing in LiveCode?

2011-06-12 Thread Peter Brigham MD
On Jun 12, 2011, at 5:24 PM, Jim Ault wrote: > On Jun 12, 2011, at 1:15 PM, Keith Clarke wrote: >> I am a LiveCode novice (<1 year, so still a Rookie!). So, part of the >> challenge with LiveCode (and indeed, software development in general for me) >> is understanding the art of the possible. >

Re: [OT] Apple at it again

2011-06-09 Thread Peter Brigham MD
> > > On Jun 9, 2011, at 3:04 PM, Peter Brigham MD wrote: > >> On Jun 9, 2011, at 1:34 PM, Bob Sneidar wrote: >> >>> I never listen to what people say. I only listen to what they mean. ;-) >>> >>> Bob >> >> Now, what exactly

Re: [OT] Apple at it again

2011-06-09 Thread Peter Brigham MD
On Jun 9, 2011, at 2:44 PM, Richmond Mathewson wrote: > Hey; and if I land the role, I promise NOT to wear my leopard-skin posing > briefs . . . > > . . . whoops, wait a minute . . . Leopard is out . . . I meant to say > "lion-skin posing briefs" . . . :) Better not... as we have been hearin

Re: [OT] Apple at it again

2011-06-09 Thread Peter Brigham MD
On Jun 9, 2011, at 1:34 PM, Bob Sneidar wrote: > I never listen to what people say. I only listen to what they mean. ;-) > > Bob Now, what exactly do you mean by that? (I speak as a psychiatrist...) -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig

Re: What's the syntax to check if a local folder exists?

2011-06-07 Thread Peter Brigham MD
Sure -- what you get instead of true or false is "damn right there ain't no damn folder!" or "of course the damn folder exists, stupid!" -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Jun 7, 2011, at 12:06 PM, Bob Sneidar wrote: > will it support double negative

Re: How do you build the tabs like in the script editor

2011-06-06 Thread Peter Brigham MD
On Jun 6, 2011, at 6:49 PM, Jim Ault wrote: > It is like clicking the same radio button in a group. > If the user makes the same choice in a menu, since there is no change, should > the menupick report it? If a tree falls in the forest and nobody is there to hear it, does it make a sound? Or,

Re: Happy International Geek Pride Day!!!

2011-05-25 Thread Peter Brigham MD
"You know you're a geek when you see a movie trailer and you think, 'I have that typeface.'" -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On May 25, 2011, at 11:52 AM, Jonathan Lynch wrote: > Hi everyone, > > I just wanted to wish any of the folks on this list

Re: [OT] MacDefender

2011-05-21 Thread Peter Brigham MD
On May 21, 2011, at 4:13 AM, Martin Baxter wrote: > On 19/05/2011 19:50, Richmond Mathewson wrote: >> >> My father (78-9) touched the 'update' thing on Ubuntu and fairly >> effectively hosed his >> laptop; now into week 4 of a trans-Europe (England-Bulgaria) e-mail >> attempt to "unhose" >> thing

Re: Livecode Crashes with Image Source Set to a URL

2011-05-20 Thread Peter Brigham MD
On May 19, 2011, at 7:10 PM, Ray Horsley wrote: > Chris, > > Definitely a cool thing - DropBox. Here's the link: > > http://dl.dropbox.com/u/29743466/Test.LiveCode > > I'll also put the same stack on my own server just in case at: > > http://www.linkit.com/zAccess/Test.zip > > Please take a

Re: CustomProperties

2011-05-06 Thread Peter Brigham MD
On May 5, 2011, at 8:37 PM, dunb...@aol.com wrote: > You can. You can even set a custom property to an entire stack. > > > I use these all the time, they are incredibly powerful and convenient. > > > But I do not understand what it means to set a property to an object, as > opposed to a chunk

Re: Staying on a field

2011-05-06 Thread Peter Brigham MD
On May 3, 2011, at 9:14 PM, Bill Vlahos wrote: > I do a validity check on a field to see if the user entered a valid date. If > the user entered a valid date and presses TAB or RETURN the focus moves on to > the next field. However, if the user enters an invalid date I want to keep > the focus

Re: Find restricted to the current card?

2011-05-01 Thread Peter Brigham MD
On May 1, 2011, at 11:50 AM, James Hurley wrote: > I have a field with the script: > > on mouseUP > put the value of the clickline into tText > set itemdel to tab > put item 1 of tText into tText > find string tText in field "thetext" > end mouseUP > > > When I click on a line in the f

Re: FORMalizer -- form printing utility

2011-04-30 Thread Peter Brigham MD
On Apr 30, 2011, at 9:37 AM, william humphrey wrote: > Formalizer is very nice. I too have to do that all the time and your layout > is an improvement. The only steps still remaining are the conversion of the > PDF to a jpg or png. That is a time-consuming process in Photoshop. All the > forms ten

Re: comparing content of two fields

2011-04-28 Thread Peter Brigham MD
On Apr 27, 2011, at 11:55 PM, Ronald Zellner wrote: > I have two data fields that have multiple tabbed columns, > I want to determine which items in the main field (1247 lines) also appear > in the second field (436 lines). > > Using this code to compare line by line: > > on mouseUp > > se

FORMalizer -- form printing utility

2011-04-26 Thread Peter Brigham MD
As I just used this utility stack of mine again recently and was reminded of how much it streamlines a particular task, I thought I'd make it available to anyone who would like to use it. In this age of electronic everything, there are still situations when you have to fill out a paper form for

Re: Popup menu & menuhistory

2011-04-22 Thread Peter Brigham MD
On Apr 22, 2011, at 12:44 PM, Marty Knapp wrote: > Thanks for the suggestion Craig. I did tinker with this some more: > > So in my test field I have this script: > > on mousedown whichButton > if whichButton is not 3 then exit mousedown > put the mouseLoc into ML > get lineOffset(the text

Re: Data-Entry in a LiveCode form using the tab key

2011-04-19 Thread Peter Brigham MD
Solved one part of the problem -- there has to be a "wait with messages" after the mouseclick. Without this the mousecontrol always returns empty. I have no idea why. I haven't yet figured out how to change the cursor to ensure the user knows s/he is still in the doFieldOrder mode -- it doesn't

Re: Palette question

2011-04-18 Thread Peter Brigham MD
On Apr 18, 2011, at 12:58 PM, Scott Rossi wrote: > Even better: quit LiveCode and your stack will be COMPLETELY "not resizable" Quit LiveCode??? You can do that -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ use

Re: Data-Entry in a LiveCode form using the tab key

2011-04-18 Thread Peter Brigham MD
On Apr 18, 2011, at 12:43 PM, Bob Sneidar wrote: > Or you can get a list of fields whose focusable is true and locktext is false > (because you don't want to tab to labels now do you) and then present the > developer with an interface where they can click sequentially on the fields > in the ord

Re: Rev/Livecode project and GPL Licenses

2011-04-18 Thread Peter Brigham MD
On Apr 17, 2011, at 7:15 PM, Richard Gaskin wrote: > Peter Brigham wrote: > >> On Apr 15, 2011, at 10:14 AM, Richard Gaskin wrote: >> >>> Scott McDonald wrote: >>>> Where I was getting it mixed up, was that I was equating selling >>>> com

Re: Rev/Livecode project and GPL Licenses

2011-04-17 Thread Peter Brigham MD
On Apr 15, 2011, at 10:14 AM, Richard Gaskin wrote: > Scott McDonald wrote: > >> Thanks Mark for clarifying that. >> >> Where I was getting it mixed up, was that I was equating selling >> commercially with not making the source code available. >> >> But of course, they are not the same thing. >

security code number generation

2011-04-02 Thread Peter Brigham MD
For anyone who might have the need, I have a handler I use to generate a security code, in my case for printed prescriptions. It takes the name of the patient, the date of the prescription, the medication and med strength and hashes all that to produce a ten-digit alphanumeric string (using

Re: novice question re "marked" and customkeys

2011-04-01 Thread Peter Brigham MD
On Apr 1, 2011, at 2:37 PM, Bob Sneidar wrote: Okay sorry dislexia has set it. I saw 1022 and it looked like 1002. I looked at it 20 times and saw them as identical. I am so embarrassed. Bob I make stupid mistakes all the time, especially when I've just hit the send button. :-) As I get

Re: Currently playing song on iPod Touch

2011-04-01 Thread Peter Brigham MD
On Apr 1, 2011, at 10:23 AM, Peter Brigham MD wrote: http://home.comcast.net/~pmbrig/iTunesWidget.rev.zip I haven't tried to pass this around much, because for reasons I can't track down, clicks sometimes disappear into emptiness with no response, sometimes mousemove doesn&#

Re: Currently playing song on iPod Touch

2011-04-01 Thread Peter Brigham MD
Tom McGrath put together an iTunesLibrary in LC. I can't seem to find it in my LC files, but I'm sure he would make it available to you. I used his library to make a little thing called iTunesWidget. Pop it into your plugins folder, and any time you're running in the IDE, you can open it up

Re: novice question re "marked" and customkeys

2011-03-31 Thread Peter Brigham MD
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 Thu, Mar 31, 2011 at 1:33 PM, Timothy Miller < gand...@doctortimothymiller.com> wrote: A big thankya goes out to Peter, Mike, Bob and Pete

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: mileage -- re tax time

2011-03-31 Thread Peter Brigham MD
take this and run with it on mobile, please contact me off list. 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 f

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

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

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-22 Thread Peter Brigham MD
You don't have a "do" statement in there somewhere, do you? The only way I could imagine that kind of behavior happening would be with something like "do script of this card." -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Mar 22, 2011, at 9:38 PM, Gerry Orki

Re: newbie script question re Find command

2011-03-22 Thread Peter Brigham MD
On Mar 22, 2011, at 5:31 PM, Timothy Miller wrote: Hiya, I guess I never tried to write a script like this before. Thought it would be simple... Well, it is simple, probably, just not simple in a way that I actually understand. How do I find multiple instances of a string in a given field

Re: Getting a single column of a datagrid

2011-03-22 Thread Peter Brigham MD
On Mar 21, 2011, at 11:56 PM, Trevor DeVore wrote: *private* *function* _printCharXTimes pChar, pTimes *local* theStr *repeat* with i = 1 to pTimes *put* pChar after theStr *end* *repeat* *return* theStr *end* _printCharXTimes A way to do this without a loop (don't know

Re: Efficiency question for list modification

2011-03-16 Thread Peter Brigham MD
On Mar 12, 2011, at 6:13 PM, Alex Tweedly wrote: You're right. Sorry - I was misled by the docs, which describe the order of the combine following the description of the 'first' form of the combine command, and then go on to describe the second form, including the fact that the keys of the

Re: new trick, for me

2011-03-04 Thread Peter Brigham MD
that anomaly. On Mar 4, 2011, at 11:04 AM, Peter Brigham MD wrote: It appears not to trigger openCard. FYI, the reason that I needed to do this is that I am trying to do something with long id's and found what seems to be a bug in how the engine handles this. If I do this while on the fir

Re: new trick, for me

2011-03-04 Thread Peter Brigham MD
com http://home.comcast.net/~pmbrig On Mar 4, 2011, at 1:48 PM, J. Landman Gay wrote: On 3/4/11 12:38 PM, Bob Sneidar wrote: I wonder if that triggers an openCard event? No. I don't think it triggers any messages. Bob On Mar 4, 2011, at 10:05 AM, Peter Brigham MD wrote: Just discover

new trick, for me

2011-03-04 Thread Peter Brigham MD
Just discovered a trick I didn't know about. This is in the IDE, BTW. I needed to have the first card of one of my stacks as the current card, while I do something from another stack (a utility stack). If I "go card 1 of stack " then the stack comes to the front, but I want to keep the uti

Re: A curious case

2011-03-02 Thread Peter Brigham MD
On Mar 2, 2011, at 11:26 AM, Richard Gaskin wrote: Andre Garzia wrote: I tend to work on the same way. longer forms makes shorter understanding time. I'd rather write more and understand more than write faster and then one week from now, be completely lost in nested mazes Well said. And

Re: Inserting Image into html text of Field

2011-02-28 Thread Peter Brigham MD
Look at "imageSource" in the dictionary. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Feb 28, 2011, at 2:21 AM, RevList wrote: It has been a while since I have done this, but I am building a help system and want to include images in the body of some of my tex

Re: Print No Dialog

2011-02-26 Thread Peter Brigham MD
PROGRAM, n. A series of instructions that tells a computer to turn one's input into error messages. PROGRAM, tr.v. To engage in a pastime similar to banging one's head against a wall, but with fewer opportunities for reward. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/

Re: Getting current OS language

2011-02-26 Thread Peter Brigham MD
On Feb 26, 2011, at 9:10 AM, Medard wrote: Klaus on-rev wrote: OK, it was not Monsieur Medard, but another french man :-) ;-) Did you know...? Homer didn't write the Iliad, it was someone else with the same name. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~p

Re: Custom cursors

2011-02-18 Thread Peter Brigham MD
On Feb 18, 2011, at 1:46 PM, David C. wrote: Hi Richmond, How about: on mouseEnter set the lockCursor to true set the cursor to 1005 -- your image id end mouseEnter on mouseLeave set the lockCursor to false set the cursor to arrow end mouseLeave Best regards, David C. Best to not lo

Re: Sample code for reading a CSV file

2011-02-17 Thread Peter Brigham MD
On Feb 17, 2011, at 3:01 PM, Paul Dupuis wrote: First, thanks to everyone who replied, but especially to Nosanity. Your code reminded me that you can effectively tell when you are inside an encapsulated bit of data by an odd/even count of the encapsulation character. So, for anyone who want

Re: selecting the selected

2011-02-16 Thread Peter Brigham MD
On Feb 16, 2011, at 10:10 AM, Richmond wrote: Umm . .. so I have a field [called fld "TEKST"]full of text and I select some of it with my mouse I then click on a button that contains the following script: on mouseUp copy the selected of fld "TEKST" end mouseUp nix! now, I've tried "th

Re: LiveCode & google maps...

2011-02-15 Thread Peter Brigham MD
On Feb 15, 2011, at 4:27 PM, James Hurley wrote: Peter, Thanks. Very interesting. A couple of questions. Is "lineoffsets" a custom function or a typo? And what is the "sr" function? Thanks again, Jim Hurley On Feb 15, 2011, at 10:00 AM, use-livecode-requ...@lists.runrev.com wrote:

Re: LiveCode & google maps...

2011-02-15 Thread Peter Brigham MD
On Feb 15, 2011, at 11:57 AM, Devin Asay wrote: On Feb 15, 2011, at 8:56 AM, Peter Brigham MD wrote: On Feb 15, 2011, at 8:41 AM, John Dixon wrote: Could some please point me in the right direction... I would like to use the browser object in a stack to display a google map… that I can

Re: LiveCode & google maps...

2011-02-15 Thread Peter Brigham MD
On Feb 15, 2011, at 8:41 AM, John Dixon wrote: Could some please point me in the right direction... I would like to use the browser object in a stack to display a google map… that I can do. I would like to be able to choose a postcode or the name of a town or village from a list in a field

Re: Problem transferring focus to another object

2011-02-15 Thread Peter Brigham MD
On Feb 14, 2011, at 8:24 PM, Terry Judd wrote: Hi there - I’m trying to build a ‘fake’ optionmenu control where the menu is a list field object that is popped up over the control. I have a mouseMove handler in the field to set the hilitedLines of the field and this all works well provided t

Re: Stackfiles followup

2011-02-15 Thread Peter Brigham MD
On Feb 14, 2011, at 3:01 PM, Peter Haworth wrote: The behaviors are specified in the form "button id 1234 of stack "xyzSub". I tried adding "of stack "xyz" after the behavior specifications but the IDE simply removes that text. Behavior references have to be in the form of a long id: s

Re: Image object not existing ?

2011-02-14 Thread Peter Brigham MD
May try adding the stack specifier to the image and btn references in your script? img "imgFondSliderIntensité" of stack "myStackName", etc. -- it sounds as if when that script is running the defaultstack has been set to a different stack. -- Peter Peter M. Brigham pmb...@gmail.com http:

Re: How to get current text hiliteColor in Linux?

2011-02-02 Thread Peter Brigham MD
On Feb 2, 2011, at 12:44 AM, Mark Wieder wrote: put line 6 of the effective colors of button x into tHiliteColor The colors property! -- very handy, and not just for Linux. I should spend more time reading the dictionary. (I think I just revealed my essential geekiness.) -- Peter Peter

Re: No dial command

2011-02-02 Thread Peter Brigham MD
On Feb 1, 2011, at 5:29 PM, dunb...@aol.com wrote: HC sends DTMF tones with the "dial" command through the speaker jack. These can connect to a dialer gadget called a "TurboDialer", which connects to a telephone handset. Nothing like that in LC at all? Never mind the hardware. It is actuall

Re: Enhancement Vote

2011-02-01 Thread Peter Brigham MD
Looks as if Mark Waddingham has already started implementing this for the next build. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Jan 31, 2011, at 3:56 PM, Peter Haworth wrote: I submitted a request a while back to have an option to sort the substacks of

use-livecode@lists.runrev.com

2011-01-30 Thread Peter Brigham MD
On Jan 29, 2011, at 9:28 PM, John Patten wrote: Thanks for looking into this with me! The way you (Jim) appear to take what I did and turn it around in a fraction of the lines is amazing! Someday I want to be able to do that :-) Jacqueline is correct. The fields make up a mixed up paragrap

Re: LiveCode for e-book production

2011-01-30 Thread Peter Brigham MD
On Jan 29, 2011, at 10:31 AM, Javier Miranda V. wrote: Dear friends, can you please give me your opinions on using LiveCode for e-book production?. I know LiveCode, being so powerful, can handle complex projects involving lots of logic and structures, but is it suitable / practical to use

Re: umask

2011-01-24 Thread Peter Brigham MD
On Jan 24, 2011, at 2:23 PM, J. Landman Gay wrote: On 1/21/11 1:00 PM, J. Landman Gay wrote: On 1/21/11 12:47 PM, Peter Brigham MD wrote: I just double-checked: created a new mainstack, put a new field in it, put some text into it, and put this in the field script: on selectionchanged

  1   2   >