Re: Getting the weekday name

2010-11-13 Thread Dick Kriesel
On 11/13/10 1:44 PM, Peter Haworth p...@mollysrevenge.com wrote: I'm using the datetimetoJulian function in Sarah's great datetime stack as part of a way to get the alpha weekday name. The words in Sarah's stack say that it's possible to get the day number of the week by taking the remainder

Re: sorting html text with arrays

2010-10-05 Thread Dick Kriesel
Hi, Mark. What are the rules for handling words that appear with more than one style? -- Dick On 10/5/10 11:40 AM, Mark Swindell mdswind...@cruzio.com wrote: I'm using the following script to create a glossary/word list of all words appearing in a songbook I'm making in Apple's Pages word

Re: Multi-dimensional arrays, tutorial?

2010-08-10 Thread Dick Kriesel
On Aug 10, 2010, at 12:53 AM, FlexibleLearning wrote: Can someone point me to an explanation or tutorial on using multi-dimensional arrays, and specifically persistence between sessions? Hi, Hugh. If you'd like to see a script locals persistence toolkit, I'd be glad to share the code. The

Re: OT: Interactive reverse graph plot

2010-07-28 Thread Dick Kriesel
http://www.omnigroup.com/products/omnigraphsketcher/ On 7/28/10 11:42 AM, Alex Adams a...@a2technology.com wrote: Sorry to sound obtuse, but I have been looking for what seems like it should be a simple tool or a program that contains the features to: Draw a graph line manually and have it

Re: Intelligent sorting: NEW WINNER Dick Kriesel

2010-07-08 Thread Dick Kriesel
, FlexibleLearning ad...@flexiblelearning.com wrote: This solution from Dick Kriesel is more accurate than any other solution so far (to an unliminted depth for all practical purposes) and its speed is comparable with the best to date. Yes it is long, but the demands for an accurate intelligent sort

Re: Intelligent sorting: A bit of a poser NEW WINNER

2010-07-02 Thread Dick Kriesel
Hi, Hugh, et al. The test data seems incomplete in that it includes some letters that follow digits, but doesn't include any example that tests sorting those letters. For example, since the test data includes a 1a then it ought to include something like a 1b to test the sorting thoroughly. If

Re: Simple Arrays

2010-01-11 Thread Dick Kriesel
On 1/10/10 1:25 PM, Phil Davis rev...@pdslabs.net wrote: The things some people do for fun... ;-) ... can make others want to get in on the fun, like by fixing something that ain't broke. Here's an elaboration on your idea that handles your sample data more than twice as fast, primarily by

Re: Scaling Groups?

2009-12-10 Thread Dick Kriesel
Thanks, Scott. Since you still have almost ninety percent of the time left, what do you think of scaling the content of fields using tPercent? That could be good when the text is too small for the old reading glasses. -- Dick On 12/10/09 9:00 PM, Scott Rossi sc...@tactilemedia.com wrote:

Re: [OT] Re: [ANN] tRev's new 'decoder' now showing...video is up!

2009-08-26 Thread Dick Kriesel
, 2009, at 6:40 PM, Dick Kriesel wrote: On 8/25/09 3:18 PM, Jerry Daniels jerry.dani...@me.com wrote: I agree TOTALLY with the request, but alas, Rev forbids it. Hi, Jerry. Could you proceed without Rev's traceback message? on mouseUp put 1 into t1 put 2 into t2 checkPoint end

Re: [OT] Re: [ANN] tRev's new 'decoder' now showing...video is up!

2009-08-25 Thread Dick Kriesel
On 8/25/09 3:18 PM, Jerry Daniels jerry.dani...@me.com wrote: I agree TOTALLY with the request, but alas, Rev forbids it. Hi, Jerry. Could you proceed without Rev's traceback message? on mouseUp put 1 into t1 put 2 into t2 checkPoint end mouseUp command checkPoint set the

Re: Syllabic division of words

2009-08-21 Thread Dick Kriesel
Try WordNet: http://wordnet.princeton.edu/ On 8/21/09 8:02 PM, Randall Reetz rand...@randallreetz.com wrote: Hierarchical thesaurus semantic chains would be a fairly simple addition as well. ___ use-revolution mailing list

Re: Inheritance and Custom Properties

2009-04-22 Thread Dick Kriesel
On 4/21/09 3:38 AM, David Bovill david.bov...@gmail.com wrote: Actually you don't need to use do' dick. One of the great things about custom properties is that you can do this: put test_Prop into myCustomPropvar put the myCustomPropvar of btn 1 You can also do this with params: so in

