Hi, Bob. The bottom pane reappears to show search results, so search for
something.
— Dick
> On Aug 8, 2023, at 9:28 AM, Bob Sneidar via use-livecode
> wrote:
>
> Hi all.
>
> Not sure how I did it but I can no longer see the variables while debugging.
> The bottom pane has disappeared and
> On Jul 25, 2023, at 7:49 PM, Geoff Canyon via use-livecode
> wrote:
>
> So, not to be too much of an apologist, but the issue doesn't seem like a
> showstopper to me.
This is just a crashing bug to fix before RC1. Let the show go on!
— Dick
___
> On Jul 25, 2023, at 11:37 AM, Geoff Canyon via use-livecode
> wrote:
>
> Maybe a silly question, but that issue lists "turn on bracket completion"
> as a step to reproduce. If bracket completion is off, is it safe?
Hi, Geoff. I filed the report. With bracket completion off, I saw no such
> On Jul 15, 2023, at 8:06 AM, Paul Dupuis via use-livecode
> wrote:
>
> So in the instances where you have a script that creates an object and then
> sets the script of that object (example below), what is you best practice for
> having the script in a script and still be readable?
Hi,
> On Mar 30, 2022, at 2:16 PM, Paul Dupuis via use-livecode
> wrote:
>
> sort lines of tText by word 1 of each & word 2 of each & word 3 of each
Hi, Paul.
The only feature missing is padding the first two words:
sort tText by pad( word 1 of each ) & pad( word 2 of each ) & word 3 of each
> On Mar 22, 2022, at 7:25 AM, Rick Harrison via use-livecode
> wrote:
>
> An existing database would make things a lot easier.
You could scrape an online dictionary to obtain the syllabification for each
given word.
For example, if you investigate
> On Mar 13, 2022, at 1:05 PM, J. Landman Gay via use-livecode
> wrote:
>
> On 3/12/22 8:54 PM, Roger Guay via use-livecode wrote:
>> I have a field with about a thousand lines with many duplicate lines, and I
>> want to delete the duplicates. Seems like this should be simple but I am
>>
> On Mar 3, 2022, at 2:30 AM, David V Glasgow via use-livecode
> wrote:
>
> I can filter text using a single term plus a numerical range s eg:
> *re 1[0-5]*
> matching a text stem “re “ followed by any one of 10, 11, 12, 13, 14 or 15
>
> But is there a form where the alternatives are also
> On Mar 2, 2022, at 1:57 PM, J. Landman Gay via use-livecode
> wrote:
> ...
> repeat for each line l in pList -- pList is the user word list
>if sDictFile[l] = true then put l & cr after tCheckedList
>else put l & cr after tNonWords
>wait 0 with messages -- prevent ANRs
> end
> On Jan 21, 2021, at 2:34 AM, Keith Clarke via use-livecode
> wrote:
> I was just keen to understand why offset wasn’t happy with the ‘not(tab)’ in
> this instance.
expression "not(tab)" evaluates to true, which doesn’t serve your purpose
— Dick
> On Jan 21, 2021, at 2:25 AM, Dick Kriesel via use-livecode
> wrote:
>
> Hi, Keith. You could test each character until you find a tab:
>
correction: until you find one that’s not a tab
___
use-livecode mailing li
> On Jan 21, 2021, at 1:30 AM, Keith Clarke via use-livecode
> mailto:use-livecode@lists.runrev.com>> wrote:
>
> Please can anyone advise on the correct syntax for trying to find the first
> non-tab character offset in a string
Hi, Keith. You could test each character until you find a tab:
> On Jan 22, 2020, at 10:17 AM, Richard Gaskin via use-livecode
> wrote:
>
> I stumbled across a code challenge for y'all, one that seems seductively
> simple but I don't think it is:
>
> What is the simplest way to build an array that reflects the files and
> folders within a given folder?
> On Aug 7, 2018, at 9:29 PM, Jerry Jensen via use-livecode
> wrote:
>
>> On Aug 7, 2018, at 8:35 PM, Mark Wieder via use-livecode
>> wrote:
>>
>> On 08/07/2018 07:57 PM, Dick Kriesel via use-livecode wrote:
>>> On Aug 7, 2018, at 5:47 PM,
On Aug 7, 2018, at 5:47 PM, Alex Tweedly via use-livecode
wrote:
>
> Is there an easy way to test whether an array is (currently) a sequence array
> ?
>
> something easier than
> put the extents of tArray into tmp
> if item 1 of tmp = 1 AND item 2 of tmp = the number of elements in
> On Jul 13, 2018, at 1:26 AM, hh via use-livecode
> wrote:
>
>> Bob S. wrote:
>> Something in my scripts is sending a selectionChanged message in
>> time to a specific datagrid when it shouldn't. How do I determine
>> the sender of a send in time message?
>
> Simply use a a parameter:
>
>
> On Jun 26, 2018, at 1:13 PM, Bob Sneidar via use-livecode
> wrote:
> ...
> do "put " & quote & aStackConstants [tConstant] & quote & " into " &
> tConstant
Hi, Bob. If you wanted simpler code, that could be just
do "put aStackConstants[ tConstant ] into " & tConstant
— Dick
ke something that should be known!
>
> On Mar 12, 2012, at 1:18 PM, Dick Kriesel <dick.krie...@mail.com
> <mailto:dick.krie...@mail.com>> wrote:
>
> I found it while looking through bug reports for arrays, in
> <http://quality.runrev.com/show_bug.cgi?id=7166
> On Aug 11, 2016, at 2:34 PM, Sannyasin Brahmanathaswami
> wrote:
>
> but looking for
>
> OBJECT A (with behaviors)
> behavior 1
> behavior 2
> bevaiour 3
>
> all with an "equal standing"
I have a library called "libBehaviorList" you could use to give
> On May 1, 2016, at 2:59 AM, RM wrote:
>
> BUT, what is the non-mod bit?
13492571 div 16
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
Craig’s code works. I should’ve tested.
As a design alternative, you could use a single local variable for all those
arrays. Then you could reinitialize without invoking "do;" code that applies
to multiple arrays may be less verbose.
— Dick
___
> On Apr 22, 2016, at 12:48 PM, Sannyasin Brahmanathaswami
> wrote:
>
> repeat for each item x in tLocalVars
>put empty into x
> end repeat
repeat for each item x in tLocalVars
set the text of x to empty
end repeat
___
> On Apr 21, 2016, at 11:53 PM, Sannyasin Brahmanathaswami
> wrote:
>
> But I can’t wrap my head around the core problem: how to split a list where
> the first element may be repeated throughout with different values.
How about this way?
repeat for each line t in p
>
> Expected behavior “Replace All” button should be enabled after the find runs
>
> What happened: it remains dimmed
>
Aloha, BR.
"Change all" requires "Look in: Current Tab" or "Look in: All Tabs" for me.
Do those options work for you?
— Dick
come to your SoCal meeting virtually?
Dick Kriesel
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
On Jul 24, 2015, at 5:05 PM, Peter Bogdanoff bogdan...@me.com wrote:
I want to reference that data like this:
set the width of item 1 of line 1 of field “MyField” to item 2 of
line 1 of field “MyField”
How do I script the stuff inside the ? Sometimes that item will be a
On Jun 23, 2015, at 10:39 PM, Monte Goulding mo...@sweattechnologies.com
wrote:
Howdy folks
I’m doing a bit of IDE hacking for a new plugin and I want to override a
function in one of the libraries or rather add some lines to it’s results.
The only way I can override is via a front
On Apr 20, 2015, at 1:38 PM, Bob Sneidar bobsnei...@iotecdigital.com wrote:
One other confusing thing is that if you check a variable containing an array
for empty it will return true.
Lay that confusion to rest, Bob. Here’s a snip from release notes I found for
6.0.1:
From 6.0 DP 3
On Feb 27, 2015, at 3:17 PM, Peter M. Brigham pmb...@gmail.com wrote:
Is handlerList() a built-in LC function? Or a proprietary function? When I
try it in LC 5.5.1 it can't find the function, so if it's a native function
it's in a later version. I've built my own workaround, but using
On Feb 27, 2015, at 8:03 AM, Peter M. Brigham pmb...@gmail.com wrote:
The output I get from revAvailableHandlers looks like this:
M mouseleave 14 17 button id 1026 of group id 1021 of card id 1082 of stack
NCMHC notes of stack /Users/pmbrig/Documents/LiveCode/ NCMHC notes/ NCMHC
On Jan 21, 2015, at 9:54 AM, Ken Ray k...@sonsothunder.com wrote:
I use a similar inline switch:
put stsSwitch(the platform,MacOS=Finder,Win32=Explorer,*=Desktop)
into tReference
One line can accomplish that even without invoking a custom function:
put item itemOffset( the platform,
On Jan 17, 2015, at 12:13 PM, Richard Gaskin ambassa...@fourthworld.com
wrote:
What would you do?
I'd skim through the ELFF doc for something to try.
How about using ELFF fields date and time?
Dates are recorded in the format -MM-DD where , MM and DD stand for
the numeric year,
The subject is intriguing for some future release.
Hide oddities would be great for giving demos; show oddities would great
for debugging.
Thanks for the suggestions, Alex.
-- Dick
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please
On Oct 14, 2014, at 12:45 PM, Richard Gaskin ambassa...@fourthworld.com wrote:
on mouseUp
put 1000 into n
put aaa,bbb,ccc#ddd#eee#fff,ggg,hhh into tSomeData
--
put the millisecs into t
repeat n
get nDepth(tSomeData, 3, comma, 2, # )
end repeat
put the millisecs - t
On Sep 27, 2014, at 12:23 AM, JB sund...@pacifier.com wrote:
But there might be a faster way.
Hi, John.
Here's a way that works in under a millisecond on my iMac, and a way to test
its speed.
command replace_maybe @rString
repeat with i = 3 to length( rString ) step 3
if char i
On Sep 27, 2014, at 8:34 PM, Kay C Lan lan.kc.macm...@gmail.com wrote:
At this stage it looks like I have to step through each object,
extract each script and then parse out the handler names; which of
course is exactly what LC does extremely quickly and efficiently, but
not as quick as if
On Sep 25, 2014, at 9:24 PM, Peter Bogdanoff bogdan...@me.com wrote:
My first foray into arrays
Hi, Peter.
For this foray, you could use a one-dimensional array, containing the three
lines of html text for each plain text key:
command sortGroupsOfLines
local tText, tLineNumber, tGroup,
On Sep 22, 2014, at 4:33 PM, Richard Gaskin ambassa...@fourthworld.com wrote:
But it really should be a one-liner
OK, Richard. Here's one.
-- given variable tFile, containing the name of a file in the default folder
-- given variable tSize, which is where to put the size of the file
get
On Sep 23, 2014, at 1:13 AM, Thierry Douez th.do...@gmail.com wrote:
Here is a modified version of yours:
matchText(the detailed files,((?m)^ urlEncode( tFile ) ,(\d+) ),
tSize)
Hi, Thierry.
When the file name contains a space, urlEncode encodes the space as +, which
regex interprets,
On Aug 22, 2014, at 1:17 PM, Beat Cornaz b.cor...@gmx.net wrote:
So a good example would be how to make all possible permutations of say 10
different elements (0-9). This gives 3628800 different permutations.
The resulting permutations will be in lines I guess, but what would be the
best
On Aug 23, 2014, at 1:31 AM, Dick Kriesel dick.krie...@mail.com wrote:
putLine n things produce ( number of elements in
tCountForPermutation ) of \
oops. please replace putLine with put
___
use-livecode mailing list
use-livecode
How about revword for the pre-7 behavior?
+ frees word to make learning easier post-6
+ tribute to heritage
+ easily recognizable and sensible reference for current and future livecoders
+ no reference to encoding
+ no reference to versions
+ no unexpected u
+ precedent for similar changes in the
Stephen -- I'm glad you did; you made the thread more fun than if someone else
had pointed it out.
A belly laugh, even, Stephen.
On Sep 7, 2013, at 10:55 PM, stephen barncard stephenrevoluti...@barncard.com
wrote:
geesh... . I shouldn't have pointed out my mistake. Tough crowd.
no slack!
-in'?
On Sep 8, 2013 12:37 AM, Dick Kriesel wrote:
Mark -- I've noticed you belch out a pun now and then.
I'll bet you feel better afterwards, too.
On Sep 7, 2013, at 6:49 PM, Mark Wieder mwie...@ahsoftware.net wrote:
Dick-
Saturday, September 7, 2013, 5:52:22 PM, you wrote:
I knew
I knew in my gut what he meant.
On Sep 7, 2013, at 4:57 PM, Marian Petrides, M.D. mpetri...@earthlink.net
wrote:
I wondered about that :-)
On Sep 7, 2013, at 4:48 PM, stephen barncard
stephenrevoluti...@barncard.com wrote:
abdominal ! NO!
abominable !
Mark -- I've noticed you belch out a pun now and then.
I'll bet you feel better afterwards, too.
On Sep 7, 2013, at 6:49 PM, Mark Wieder mwie...@ahsoftware.net wrote:
Dick-
Saturday, September 7, 2013, 5:52:22 PM, you wrote:
I knew in my gut what he meant.
Sometimes I just can't
On May 23, 2013, at 12:41 AM, Jacques Hausser jacques.haus...@unil.ch wrote:
and something like
scramble lines of myVar, instead of sort lines of myVar random(xxx).
Could be a command using the same function behind the scene, with the max
integer as parameter to avoid prevalence of the
On May 22, 2013, at 10:59 AM, Chris Sheffield cmsheffi...@icloud.com wrote:
sort lines of myVar by random(the number of lines of myVar)
Hi, Chris.
I suggest you try this:
sort lines of myVar by _random( the number of lines in myVar, each )
with this:
private function _random pUpperLimit --
On May 22, 2013, at 5:04 PM, Dick Kriesel dick.krie...@mail.com wrote:
combinations
oops... permutations
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
On May 12, 2013, at 6:18 PM, Peter Haworth p...@lcsql.com wrote:
A few months back, there was a great post that revealed what I think is a
little known way to reference array keys - if I'm not mistaken it was from
Dick Kriesel. I have no idea how (in)efficient it might be compared
On Mar 24, 2013, at 1:02 PM, Monte Goulding mo...@sweattechnologies.com wrote:
I know the list of keys is not random but there's no guarantee on the order
as far as I know and I'd want to do a significant amount of testing before I
assume two arrays created under different circumstances
On Mar 24, 2013, at 1:29 PM, Mark Schonewille
m.schonewi...@economy-x-talk.com wrote:
As you can conclude from
To compare two arrays, simply use the = operator directly on them rather
than encoding them first.
the documenation, particularly with regard to arrays, is not always correct.
On Mar 23, 2013, at 12:13 AM, Monte Goulding mo...@sweattechnologies.com
wrote:
Hi Folks
Just checking if there isn't an undocumented inverse of the intersect
command? What I need is a function that can take two multi-dimensional arrays
and return only keys and elements that both don't
On Mar 23, 2013, at 12:57 AM, Monte Goulding mo...@sweattechnologies.com
wrote:
This is for the VCS stuff I'm doing and I need to end up with the differences
between branch a and branch b.
I have some lightly tested code for detecting changes from one multidimensional
array to another.
On Mar 23, 2013, at 12:43 PM, David Beck da...@rotundasoftware.com wrote:
If one has two nested arrays, can you compare the two for equality by doing
if deepArray_1 is deepArray_2 then
-- do whatever
end if
It looks like this does not work. That is, you get false positives at times
On Mar 23, 2013, at 4:53 AM, Dick Kriesel dick.krie...@mail.com wrote:
It needs more testing before I share it. How soon do you need it, Monte?
Detecting changes from one multidimensional array to another now passes my
tests, as confirmed by applying the derived changes to the original data
On Dec 29, 2012, at 5:48 PM, mfstu...@cox.net wrote:
example: if the bottom left pane (#3) was dragged into the top left position
(#1), panes 1 and 3 take up the space of 1 and 3, and are presented as a
tab control. Panes 2 and 4 remain as they were.
Hi, Mark. What happens when we drag an
On Dec 29, 2012, at 9:32 PM, Mark Stuart mfstu...@cox.net wrote:
Likewise, pane #2 could be dropped onto pane #3 position.
Then, what appears where pane #2 was?
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to
On Dec 9, 2012, at 4:31 PM, Glen Bojsza wrote:
That's it!!
500,000 points in 419 milliseconds.
This scales perfectly for what I need.
thanks Dick.
You're welcome, Glen. So now I've tried optimizing for speed and legibility.
Would you check the timing for your data, please, and
On Dec 10, 2012, at 8:59 AM, Jim Hurley wrote:
get put the tTrigFunctionof tAngleinto y
do it
Hi, Jim and Roger.
If you like more concise code, you can code the above like this:
put value( tTrigFunction ( tAngle ) ) into y
-- Dick
On Dec 10, 2012, at 10:40 AM, Roger Guay wrote:
Question: Is this essentially a Do statement in a clever disguise?
Yes, although the value function can do more than it does in this example
(see the dictionary for details).
-- Dick
___
use-livecode
On Dec 9, 2012, at 12:33 AM, Glen Bojsza wrote:
I believe that this should be doable less than 1 second
Hi, Glen. Here's a draft you could try. It works for the sample data you
posted.
If you have questions, please ask. If you try it, please report your timings.
-- Dick
postScript
On Dec 9, 2012, at 3:17 AM, Glen Bojsza wrote:
In other words the two values found in column 2 of the group data must then
get the corresponding column1 values from the original dataset.
Hi, Glen. You'll get that if you remove the line put 0 into tLineNumber near
the end of the repeat
On Dec 9, 2012, at 12:37 PM, Glen Bojsza wrote:
So there must be a better way to get the item 1 value and still stay in the
millisecond range...or not?
Did you remove the line I mentioned, verify the results, and check the timing?
-- Dick
___
Charles, please let us know what the problem was.
If the problem persists, I suggest you check the whether the suspect checkboxes
may be affected by a getProp for uMyLabel, or by a custom property set.
-- Dick
___
use-livecode mailing list
Hi, Pete. You can wrap your if in a function, so any caller can have just
one line.
myCommand parm1,iff(condition,parm2a,parm2b),parm3
function iff pBoolean,pTrueValue,pFalseValue
if pBoolean then
return pTrueValue
else
return pFalseValue
end if
end iff
-- Dick
On Jul
On Jun 22, 2012, at 6:43 PM, Peter Haworth wrote:
... opening up a huge can of worms ...
Hi, Peter.
Significant differences between versions can happen at least a few more places:
1) multi-dimensional arrays stored in custom properties (for example, app
settings)
2) the object hierarchy
3)
On Jun 16, 2012, at 8:34 AM, Peter Haworth wrote:
Wondering why rarray is passed by reference?
In the spirit of passing by reference, the answer is:
Refer to the dictionary under @ for a user contributed note from
oli...@runrev.com.
In the spirit of passing by value, the answer is:
Passing
On Jun 15, 2012, at 3:21 PM, Bob Sneidar wrote:
Hi all.
I am wondering if anyone has developed an Array Filter procedure that would
give me all the rows of an array matching a certain criteria? For instance,
let's say I wanted all the rows whose key name contained bob and have it
On Mar 12, 2012, at 10:19 AM, Pete wrote:
I'm wondering how you found about about this key values array feature? I
can't find any mention of it in the dictionary or the reference manual and
it sure seems like something that should be known!
I found it while looking through bug reports for
On Mar 12, 2012, at 11:12 AM, Mark Wieder wrote:
Dick is well known as the master of arrays. I've learned to just
accept his advice without questioning.
I didn't know that!
But, I make so many misteaks that I have to recomend that you resume
questoining.
-- Dick
On Mar 9, 2012, at 5:05 PM, Dar Scott wrote:
Maybe the array could be global (or passed as a parameter) and the subscript
passed. ... There might be problems I don't see right off, such as access to
the same array at two different levels at the same time.
Hi, Dar. LC has a way to get and
On Feb 20, 2012, at 9:37 PM, Kay C Lan wrote:
Anyone want to test the speed of finding data in a 100 line variable
using char -1 of word -1 of item -1 of line -1?
Hi, Kay. Sure. How do I get the script?
I'd guess that almost all the time goes into the line -1, and within that line
On Jan 29, 2012, at 9:23 PM, J. Landman Gay wrote:
Geek-speak in the 5.0.2 release notes say that redraws will be flushed at
various times. I assume this means redraws will occur?
Or, maybe, Redraw has occurred, so any redraws in the pending messages can and
will be flushed.
-- Dick
On Oct 5, 2011, at 3:00 PM, Matthias Rebbe wrote:
Hi,
i need to compare two very large text files with about 5000 - 7000 lines each
with a lines size of up to 256 chars.
I need to find out if there are lines missing in either file a or file b.
What is the best way to do this with good
On Sep 19, 2011, at 1:30 PM, Tereza Snyder wrote:
(tTestA1 tTestA2) is not the same as not(tTestA1 = tTestA2) when the
arrays are unequal.
OK, Tereza, you're not crazy.
The dictionary entry for says:
Use the (inequality) operator to compare two numbers or to compare two
strings.
--
On Jul 13, 2011, at 7:53 PM, Nonsanity wrote:
I like Pete's best - closest to what I was thinking -
I like Jerry's best - it's better than I was thinking ...
Jerry's is less code executed less often: one statement once versus two
statements for each item.
-- Dick
),long id of stack altAnswerColor)
end color1
Does that answer your question, Chipp?
-- Dick
On Jul 8, 2011, at 10:57 PM, Chipp Walters wrote:
Cool, Dick! How would one pass quoted vars to that thing?
On Sat, Jul 9, 2011 at 12:54 AM, Dick Kriesel dick.krie...@mail.com wrote:
On Jul 8
On Jul 9, 2011, at 1:20 AM, Chipp Walters wrote:
Here's one for you, Dick..
In the above mentioned stack there's this part of a script, which is used to
pass the function params onto a handler:
*if* the paramcount = 0 *then*
*send* initMe to tObj
*else*
*repeat*
On Jul 9, 2011, at 7:57 AM, Chipp Walters wrote:
Hmmm. Not sure that works.
Hi, Chipp. I was thinking your code fragment had come from a *command*. If it
had, then I think my code fragment would've been equivalent to yours.
In a *function*, you could do it like this:
send initMe char
On Jul 8, 2011, at 4:17 PM, Chipp Walters wrote:
on mouseUp
start using stack altAnswerColor
get altAnswerColor()
set the backcolor of grc test to it
stop using stack altAnswerColor
end mouseUp
Sure, two extra lines,
Want to use fewer lines, Chipp? How about this?
on mouseUp
On Jul 4, 2011, at 5:55 PM, Nicolas Cueto wrote:
Didn't work well, though. The target object's id got returned, but the
mouseMove wouldn't exit.
Nicolas,
The mouseMove in that old example was just to demonstrate how to invoke the
core code, and to show that the result of executing it
On Jul 2, 2011, at 9:42 AM, J. Landman Gay wrote:
The entire engine is case insensitive, not just object names.
Hi, Jacque. I guess that's why union and intersect can produce wrong results
for mixed-case strings. Is that right?
-- Dick
___
Hi, Tiemo. Does it happen in a standalone?
from the dictionary:
Note: When using script debug mode, the screen cannot be locked and the lock
screen command has no effect.
-- Dick
On Jul 1, 2011, at 1:14 AM, Tiemo Hollmann TB wrote:
Hello,
In a function I set the screenMouseLoc to four
They both fail with caseSensitive true.
on mouseUp
local a,b,c,d
set the caseSensitive to true
put 1 into a[a]
put 2 into b[b]
put 3 into b[B]
union a with b
-- missing a[b]
put 1 into c[c]
put 2 into c[C]
put 3 into d[c]
intersect c with d
-- should not
On Jun 22, 2011, at 10:58 PM, Pete wrote:
I may be wrong, but I don't think intersect solves the problem. If I
understand the dictionary correctly, this will remove all the t1 keys that
do NOT match t2 keys so it does the opposite of what is needed.
Thanks, Pete. I misunderstood the OP.
He
On Jun 22, 2011, at 7:30 PM, J. Landman Gay wrote:
On 6/22/11 9:19 PM, Michael Kann wrote:
If you want to use a SORT you can try something like the following:
on mouseUp
put 1,2,3,4 into v
put 1,2,3,4,5 cr before v
replace comma with cr in v
sort v
repeat for each line x in v
if x
something similarly robust and simple to use.
As to why I want to: no particular reason, other than memo seems vaguely
possible in LC, and a useful thing to have. I like pushing the language
forward.
gc
On Tue, Jun 14, 2011 at 4:27 PM, Dick Kriesel dick.krie...@mail.com wrote:
Hi
Hi, Geoff. Here's a way to memoize without parsing the functions' arguments,
so commas won't be a pain.
local sMemo
function memoize pFunctionName, pParam1, pParam2
local tDigest
put md5( the params ) into tDigest
if tDigest is among the keys of sMemo then
get sMemo[ tDigest ]
Now that you've made your code work, you can consider making it shorter and
faster.
LiveCode supports the syntax:
put boolean expression into container
For example,
put gUSL = pos_vrange and gUSL = neg_vrange into Tester[x][rng_check]
-- Dick
On Jun 6, 2011, at 12:37 AM, Van Brollini wrote:
On 4/23/11 2:11 PM, Glen Bojsza gboj...@gmail.com wrote:
Good thoughts on approaches... I am starting down the rabbit hole!
thanks
Once down in the hole, you can run a second database, feed it the
transaction stream ten seconds delayed, pause the stream while you execute
queries with
On 2/19/11 4:44 PM, Alex Tweedly a...@tweedly.net wrote:
put 1 into tCurrentItemCharOffset
repeat with i = 1 to the number of items in tData
... item 1 of (char tCurrentItemCharOffset to -1 of tData) ...
add the number of chars in item 1 of (char tCurrentItemCharOffset
to -1 of
92 matches
Mail list logo