Re: replacing only exact matches in script

2019-08-07 Thread Alex Tweedly via use-livecode
On 07/08/2019 20:10, Dr. Hawkins via use-livecode wrote: I’m finally writing my new version of dependency calculation for database variables, with a supposedly clever easy format fo entry and machine calculated script. I need to replace only exact true words, though. So I need to be able t

Re: replacing only exact matches in script

2019-08-07 Thread hh via use-livecode
> Richard H. wrote: > I need to replace only exact true words, though. > So I need to be able to take an input string such as >5*pay - 2*monthlypay > and be able to replace “pay" with >getVal(pay,,,debtor) > without replacing monthlypay. You could try the following (works for me). Put a

Re: DragDrop for Datagrids

2019-08-07 Thread Dr. Hawkins via use-livecode
On Aug 6, 2019, at 3:20 PM, J. Landman Gay via use-livecode wrote: > > Nonsense. Every woman knows it's always the man's fault. We don’t have to take this abuse from you—we have our own wives waiting to abuse us! :) — Richard E. Hawkins, Esq. The Hawkins Law Firm 3430 E. Flamingo Rd. Suit

Re: replacing only exact matches in script

2019-08-07 Thread Dr. Hawkins via use-livecode
On Aug 7, 2019, at 1:05 PM, Bob Sneidar via use-livecode wrote: > > Again, this is probably better handled with database queries. The catch is that I’m doing this to *build* those queries (or, actually, to invoke a combination)! the combination I mentioned would cause another value to be cal

Re: replacing only exact matches in script

2019-08-07 Thread Bob Sneidar via use-livecode
Again, this is probably better handled with database queries. But looking at your example, wouldn't it be simpler to replace "*" with space & "*" & space, and likewise with everything not a-z A-Z including cr, lf, etc? Now you have a guarantee that wholematches will work with words. Bob S >

replacing only exact matches in script

2019-08-07 Thread Dr. Hawkins via use-livecode
I’m finally writing my new version of dependency calculation for database variables, with a supposedly clever easy format fo entry and machine calculated script. I need to replace only exact true words, though. So I need to be able to take an input string such as 5*pay - 2*monthlypay and

Re: How does OSX tell what app to open when you double click a file?

2019-08-07 Thread Dr. Hawkins via use-livecode
On Aug 7, 2019, at 2:31 AM, David V Glasgow via use-livecode wrote: > > No idea if this is any help at all, but I run two versions of Apple Pages (I > have my reasons… ;-) > No wisecracks from me—I ran Word 4.0 and 5.1 on the same computer for years. It was the rare case where msft didn’t d

Re: How does OSX tell what app to open when you double click a file?

2019-08-07 Thread Pi Digital via use-livecode
2cents: I do almost the exact same thing with LC and have older versions. The same thing for adobe after effects. The really fun (phun) top weird thing that happens is using cmd-space and typing “liv” or “aft” and having pot luck which one appears at the top of the list and launches if I press

Re: How does OSX tell what app to open when you double click a file?

2019-08-07 Thread David V Glasgow via use-livecode
No idea if this is any help at all, but I run two versions of Apple Pages (I have my reasons… ;-) I have the older version set as the default for all Pages documents, and make exceptions when I need to. Interestingly, MacOS 10.13.6 gets confused sometimes. Even if a document is set to open wi