Re: Inheritance and Custom Properties

2009-04-15 Thread Dick Kriesel
On 4/15/09 4:58 AM, David Bovill david.bov...@gmail.com wrote: If you want them inherited you need to define a getprop handler. You can inherit any custom property even without getprop handlers, by walking through the object's long id until you find a value. Here's a function that does that

Re: Inheritance and Custom Properties

2009-04-15 Thread Dick Kriesel
On 4/15/09 2:28 PM, Jim Bufalini j...@visitrieve.com wrote: Hence, custom properties are not inherited in the traditional sense. ;-) Agreed. Even with the technique I offered, the effective inheritance is based only on Rev's owner hierarchy, rather than on anyone's class hierarchy. But Rev

Re: RUNREV Technical support

2009-01-23 Thread Dick Kriesel
Users who agree could vote for QCC enhancement 1565. -- Dick On 1/23/09 1:30 PM, J. Landman Gay jac...@hyperactivesw.com wrote: What I'd really like to see is the debugger built directly into the engine so that we could use a keyboard combination to break into the debugger during runtime.

Re: Table field text formating

2008-12-17 Thread Dick Kriesel
Could you replace each space with an image whose width you've set? Could you replace any character with a snapshot of itself whose width you've set? -- Dick On 12/17/08 6:17 PM, -= JB =- sund...@pacifier.com wrote: Brian, Whatever way it is done Rev should include it as a standard and

Re: if the target is in group...

2008-11-23 Thread Dick Kriesel
if the long id of group x is in the long id of control y On 11/23/08 3:49 PM, Mark Swindell [EMAIL PROTECTED] wrote: I'm losing it. What's the right syntax for returning whether the target of a mouseclick is a part of a given group? --If the target is in,within,among the objects of,

Re: is there a way to trap the start using command before it happens.

2008-11-01 Thread Dick Kriesel
Hi, Andre. If the stacks are all yours, you could just avoid invoking start using except in one handler: command startUsing pStackName if pStackName is not empty then if short name of stack pStackName \ is not among the lines of the stacksinuse then try

Re: the visible of a stack

2008-09-25 Thread Dick Kriesel
Hi, Chipp. Here's a version that's effectively the same but that has a couple minor advantages. First, it has a single exit point, possibly improving maintainability. Second, it executes the corner functions only once no matter how many screens there are, possibly improving performance. --

Re: the visible of a stack

2008-09-24 Thread Dick Kriesel
Hi, Chipp. Either of the other two corners of the stack could be the only corner within a screenrect too. -- Dick On 9/24/08 6:01 PM, Chipp Walters [EMAIL PROTECTED] wrote: Dangit, didn't get the L again..Sorry for the multiple posts . function isStackCurrentlyVisibleOnAnyMonitor pStack

Re: Arrays: new and old keys, i

2008-09-13 Thread Dick Kriesel
Maybe the benefit of unsorted keys is faster execution. Why wait for a sort if you don't need it? On 9/13/08 10:25 PM, Ken Ray [EMAIL PROTECTED] wrote: That would do me - except the most useful would be the ability to get the full ordered index. put the ordered keys of theDataA

MacNN | First Look: Revolution 2.9, cross-platform compiler

2008-04-07 Thread Dick Kriesel
If you want to write programs quickly and easily without feeling like you need to study computer science, consider Revolution. Revolution¹s language is simple enough for anyone to learn and understand, and its ability to create Mac OS X, Windows, and Linux programs is an added bonus.

Re: Filtering array vs plain list

2008-02-02 Thread Dick Kriesel
On 2/1/08 8:35 PM, Shari [EMAIL PROTECTED] wrote: I've never worked with intersecting arrays, so please pardon the questions. Actually it's just intersecting lists of values that come from different arrays. Use-rev pardons almost all questions. If I understand your example, I'd have

Re: Filtering array vs plain list

2008-02-01 Thread Dick Kriesel
On 2/1/08 2:36 PM, Shari [EMAIL PROTECTED] wrote: I'm trying to determine the best way to store a humungous block of data for both speed and accessibility. My original plan was to do an array something like this: Item #2 is an identifier unique to each individual. It will not be a

Re: Many Cards Versus One Card and a List Field

2008-01-16 Thread Dick Kriesel
On 1/15/08 10:47 PM, Peter Alcibiades [EMAIL PROTECTED] wrote: Its a childishly simple problem. There is a file with 15k records. Tab delimited. Each record has five fields and is of the form: number eg 123 description eg Pen, Pencil price eg 2.00 category eg AA, AB... date eg

Re: Remove subset from array

2007-09-17 Thread Dick Kriesel
On 9/17/07 7:40 AM, Mark Schonewille [EMAIL PROTECTED] wrote: We have the intersect and union commands to manipulate arrays. I would like to be able to remove the element of one array from another array. E.g. if a,b,c is on array 1 and a,b,c,d,e,f is in array 2, I would like to remove a,b,c

Re: Global Misbehaving

2007-09-12 Thread Dick Kriesel
Amen to that. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution

Re: placing a group inside another using code...

2007-08-14 Thread Dick Kriesel
Hi, Andre. Rev's owner property is read-only, but here's a way to overcome that limitation, as long as the new owner is a group or a card in the same stack as the old owner. Please let me know if it works for you, or what happened if it doesn't. -- Dick script setprop uOwner pNewOwner if

Re: Can Custom Functions Return Arrays?

2007-07-19 Thread Dick Kriesel
On 7/19/07 11:31 AM, Gregory Lypny [EMAIL PROTECTED] wrote: So, is it that Revolution custom functions cannot return arrays or am I doing something wrong? The following works for me: on foo put bar() into x put the keys of x end foo function bar put 2 into a[2] put 4 into a[4]

Re: Need for Speed (postscript)

2007-07-16 Thread Dick Kriesel
On 7/15/07 12:58 PM, Beynon, Rob [EMAIL PROTECTED] wrote: I ran a brutal test, of 45,000 lines in massList and 16,000 lines in seqDB My crude attempt seems to be capable, even running within the Rev IDE, of completing the 720million comparisons in about 30minutes (OK, admittedly CoreDuo

Re: Fastest memory based search technique (was: Adding 1 to an array)

2007-06-25 Thread Dick Kriesel
On 6/24/07 10:51 AM, David Bovill [EMAIL PROTECTED] wrote: So whats wrong with the idea of creating arrays and then making unions of these arrays to get a fast in memory result equivalent to SQL join? You'd need to update your arrays when you recompile anything, when you rename almost any

Re: altID

2007-05-26 Thread Dick Kriesel
On 5/20/07 5:35 AM, David Bovill [EMAIL PROTECTED] wrote: Has anyone got extensive experience of using altID? I am thinking of using it - but not sure exactly how. The scenario I have is to do with a library of components that get copied all over the place, replace each other and need a

Re: altID

2007-05-26 Thread Dick Kriesel
On 5/26/07 3:51 AM, David Bovill [EMAIL PROTECTED] wrote: I like the idea of being able to copy a template into a stack and still refer to the object by its altID - so everything keeps working. The aim is not to have to rename anything in a script as this gets messy in a general case. But

Re: altID

2007-05-26 Thread Dick Kriesel
On 5/26/07 11:55 AM, Joe Lewis Wilkins [EMAIL PROTECTED] wrote: I admire in cleverness of all this, but the code is even worse to comprehend than assembly language. Seems to me we're going backwards. Can't we just keep things simple; like with put and get and meaningful names? Seems to me

Re: altID

2007-05-26 Thread Dick Kriesel
On 5/26/07 12:16 PM, David Bovill [EMAIL PROTECTED] wrote: the problem is you cannot use control id tAltID of group id - thats why it does not work That construct works for me. Here's a working example, derived from the first script I posted yesterday. on mouseUp create stack go to it

Re: Tricky Problem

2007-05-23 Thread Dick Kriesel
On 5/22/07 2:01 PM, Dave [EMAIL PROTECTED] wrote: What I really want is a way of tell if the mouseUp handler has been called by the user pressing the mouse or if it's via the send command. Any ideas? Hi, Dave. Another way uses the executionContexts, even though it's not supported or

to avoid making mistakes (was TARGET bug..please check)

2007-05-01 Thread Dick Kriesel
On 4/30/07 11:23 PM, Richard Gaskin [EMAIL PROTECTED] wrote: I got on this kick a while back about reducing the warnings in my apps, looking for ways to provide guidance to the user to avoid making mistakes in the first place. With regard to validation, this trajectory led me to a

Re: How do I get the object under the mouse when mouseRelease?

2007-04-30 Thread Dick Kriesel
month: On 3/19/07 3:38 AM, Dick Kriesel [EMAIL PROTECTED] wrote: Here's another technique for identifying the object at the mouseLoc. This technique is different because it works with no repeat loop, no checking the visible or the rect of any object, no formulas based on the mouseLoc

click outside Rev?

2007-04-27 Thread Dick Kriesel
I¹d like to make a Rev app that drives another app by sending it clicks. An example of such an app is a Help app that explains how to do something in another app, and offers a do-it-for-me button. I¹m using Mac OS X, hoping to drive a Windows app that¹s running in Parallels. Could someone

Re: Obtaining the size of a file

2007-04-21 Thread Dick Kriesel
On 4/21/07 1:03 AM, Bill Marriott [EMAIL PROTECTED] wrote: Another way to make quick work of the detailed files is to put them into an array: put the detailed files into foobar split foobar by return and comma then you can say, get item 1 of foobar[urlencode(myFileName)]

Re: dictionary question

2007-03-28 Thread Dick Kriesel
On 3/27/07 1:53 PM, Dick Kriesel [EMAIL PROTECTED] wrote: Unfortunately, wordcentral.com doesn't expose the search string in the url. When I viewed the page's source I didn't recognize how to build the url. http://www.wordcentral.com/cgi-bin/Search?foo* Note the wildcard, which wordnet

Re: Newbie Question

2007-03-28 Thread Dick Kriesel
On 3/28/07 12:49 AM, Simon HARPER [EMAIL PROTECTED] wrote: on mouseUp put the hilitedlines of field listCats into tLineList split tLineList by comma sort items of tLineList descending of each repeat for each element tLineNumber in tLineList delete line tLineNumber of field

Re: dictionary question

2007-03-27 Thread Dick Kriesel
On 3/27/07 11:47 AM, Jim Ault [EMAIL PROTECTED] wrote: Basically you get a URL that includes the word in the search string. Do a few site searches and copy the url that is in the browser, then build the same string in a repeat loop for each word. Unfortunately, wordcentral.com doesn't expose

Re: [TIP} co-sort variable 1 based on values in variable 2

2007-03-20 Thread Dick Kriesel
On 3/20/07 2:36 PM, Jim Ault [EMAIL PROTECTED] wrote: I could not find an easy way to get sort by each to handle this, unless it built a script local or global to hold the original 'x', so I just used an array. Hi, Jim. Here's a way: split varB by comma sort items of varA descending by

Re: [TIP} co-sort variable 1 based on values in variable 2

2007-03-20 Thread Dick Kriesel
On 3/20/07 6:35 PM, Jim Ault [EMAIL PROTECTED] wrote: Thanks! and this is going in my scrapbook. You're welcome, Jim. By the way, duplicates in your varB don't matter, so you can do without checking for them. -- Dick ___ use-revolution mailing

Re: Mouse messages while down

2007-03-19 Thread Dick Kriesel
On 3/18/07 12:12 AM, Sarah Reichelt [EMAIL PROTECTED] wrote: I'm now doing the politically correct mouseMove instead of using repeat while mouse is down. But it still leaves me having to check the location all the time to see whether it is inside one of my 400 buttons. It seems that the

Re: Mouse messages while down

2007-03-18 Thread Dick Kriesel
On 3/18/07 12:12 AM, Sarah Reichelt [EMAIL PROTECTED] wrote: snip But it still leaves me having to check the location all the time to see whether it is inside one of my 400 buttons. snip/ Hi, Sarah. You could build an array using points as keys, so that when you look up any x,y pair you get

Re: Mouse messages while down

2007-03-18 Thread Dick Kriesel
On 3/18/07 7:56 AM, Jerry Daniels [EMAIL PROTECTED] wrote: snip on glxInspectObject -- get long id of object, even if pointer is in title bar: put glxGetObjectBeneathPointer() into theObjectID edit the script of theObjectID end glxInspectObject snip/ Hi, Jerry. How does

Re: Simulated mouse messages

2007-03-06 Thread Dick Kriesel
Check the dictionary for send. send mouseUp to button 1 -- Dick On 3/6/07 9:32 PM, Brent Anderson [EMAIL PROTECTED] wrote: Hello. I'm working on simulating mouse messages and am hung up on how to simulate mouseDown, mouseStillDown, and mouseUp messages from script (specifically, network

Re: Pendingmessages

2007-03-02 Thread Dick Kriesel
On 3/2/07 2:32 PM, Andre Garzia [EMAIL PROTECTED] wrote: In case we had some nifty function, a cousin of the functiona 'variableNames' that could access all the current variables in memory and their context, we could then freeze the engine state to some container and restore it or bits of it

Re: like pass, but without ending the handler

2007-03-01 Thread Dick Kriesel
On 2/28/07 3:27 PM, J. Landman Gay [EMAIL PROTECTED] wrote: The important part is the wait time with messages, which allows user input to occur simultaneously. That will allow you to put in a stop button. But while wait with messages does allow the messages to happen, it does not allow them

like pass, but without ending the handler

2007-02-28 Thread Dick Kriesel
If you have a handler that needs to do something after letting the message proceed along the message path, here¹s a pithy way: call the params of the owner of me One example scenario involves a newGroup handler that needs its owner¹s more general handler to run before the more specific

QC Center and dictionary feature request?

2007-02-14 Thread Dick Kriesel
When I look up a term in the dictionary, I¹d like to see related bugs and enhancement requests, and their votes. If we could all do that, maybe more of us would vote. Maybe the increase in feedback would help RR. How hard would it be to link dictionary and Œzilla entries? -- Dick

Re: calling a remote function..

2007-01-19 Thread Dick Kriesel
On 1/19/07 7:50 AM, Chipp Walters [EMAIL PROTECTED] wrote: Ding ding. You win the prize. answer value(foo( q(param1) comma q(param2) ), btn bar) But note that if a param contains more than one line, the value function does not return the expected result. Ding dong. Try this script for

Re: A Single SetProp?

2007-01-19 Thread Dick Kriesel
On 1/19/07 5:16 PM, Scott Rossi [EMAIL PROTECTED] wrote: snip wondering if there is a way to trigger a single SetProp structure (that contains a switch statement) when setting *any* custom property, or do you have to use a separate SetProp structure for *each property* you want to monitor.

Re: private handlers in a public library

2006-12-08 Thread Dick Kriesel
On 12/6/06 10:59 PM, Dar Scott [EMAIL PROTECTED] wrote: I think your checking method is pretty clever and can be handy. Though the cost of a couple lines and a few microseconds might be much for small handlers, this might work OK for larger handlers. When microseconds don't matter, it can be

Re: private handlers in a public library

2006-12-07 Thread Dick Kriesel
On 12/7/06 10:37 AM, Dar Scott [EMAIL PROTECTED] wrote: On Dec 7, 2006, at 12:25 AM, Dick Kriesel wrote: You might be interested in feature request 1443 listed in Bugzilla. Zarro Boogs found. I wonder why an old bug number's data would disappear. It's a conspiracy! Actually

private handlers in a public library

2006-12-06 Thread Dick Kriesel
What are the best practices for hiding private handlers in a public library? I Googled 'private handler' site:lists.runrev.com and similar terms without finding the answer. If the topic's been covered and I missed it, please excuse me. Here's a technique that uses the executionContexts: on

Re: private handlers in a public library

2006-12-06 Thread Dick Kriesel
On 12/6/06 10:59 PM, Dar Scott [EMAIL PROTECTED] wrote: You might be interested in feature request 1443 listed in Bugzilla. Zarro Boogs found. I wonder why an old bug number's data would disappear. -- Dick ___ use-revolution mailing list

Re: Matchtext script results

2006-12-01 Thread Dick Kriesel
On 11/30/06 3:07 PM, J. Landman Gay [EMAIL PROTECTED] wrote: And that is what surprised me -- that no tinkering with arrays, or matchtext, or anything else is faster than the most straightforward Revolution syntax. At least that's true for your sample data. If the word list were very long,

Re: Fun Project: xTalk GUID Generator

2006-12-01 Thread Dick Kriesel
On 12/1/06 10:46 AM, Ken Ray [EMAIL PROTECTED] wrote: On 12/1/06 11:35 AM, Bill Marriott [EMAIL PROTECTED] wrote: And Rev's the milliseconds returns the total number of milliseconds since the start of the eon -- which is midnight GMT, January 1, 1970. Ticks is the same, but returns 1/60th

Re: Matchtext for multiple words

2006-11-29 Thread Dick Kriesel
On 11/29/06 1:39 PM, J. Landman Gay [EMAIL PROTECTED] wrote: I need a matchtext/regex that will tell me if all supplied words exist in a block of text, regardless of their order, and ignoring carriage returns. For example, see if all these words: dog dinosaur cat exist in this text:

Re: what is the method you use to save a specific field reference in a variable or custom property?

2006-09-12 Thread Dick Kriesel
On 9/12/06 7:04 PM, Ken Ray [EMAIL PROTECTED] wrote: I don't think there's a downside to always using do when you have a long ID as a reference, other than that it takes slightly longer to process because it needs to interpret it on the fly (which really only shows itself when you have it in

Re: Viewing the size of stack elements (AKA, where have all the bytes gone?)

2006-05-23 Thread Dick Kriesel
On 5/23/06 10:33 AM, Ben Rubinstein [EMAIL PROTECTED] wrote: Any suggestions, pointers, tools, warnings, etc gratefully received. When I want to find out how big an object is, I copy it, create a new stack, save it, paste into the new stack, save as some other name, and compare the file sizes.

Re: Custom Properties

2006-04-14 Thread Dick Kriesel
On 4/12/06 6:13 PM, Mark Wieder [EMAIL PROTECTED] wrote: Dan- Wednesday, April 12, 2006, 2:49:17 PM, you wrote: One important use of setProp in particular comes into play when you create a library that has values you don't want outside programs/users to change. You just set up a setProp

Re: Variable typing

2006-04-04 Thread Dick Kriesel
On 4/4/06 9:30 AM, Alex Tweedly [EMAIL PROTECTED] wrote: Of course, you still can't distinguish between a variable which is undefined and one which has been deliberately set to empty :-( Here's a technique based on what revvariablewatcher.rev does: Step 1: create a stack Step 2: create a

Re: OT: Important News

2006-04-02 Thread Dick Kriesel
On 4/2/06 12:50 PM, Kurt Kaufman [EMAIL PROTECTED] wrote: http://www.tidbits.com/tb-issues/TidBITS-823.html The important news has an important dateline. -- Dick ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url

Re: OS X System Crash using 2.7 build 192

2006-03-30 Thread Dick Kriesel
On 3/30/06 1:43 PM, Joe Brillhart [EMAIL PROTECTED] wrote: my entire desktop went blue (no finder!) That happened to me tonight, on quitting Rev. I have no guess what caused the crash. All I could do after waiting awhile was hold in the on/off button to restart the Mac. There seems to be no

Re: Get a handler from a script

2006-03-21 Thread Dick Kriesel
On 3/20/06 9:30 PM, Mark Wieder [EMAIL PROTECTED] wrote: The best solution I've come up with for removing block comments is put the script of SomeObject into tScript put token 1 to -1 of tScript into tScript This sounded really cool, but I can't get it to work. :( Really? What isn't

Re: Get a handler from a script

2006-03-21 Thread Dick Kriesel
On 3/21/06 2:37 AM, Alex Tweedly [EMAIL PROTECTED] wrote: I suspect you have a different idea for what handler 'a' will do - in fact, it *always ask the time. You suspected correctly, Alex. Thanks for finding another mistake. That example only shows that the list of tokens is insufficient to

Re: Get a handler from a script

2006-03-19 Thread Dick Kriesel
On 3/19/06 2:12 PM, Geoff Canyon [EMAIL PROTECTED] wrote: Checking the first word of each line is (I believe) certain, and is still reasonably fast (takes less than twice as long as the filter command in informal testing). Unfortunately for anyone attempting this task, this is a perfectly

Re: Get a handler from a script

2006-03-19 Thread Dick Kriesel
On 3/19/06 3:41 PM, Alex Tweedly [EMAIL PROTECTED] wrote: You should try that script on itself :-) The /* in the first 'offset' line, and the */ in the second 'offset' line are (incorrectly) recognized as a block comment, with fairly disastrous results. I did, and verified that it removed

Re: Get a handler from a script

2006-03-19 Thread Dick Kriesel
On 3/19/06 5:12 PM, Geoff Canyon [EMAIL PROTECTED] wrote: I feel like the harbinger of doom here (with Alex as my able partner in doomsaying) but: This would still be subject to failure if, anywhere in the script, /* or */ appeared _not_ as block comment delimiters, but as part of a

Re: Developer Annoyance #1

2006-03-17 Thread Dick Kriesel
On 3/16/06 10:32 PM, J. Landman Gay [EMAIL PROTECTED] wrote: Or there's a really ugly way too, but it's short: insert script of btn source into back put calc(varA,varB) into localResult remove script of btn source from back I know, I know...but it works. One person's ugly is

Re: Developer Annoyance #1

2006-03-17 Thread Dick Kriesel
On 3/17/06 12:09 AM, Arthur Urban [EMAIL PROTECTED] wrote: The problem with this solution is that varA and varB are not evaluated. Andre Garzia wrote: send calc VarA, VarB to btn source The dictionary entry for send says: Any parameters are evaluated before they are passed to the send

Re: Developer Annoyance #1

2006-03-17 Thread Dick Kriesel
On 3/17/06 12:47 AM, Arthur Urban [EMAIL PROTECTED] wrote: I'm sure it evaluates literals just fine, but it does not evaluate containers. This works here: on mouseUp put 1 into t send foo t,t+1 end mouseUp on foo ask the params end foo Do you have a counter-example? -- Dick

Re: Draw spokes on a wheel

2006-03-17 Thread Dick Kriesel
On 3/17/06 10:26 AM, Mark Talluto [EMAIL PROTECTED] wrote: I need a little help drawing spokes to a wheel. This is actually used in a vision test. I have an image here to help illustrate the madness. I am sure someone like Jim Ault is shaking his head right now.

Re: Draw spokes on a wheel

2006-03-17 Thread Dick Kriesel
On 3/17/06 2:24 PM, Mark Talluto [EMAIL PROTECTED] wrote: One things is for sure, I owe each of you a drink of your choice at the RevCon in Monterey this year. With positive reinforcement like that, I'll do even better: on mouseUp drawAstig 50,200,225,2 end mouseUp on drawAstig

Re: Mind mapping in Rev ?

2006-03-17 Thread Dick Kriesel
On 3/17/06 6:20 PM, Kresten Bjerg [EMAIL PROTECTED] wrote: Has anyone been experimenting with implementing elementary mind-mapping functions in Rev ? Yes, I have, although I'd have to emphasize elementary. A user creates graphic objects like ovals to represent concepts, and connects them

Re: Draw spokes on a wheel

2006-03-17 Thread Dick Kriesel
On 3/17/06 8:01 PM, Mark Talluto [EMAIL PROTECTED] wrote: I hope this means you are coming. Yes, as a fine southern gentleman I know said, God willin' and the creek don't rise. Thanks for taking another stab at this. You're welcome. You didn't note whether it worked for you. Did it?

Re: repeat repeat

2006-03-01 Thread Dick Kriesel
If speed matters, you could avoid nesting the loops. on mouseUp repeat with i = 1 to number of buttons put i into tArray[the label of button i] end repeat repeat for each item tSeatNo in field seatNo set the backgroundColor of button tArray[tSeatNo] to red end repeat end mouseUp

Re: [ANN] HOOT: Hacked Object Oriented Transcript

2006-02-28 Thread Dick Kriesel
On 2/28/06 12:41 AM, Geoff Canyon [EMAIL PROTECTED] wrote: To handle unplaced groups: getProp uRuggedID get the long id of the target if card is among the words of it then return (word 1 to 3 of it word -7 to -4 of it) return word 1 to 3 of it end uRuggedID getProp

Re: [ANN] HOOT: Hacked Object Oriented Transcript

2006-02-28 Thread Dick Kriesel
On 2/28/06 2:06 AM, Geoff Canyon [EMAIL PROTECTED] wrote: getProp uRuggedID get the long id of the target if word 1 of it is card then return word 1 to 3 of it if card is among the words of it then return (word 1 to 3 of it word -7 to -4 of it) return word 1 to 3 of it end

... how could one create a customized object ... ? (was something else)

2006-02-28 Thread Dick Kriesel
On 2/28/06 9:37 AM, Jonathan Lynch [EMAIL PROTECTED] wrote: A 3D object viewer probably would not work in transcript, because of the intensive processing required to render an image. So, how could one create a customized object of that sort? Jonathan's question in another thread deserves its

Re: [ANN] HOOT: Hacked Object Oriented Transcript

2006-02-27 Thread Dick Kriesel
the enclosed group a subclass of the group that contains it. Yeah, that's the idea! Thanks, Geoff. I'll try it out... -- Dick On 2/26/06 12:35 PM, Dick Kriesel [EMAIL PROTECTED] wrote: Another approach distinguishes between Rev objects and domain objects, and creates a Rev group for each

Re: [ANN] HOOT: Hacked Object Oriented Transcript

2006-02-27 Thread Dick Kriesel
On 2/27/06 11:30 AM, Scott Rossi [EMAIL PROTECTED] wrote: control id pID of this stack Actually, that's not what I meant. Using the long name or ID provides a full path to an object (including the card the object sits on, group its in, etc). I haven't used your notation above but using a

Re: [ANN] HOOT: Hacked Object Oriented Transcript

2006-02-27 Thread Dick Kriesel
On 2/27/06 6:02 PM, wouter [EMAIL PROTECTED] wrote: Rugged id's are a good idea but this handler will not do the trick. And it is difficult to deduce from this handler from where to where or which parts of the long id is what you call the rugged id. Thanks for catching my error, Wouter. I

templates and instances for custom controls (was: object scripts)

2006-02-27 Thread Dick Kriesel
On 2/26/06 11:41 AM, Geoff Canyon [EMAIL PROTECTED] wrote: The Object Oriented way to do this is to define a new group type: alertGroup, say. In the definition of the alertGroup, you include the original mouseUp handler. Then any time you need a group that has this behavior you declare it to

Re: [ANN] HOOT: Hacked Object Oriented Transcript

2006-02-27 Thread Dick Kriesel
On 2/27/06 6:37 PM, Dick Kriesel [EMAIL PROTECTED] wrote: A rugged id is a native long id stripped of any of group id clause. Close, but no cigar. (Why do people say that?) A rugged id is a native long id stripped of any of group id clauses and of stack clauses, intended for use within

Re: [ANN] HOOT: Hacked Object Oriented Transcript

2006-02-27 Thread Dick Kriesel
On 2/27/06 8:11 PM, Mark Wieder [EMAIL PROTECTED] wrote: For the purposes of putting parentclass handlers in a group, you shouldn't need to specify a particular card - there shouldn't be any ambiguity to resolve. I think. I agree: unplaced groups are good for single inheritance. -- Dick

Re: [ANN] HOOT: Hacked Object Oriented Transcript

2006-02-27 Thread Dick Kriesel
On 2/27/06 6:02 PM, wouter [EMAIL PROTECTED] wrote: Rugged id's are a good idea but this handler will not do the trick. And it is difficult to deduce from this handler from where to where or which parts of the long id is what you call the rugged id. For a stack, the rugged id is the long id.

Re: object scripts

2006-02-26 Thread Dick Kriesel
On 2/26/06 10:08 AM, Mark Wieder [EMAIL PROTECTED] wrote: Inheritance is actually fairly easy. The hard part is that scripts are associated with screen objects - you can't have objects that don't have screen representations. Another approach distinguishes between Rev objects and domain

Re: Transcript and Dot Notation

2006-02-25 Thread Dick Kriesel
Is there a Transcript implementation of dot syntax? Or how do non-dot people learn about the benefits of dots? If the dot folks could wrap the dots within Transcript handlers, maybe they could offer a dot library, like libDot. Or could a macro language do the trick? What do dots enable that

when Rev fails to send mouseEnter

2006-02-24 Thread Dick Kriesel
Here's a recipe to demonstrate that Rev usually fails to send mouseEnter to a nearly vertical line: Create a new mainstack. Paste the following four lines into the multiple lines message box. create graphic set the style of it to line set the points of it to 200,100cr208,300 set the

Re: deleting multiple controls all at once

2006-02-12 Thread Dick Kriesel
On 2/11/06 7:35 PM, Josh Mellicker [EMAIL PROTECTED] wrote: Is there a way to delete a bunch of controls whose names match a wildcard expression like thing.? or thing.?? all at once elegantly? example: thing.23 thing.46 thing.4 thing.142 delete all controls named thing. ??

bringToFrontWithinOwner (was: relayering groups within groups)

2006-02-03 Thread Dick Kriesel
Here's a handler that brings a control as close to the front as possible without affecting its owner. No control has its owner changed. All controls other than the one that moves keep their original sequence within their owners. No controls are copied or deleted, so no system messages like

Re: message hierarchy question

2006-01-05 Thread Dick Kriesel
On 1/4/06 11:37 PM, Mark Wieder [EMAIL PROTECTED] wrote: put the script of stack substack 1 of stack A into back I suppose you meant insert rather than put. Are you implementing polymorphism for functions and commands? Is only one substack appropriate at any point in time? Do you need to

Re: message hierarchy question

2006-01-05 Thread Dick Kriesel
On 1/5/06 12:07 PM, Mark Wieder [EMAIL PROTECTED] wrote: What I'm looking at for this case is not just polymorphism, but being able to overload functions whose default instance is in my mainstack and whose overloaded instance is in a separate (not sub-) stack. If the handlers in your main

Re: Debugging and the execution path

2005-12-21 Thread Dick Kriesel
On 12/21/05 9:30 AM, Jerry Daniels [EMAIL PROTECTED] wrote: Assuming you could have a calling path in your debug environs, what would it look like? IMHO, since objects of the same type can have the same name, and objects in different stacks can have the same abbreviated id, we need the calling

Re: Debugging and the execution path

2005-12-21 Thread Dick Kriesel
On 12/21/05 2:31 PM, Jerry Daniels [EMAIL PROTECTED] wrote: stack save test/button Button/handler mouseUp/line: 7 line 7 of handler mouseUp of button button of stack save test I guess you mean that each line in the context button's text would identify the object whose script is

  1   2   >