RE: Problem Calling Custom Card Props with the Same Name Using Switch

2009-12-01 Thread Gregory Lypny
Hello Jim and Jacqueline, Jim, I've no problem with your quick answer. The Rev tech people have resolved the issue (see below), giving a very good answer. It turns out that the problem arises when the variable that receives the value of the custom prop has the same name as the custom prop and

RE: Problem Calling Custom Card Props with the Same Name Using Switch

2009-12-01 Thread Jim Bufalini
Gregory Lypny wrote: Hello Jim and Jacqueline, Jim, I've no problem with your quick answer. The Rev tech people have resolved the issue (see below), giving a very good answer. It turns out that the problem arises when the variable that receives the value of the custom prop has the same

Re: Problem Calling Custom Card Props with the Same Name Using Switch

2009-12-01 Thread Kay C Lan
On Wed, Dec 2, 2009 at 5:06 AM, Jim Bufalini j...@visitrieve.com wrote: *put this is a line into line (the number of lines of fld MyField + 1) of fld MyField* You could use *put This is a line after...* but then you have to manage CRs. Nice!!! I've always managed the CRs as it's fairly

Re: Problem Calling Custom Card Props with the Same Name Using Switch

2009-11-30 Thread Jacques Hausser
Le 30 nov. 2009 à 03:25, J. Landman Gay a écrit : This fails for me too, but only if I keep the property name you assigned. If I change the property to cY it works as expected. I'm not sure why, but I'd guess the engine is using y for something. Since I always preface my custom properties

Re: Problem Calling Custom Card Props with the Same Name Using Switch

2009-11-30 Thread René Micout
Hello Jacques ! for the specific issue of temporary variables, I use the following names, which solves, I think, this type of problem: vtA, vtB, vtC, etc.. (pour variable tampon (ou temporaire) a, b, c, etc..) Bon souvenir de Paris René Le 30 nov. 2009 à 10:42, Jacques Hausser a écrit : Le

Re: Problem Calling Custom Card Props with the Same Name Using Switch

2009-11-30 Thread Jacques Hausser
Hi René, I know ! Nobody will have problems with multi-letter names : the CPropIWouldLikeToCallY or estimatedSlopeOfTheRegression would work fine, but how boring to type compared to the usual a ! And I didn't see anywhere in the docs a caveat against the use of one letter names... Jacques

RE: Problem Calling Custom Card Props with the Same Name Using Switch

2009-11-30 Thread Gregory Lypny
than Switch, and it is not limited to cards. I set props for two buttons in the same way and lost the value of the same-named prop for the second button. I haven't used Behaviours yet, but you can readily see how the problem could be pervasive there. Jim, I appreciate the fix you suggest

RE: Problem Calling Custom Card Props with the Same Name Using Switch

2009-11-30 Thread Gregory Lypny
The bug report for this bug is 8476. Gregory ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

RE: Problem Calling Custom Card Props with the Same Nam Using Switch

2009-11-30 Thread Jim Bufalini
cards and when a two-letter name, xV, is used. The problem is also there if you use an If control structure rather than Switch, and it is not limited to cards. I set props for two buttons in the same way and lost the value of the same-named prop for the second button. I haven't used Behaviours

RE: Problem Calling Custom Card Props with the Same Name Using Switch

2009-11-30 Thread Jim Bufalini
cards and when a two-letter name, xV, is used. The problem is also there if you use an If control structure rather than Switch, and it is not limited to cards. I set props for two buttons in the same way and lost the value of the same-named prop for the second button. I haven't used Behaviours

RE: Problem Calling Custom Card Props with the Same Name Using Switch

2009-11-30 Thread Jim Bufalini
cards and when a two-letter name, xV, is used. The problem is also there if you use an If control structure rather than Switch, and it is not limited to cards. I set props for two buttons in the same way and lost the value of the same-named prop for the second button. I haven't used Behaviours

Re: Problem Calling Custom Card Props with the Same Nam Using Switch

2009-11-30 Thread J. Landman Gay
Jim Bufalini wrote: Also use parenthesis to resolve a name like a card name first. I was wondering about this too. In my (successful) tests, I also renamed the cards. The word first is a reserved word, and first card is a valid card reference, so I was wondering if the engine was getting

Problem Calling Custom Card Props with the Same Name Using Switch

2009-11-29 Thread Gregory Lypny
custom props to each and another common button to show the values of each card's custom prop. The handler in the button that sets the custom props uses Switch and it looks like this. on mouseUp switch the short name of this card case First Card set the x of this card to 123

RE: Problem Calling Custom Card Props with the Same Name Using Switch

2009-11-29 Thread Jim Bufalini
Card and Second Card, a common button that assigns custom props to each and another common button to show the values of each card's custom prop. The handler in the button that sets the custom props uses Switch and it looks like this. on mouseUp switch the short name of this card

Re: Problem Calling Custom Card Props with the Same Name Using Switch

2009-11-29 Thread DunbarX
Confirmed. And it's odd, because the property value is there, at least right at the beginning: on mouseUp put put return y the y of this cardz the z of this card after msg --both properties are present at this stage put the short name of this card switch the short

Re: Problem Calling Custom Card Props with the Same Name Using Switch

2009-11-29 Thread J. Landman Gay
, and that y has a different value for each (123 or ABC). The button to show the values of the props also uses Switch. on mouseUp put the short name of this card switch the short name of this card case First Card put the x of this card into x put the y of this card into y

Re: The Conference. RE switch

2009-09-05 Thread stephen barncard
I really like to use switch for any logic more than a single if-then-else. Switch statements, due to their fall-through and default behaviors, can handle more logic *conditions* than if-then switch tInput case 0 case 1 put tInput after tOut case 2 put tInput after tOut case 3 put tInput

Switch or if

2009-05-01 Thread customerservice
Dear all , Which is faster in execution SWITCH OR IF ? Regards Camm ___ 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

Re: Switch or if

2009-05-01 Thread Richmond Mathewson
That's funny, I 'm sure this topic was discussed fairly exhaustively in April; the topic being raised exactly by you Camm on Monday April 20. So . . . what is the point of this? customerserv...@easyobdii.com wrote: Dear all , Which is faster in execution SWITCH OR IF ? Regards Camm

Re: Switch or if

2009-05-01 Thread Devin Asay
On May 1, 2009, at 11:34 AM, Richmond Mathewson wrote: That's funny, I 'm sure this topic was discussed fairly exhaustively in April; the topic being raised exactly by you Camm on Monday April 20. So . . . what is the point of this? I think there may be some sort of mail server hiccup

Re: Switch or if

2009-05-01 Thread Sarah Reichelt
I think there may be some sort of mail server hiccup going on today, because I just got several messages from on or about that date. Anybody else? Yes, I've got lots dated around April 15. Sarah ___ use-revolution mailing list

Switch or If

2009-04-23 Thread camm29
All , Which is faster in a loop ? SWITCH or IF Regards Camm ___ 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

Switch or If

2009-04-23 Thread camm29
All , Which is faster in a loop ? SWITCH or IF Regards Camm ___ 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

RE: Switch or If

2009-04-23 Thread Jim Bufalini
: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- boun...@lists.runrev.com] On Behalf Of cam...@tesco.net Sent: Thursday, April 23, 2009 12:03 AM To: use-revolution@lists.runrev.com Subject: Switch or If All , Which is faster in a loop ? SWITCH or IF Regards Camm

Re: Switch or If

2009-04-23 Thread Mark Smith
On 23 Apr 2009, at 11:02, cam...@tesco.net cam...@tesco.net wrote: All , Which is faster in a loop ? SWITCH or IF This is a little test I did. I get about 35ms for 'switch', about 20ms for 'if'. As Jim said though, I suspect it'll vary according to the kind and complexity

Re: Switch or If

2009-04-23 Thread Phil Davis
Mark Smith wrote: On 23 Apr 2009, at 11:02, cam...@tesco.net cam...@tesco.net wrote: All , Which is faster in a loop ? SWITCH or IF This is a little test I did. I get about 35ms for 'switch', about 20ms for 'if'. As Jim said though, I suspect it'll vary according to the kind and complexity

RE: Switch or If

2009-04-23 Thread Randall Reetz
I agree. Inside a real-time interaction repsonce loop (redrawing a graphic according to mouse loc) is where nested ifs alow minimal interpretor expence. Also, nested ifs demand a great understanding of the problem topology which may or may not be worth the effort. Switch statements dont

Re: Switch or If

2009-04-23 Thread Richard Gaskin
Phil Davis wrote: Unless you're building something where the small difference in speed is absolutely critical, I would seek to answer a different question: Which structure will be easier to understand and maintain in the future when I (or others) come back to it? Wise words. While I often

RE: Switch or If

2009-04-23 Thread Randall Reetz
: Switch or If I agree. Inside a real-time interaction repsonce loop (redrawing a graphic according to mouse loc) is where nested ifs alow minimal interpretor expence. Also, nested ifs demand a great understanding of the problem topology which may or may not be worth the effort. Switch statements

Re: Switch or If

2009-04-23 Thread stephen barncard
And one can't turn that foolishness off? I hate predictive text. - Stephen Barncard San Francisco http://barncard.com 2009/4/23 Randall Reetz rand...@randallreetz.com My phone uses the special Microsoft Tourette's word prediction algorithm. In my previous post, I

Re: Switch or If

2009-04-23 Thread Richmond Mathewson
to understand with if . . . then loops rather than 'switch'; I never use the latter as on coming back to it later my logic gets befuddled. sincerely, Richmond Mathewson. Richard Gaskin wrote: Phil Davis wrote: Unless you're building something where the small difference in speed is absolutely critical

RE: Switch or If

2009-04-23 Thread Randall Reetz
:50 AM Subject: Re: Switch or If And one can't turn that foolishness off? I hate predictive text. - Stephen Barncard San Francisco http://barncard.com 2009/4/23 Randall Reetz rand...@randallreetz.com My phone uses the special Microsoft Tourette's word prediction

Re: Switch or If

2009-04-23 Thread Kay C Lan
You may wish to look back at these two threads, lots of benchmarking, sorry I haven't figured out how to create links to old threads :-( Subject: if statements vs case Date: 27 feb 07 From: Hershel Fisch Subject: switch case question Date: 10/22/06 From: Mark Swindell Basically what has been

Re: Import temperature and switch on/off the heater with Rev

2009-02-08 Thread Bob Earp
...@ahsoftware.netSubject: Re: Import temperature and switch on/off the heater with RevTo: How to use Revolution use-revolution@lists.runrev.comMessage-ID: 146745232640.20090204143...@ahsoftware.netContent-Type: text/plain; charset=us-asciiBob-Interesting - I didn't think portmon worked with usb ports

Re: Import temperature and switch on/off the heater with Rev

2009-02-05 Thread Judy Perry
No, just kidding. On Wed, Feb 4, 2009 at 7:10 AM, dunb...@aol.com wrote: Judy, you aren't really upset? :-( Craig Newman ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: Import temperature and switch on/off the heater with Rev

2009-02-04 Thread René Micout
application to import the temperature from a thermometer and switch on/off the heater. I found documentation for an affordable external device in internet : http://www.audon.co.uk/io8g.html It says Compatible with Profilab DAQ Software. and Can Utilize a Simple Terminal Emulator to Control

Re: Import temperature and switch on/off the heater with Rev

2009-02-04 Thread -= JB =-
application to control the temperature of my room. So, I need my application to import the temperature from a thermometer and switch on/off the heater. I found documentation for an affordable external device in internet : http://www.audon.co.uk/io8g.html It says Compatible with Profilab DAQ

Re: Import temperature and switch on/off the heater with Rev

2009-02-04 Thread mazzapa...@libero.it
Thank you all of you for the insights about serial interfaces. I will make some test and I will let you know. Now I am more confident to carry on my project. Best regards, Paolo ___ use-revolution mailing list use-revolution@lists.runrev.com

Re: Import temperature and switch on/off the heater with Rev

2009-02-04 Thread Judy Perry
Yeah, so I hear ;-) I was just on ChatRev with BvG the other day and referenced something else, and he immediately wrote back and said, Now I know how old you are! :-/ I'm not certain but I don't think it was a compliment! @;-) Regards, Judy http://revined.blogspot.com On Tue, Feb 3, 2009 at

Re: Import temperature and switch on/off the heater with Rev

2009-02-04 Thread DunbarX
In a message dated 2/4/09 8:36:07 AM, katheryn.swynf...@gmail.com writes: I'm not certain but I don't think it was a compliment! Of course it was a compliment. We have to stick together, you know. It is always possible to connect wires to a computer.The trick is to have fun doing so. The

Re: Import temperature and switch on/off the heater with Rev

2009-02-04 Thread DunbarX
In a message dated 2/4/09 12:56:19 AM, stephenrevoluti...@barncard.com writes: This company mentions apple drivers and Runtime Rev. They make USB I/O Boxes -- and even some stuff that works with fischertechnik kits.They've been around for a while.

Re: Import temperature and switch on/off the heater with Rev

2009-02-04 Thread Bob Earp
/sysinternals/bb896644.aspx) with good success to monitor port activity, but unfortunately it's only Windoze based.best, Bob...Message: 19Date: Tue, 3 Feb 2009 16:43:04 -0800From: Mark Wieder mwie...@ahsoftware.netSubject: Re: Import temperature and switch on/off the heater with RevTo: How to use

Re: Import temperature and switch on/off the heater with Rev

2009-02-04 Thread Mark Wieder
Bob- Interesting - I didn't think portmon worked with usb ports. -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: Import temperature and switch on/off the heater with Rev

2009-02-04 Thread DunbarX
In a message dated 2/4/09 4:56:24 PM, rje...@hotmail.com writes: Mark,Thanks for the feedback.  The Arduino looks a very cool device and as soon as I can escape form other tasks I'll lock myself away and play with it. The Service USP Plus looks much easier to use (Rev support) and has

Import temperature and switch on/off the heater with Rev

2009-02-03 Thread paolo
Dear friends, I had this crazy idea: I would like to create a Rev application to control the temperature of my room. So, I need my application to import the temperature from a thermometer and switch on/off the heater. I found documentation for an affordable external device in internet

Re: Import temperature and switch on/off the heater with Rev

2009-02-03 Thread Thomas McGrath III
Paolo, I'm not familiar with this device but the answer to 2 is yes for sure, I do it here all the time. I also control my telescope, TV, Cable, Robosapien Robot, lights, etc. If the device can handle serial commands then that is the easiest way. I am looking into that device now... more

Re: Import temperature and switch on/off the heater with Rev

2009-02-03 Thread Thomas McGrath III
Paolo, The Macintosh drivers for this device are the standard FTDIUSB Serial Drivers which emulate a serial device over USB so the good news is that you should be able to connect to the virtual port from Revolution on the mac. I am not familiar with the drivers being used for windows

Re: Import temperature and switch on/off the heater with Rev

2009-02-03 Thread camm29
Regards Camm paolo mazzapa...@libero.it wrote: Dear friends, I had this crazy idea: I would like to create a Rev application to control the temperature of my room. So, I need my application to import the temperature from a thermometer and switch on/off the heater. I found

Re: Import temperature and switch on/off the heater with Rev

2009-02-03 Thread stephen barncard
I'm pretty sure the KEYSPAN interface and software works with rev the last time I tried it. Just checked. They're now owned by Tripp-Lite.http://www.tripplite.com/EN/products/model.cfm?txtSeriesID=518txtModelID=3914 sqb 2009/2/3 Bob Earp rje...@hotmail.com Paolo, to my knowledge there is no

Re: Import temperature and switch on/off the heater with Rev

2009-02-03 Thread Bob Earp
Paolo, to my knowledge there is no capability within Rev of communicating with a USB port, although I think Chuck had been working on something along time ago.I've been wanting to use a Rev project as an interface to the aircraft simulators we build and have been working on getting Rev on OS

Re: Import temperature and switch on/off the heater with Rev

2009-02-03 Thread Mark Wieder
Bob- The Arduino works well with rev. If you're using Windows and need to do some usb protocol troubleshooting, there's a great tool available at http://www.aggsoft.com/usb-port-monitor.htm Unfortunately they don't have an osx version, and I haven't found anything else that does this sort of

Re: Import temperature and switch on/off the heater with Rev

2009-02-03 Thread Thomas McGrath III
Yes the HIGH SPEED serial adapter will work. I use it here all the time. The other serial adapters were not high speed and caused problems. I use the 19HS model that Stephen listed. I have also used straight USB devices that make use of the standard FTDIUSB Serial Drivers with great

Re: Import temperature and switch on/off the heater with Rev

2009-02-03 Thread Judy Perry
application to import the temperature from a thermometer and switch on/off the heater. I found documentation for an affordable external device in internet : http://www.audon.co.uk/io8g.html It says Compatible with Profilab DAQ Software. and Can Utilize a Simple Terminal Emulator to Control All

Re: Import temperature and switch on/off the heater with Rev

2009-02-03 Thread dunbarx
I did those towers. 1998. Still working... Craig newman On Feb 3, 2009, at 11:01:17 PM, Judy Perry katheryn.swynf...@gmail.com wrote: From: Judy Perry katheryn.swynf...@gmail.com Subject:Re: Import temperature and switch on/off the heater with Rev Date: February 3, 2009 11:01:17 PM EST

Re: Import temperature and switch on/off the heater with Rev

2009-02-03 Thread Judy Perry
3, 2009, at 11:01:17 PM, Judy Perry katheryn.swynf...@gmail.com wrote: From: Judy Perry katheryn.swynf...@gmail.com Subject:Re: Import temperature and switch on/off the heater with Rev Date: February 3, 2009 11:01:17 PM EST To: How to use Revolution use-revolution@lists.runrev.com

Re: Import temperature and switch on/off the heater with Rev

2009-02-03 Thread dunbarx
Judy. Makes you one of the oldsters, you know. The serial gadget was by someone else.  I can check when I get to my office.  Beehive was the ADB guys All three developers are out of the business.  There should be someone willing to take up the calling with Rev and USB, though. Someone smart

Re: Import temperature and switch on/off the heater with Rev

2009-02-03 Thread stephen barncard
This company mentions apple drivers and Runtime Rev. They make USB I/O Boxes -- and even some stuff that works with fischertechnik kits.They've been around for a while. http://www.bkohg.com/serviceusbplus_e.html The CD-ROM contains the Service-USB driver for Macintosh MacOS X, QuickTime films

Re: Import temperature and switch on/off the heater with Rev

2009-02-03 Thread -= JB =-
. -=JB=- On Feb 3, 2009, at 5:41 AM, paolo wrote: Dear friends, I had this crazy idea: I would like to create a Rev application to control the temperature of my room. So, I need my application to import the temperature from a thermometer and switch on/off the heater. I found documentation

Re: Rev and joystick or switch

2008-07-25 Thread Randall Lee Reetz
@lists.runrev.com Sent: 7/24/2008 12:29 PM Subject: Rev and joystick or switch I want to use a switch (lever style accessibility gadget) or a very simple joystick to enable users to respond to images by pushing away or pulling towards themselves. It needs to work on both Mac PC. Fewer buttons the better

Rev and joystick or switch

2008-07-24 Thread David Glasgow
I want to use a switch (lever style accessibility gadget) or a very simple joystick to enable users to respond to images by pushing away or pulling towards themselves. It needs to work on both Mac PC. Fewer buttons the better, and no flash rumbling or stuff like that. Any suggestions

RE: Rev and joystick or switch

2008-07-24 Thread Randall Reetz
/24/2008 12:29 PM Subject: Rev and joystick or switch I want to use a switch (lever style accessibility gadget) or a very simple joystick to enable users to respond to images by pushing away or pulling towards themselves. It needs to work on both Mac PC. Fewer buttons the better

RE: Rev and joystick or switch

2008-07-24 Thread Randall Reetz
and joystick or switch I want to use a switch (lever style accessibility gadget) or a very simple joystick to enable users to respond to images by pushing away or pulling towards themselves. It needs to work on both Mac PC. Fewer buttons the better, and no flash rumbling or stuff like

RE: Rev and joystick or switch

2008-07-24 Thread Randall Reetz
and joystick or switch Or, if the joystick is controlling the mouse, then you just use standard mouse events. No need for an intermediate event generator like usboverdrive. -Original Message- From: David Glasgow [EMAIL PROTECTED] To: use-revolution@lists.runrev.com Sent: 7/24/2008 12:29 PM

Re: Switch statements within Switch statements

2008-07-10 Thread Charles Szasz
Kay, Thanks very much for your suggestions! I appreciate you taking time to answer my question. Kay C Lan wrote: on menuPick pChosen switch pChosen case 1 Choice --avoid statements here to keep switch statement compact handler1Choice break case 2 Choice

Switch statements within Switch statements

2008-07-09 Thread Charles Szasz
I have an option Menu that show various arrays of buttons depending on which menu item is selected. Is it possible to have switch statements for the buttons within switch statements for each menu item? I checked the Rev-User archives and could not find any examples of such an arrangement

Re: Switch statements within Switch statements

2008-07-09 Thread Mark Smith
You can certainly nest switch statements without problem - you'll end up with some very long handlers! Best, Mark On 10 Jul 2008, at 03:15, Charles Szasz wrote: I have an option Menu that show various arrays of buttons depending on which menu item is selected. Is it possible to have

Re: Switch statements within Switch statements

2008-07-09 Thread Kay C Lan
On Thu, Jul 10, 2008 at 10:15 AM, Charles Szasz [EMAIL PROTECTED] wrote: I have an option Menu that show various arrays of buttons depending on which menu item is selected. Is it possible to have switch statements for the buttons within switch statements for each menu item? If I understand

Exit Switch or break switch question

2008-03-20 Thread Thomas McGrath III
If I want to leave a switch statement after successfully matching a case is it better to break and rund to the end without a default statement or to exit the switch from that case? ComboBox on menuPick pChosen switch pChosen case Home -- code goes here

Re: Exit Switch or break switch question

2008-03-20 Thread Eric Chatonet
Hi Tom, Break skips the rest of the current switch structure and goes to the statement following the end switch. Only four chars to write ;-) Le 20 mars 08 à 16:06, Thomas McGrath III a écrit : on menuPick pChosen switch pChosen case Home -- code goes here

Re: Exit Switch or break switch question

2008-03-20 Thread len-morgan
I've always used the second example you had. Sometimes it can get a little harder to debug (and less clear for someone else reading your code) if you have multiple exit points. In the end, I think they both accomplish the same thing. len morgan If I want to leave a switch statement after

Re: Exit Switch or break switch question

2008-03-20 Thread Thomas McGrath III
of the possibility of matching more than one method and in hitting the default option. I was thinking that the exit switch ensured that we were done looking and to stop after the first found item. This would then skip any other matches. But in a ComboBox there should/can be only one choice

Re: Exit Switch or break switch question

2008-03-20 Thread Thomas McGrath III
Hi Len, Multiple exit points seems like a good point for clarity unless maybe the switch is very very long then you would know if one was found it would be the absolute end of the script instead of the possibility of it finding another match as well later on in the script. However

Re: Exit Switch or break switch question

2008-03-20 Thread Eric Chatonet
to consider. I was thinking that break was important because of the possibility of matching more than one method and in hitting the default option. I was thinking that the exit switch ensured that we were done looking and to stop after the first found item. This would then skip any other matches

Re: Exit Switch or break switch question

2008-03-20 Thread len-morgan
If I'm not mistaken (and I frequently am), isn't there an option on comboboxes to allow multi-line selections? Or is that just the option menu? len morgan Hi Len, Multiple exit points seems like a good point for clarity unless maybe the switch is very very long then you would know if one

Re: Exit Switch or break switch question

2008-03-20 Thread Thomas McGrath III
Eric, Thanks, I agree with your preference here and will stick to the break for this button. And, Yes I really like the flexibility of the switch structure. Thanks again, I really appreciate your feedback on this. Tom McGrath On Mar 20, 2008, at 11:33 AM, Eric Chatonet wrote: Hello Tom

Re: Exit Switch or break switch question

2008-03-20 Thread Mark Wieder
Tom- If I want to leave a switch statement after successfully matching a case is it better to break and rund to the end without a default statement or to exit the switch from that case? Yikes! I had no idea the compiler would accept exit switch! I'm sure it compiles it as an alias

Re: Exit Switch or break switch question

2008-03-20 Thread Mark Wieder
Eric- Break skips the rest of the current switch structure and goes to the statement following the end switch. Only four chars to write ;-) Which four? g -- Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution

Re: Exit Switch or break switch question

2008-03-20 Thread Eric Chatonet
Hello Mark, Le 20 mars 08 à 19:19, Mark Wieder a écrit : Eric- Break skips the rest of the current switch structure and goes to the statement following the end switch. Only four chars to write ;-) Which four? g -- Mark Wieder LOL and LOL :-) Probably in French... I have so much progresses

Re: Exit Switch or break switch question

2008-03-20 Thread Stephen Barncard
I've used exit switch myself... then 'cleaned it up' later... for no reason... but it works. Tom- If I want to leave a switch statement after successfully matching a case is it better to break and rund to the end without a default statement or to exit the switch from that case

Re: Exit Switch or break switch question

2008-03-20 Thread Thomas McGrath III
Mark, I saw it in a sample stack and have used it since. grin So, You're saying Break is the way to go. period. All four characters of it! Thanks Tom On Mar 20, 2008, at 2:15 PM, Mark Wieder wrote: Tom- If I want to leave a switch statement after successfully matching a case

Re: Exit Switch or break switch question

2008-03-20 Thread Thomas McGrath III
? Or is that just the option menu? len morgan Hi Len, Multiple exit points seems like a good point for clarity unless maybe the switch is very very long then you would know if one was found it would be the absolute end of the script instead of the possibility of it finding another match as well later

How to switch of preview in menubar on MacOS

2007-08-24 Thread Reinhold Venzl-Schubert
Hi! I selected Preview in Menu Bar, closed the Menu Builder and than I cannot switch back to the original Rev Menubar. The only way I found is to close Rev completely and restart it again. Is there any smarter way to switch back the Rev Menubar? Thanks Reinhold

Re: How to switch of preview in menubar on MacOS

2007-08-24 Thread Ian Wood
It should automatically swap back to the normal bar as soon as you swap back into edit mode. Ian On 24 Aug 2007, at 08:06, Reinhold Venzl-Schubert wrote: Hi! I selected Preview in Menu Bar, closed the Menu Builder and than I cannot switch back to the original Rev Menubar. The only way I

Re: How to switch of preview in menubar on MacOS

2007-08-24 Thread Reinhold Venzl-Schubert
: Hi! I selected Preview in Menu Bar, closed the Menu Builder and than I cannot switch back to the original Rev Menubar. The only way I found is to close Rev completely and restart it again. Is there any smarter way to switch back the Rev Menubar? Thanks Reinhold

Switch Statement

2007-07-12 Thread David
I use the switch statement a lot - but only for basic case tests and have not been able to get: If the caseValue is equal to the switchExpression, or the caseCondition evaluates to true working. Here is an example that I just changed from if then else - whats wrong with it: switch

Re: Switch Statement

2007-07-12 Thread Eric Chatonet
Hi David, If you specify a variable just after the switch statement, each case value refers to this variable. So, in your case, try: switch -- note there is nothing more here ;-) case mainChoice = Go to script object break case (mainChoice is empty

Re: Switch Statement

2007-07-12 Thread Rob Cozens
Hi David, I use the switch statement a lot - but only for basic case tests and have not been able to get: If the caseValue is equal to the switchExpression, or the caseCondition evaluates to true Don't forget that switch logic falls through from case to case if there is no break

Re: Switch Statement

2007-07-12 Thread Mark Wieder
Eric- switch -- note there is nothing more here ;-) ...and I believe that form of the switch statement with no argument may be unique to Transcript. I do use it to handle all sorts of corner conditions that would otherwise result in really ugly code, but I have to twist my head around

Re: Switch Statement

2007-07-12 Thread David Bovill
to definitions explaining the terms helps - still could do with some improvement: http://handlers.rev-co.de/wiki/switch ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Switch Statement

2007-07-12 Thread Rob Cozens
Mark, et al: I believe that form of the switch statement with no argument may be unique to Transcript. I do use it to handle all sorts of corner conditions that would otherwise result in really ugly code, but I have to twist my head around it each time, That form of switch introduces

Re: switch - case works different on Win-Mac !?

2007-07-04 Thread Dave
Hi, As a test, do this: set the cpTest of this stack to empty switch (tTarget) case btnBildKopieren put the cpTest of this stack into myTemp put tTarget cr after myTemp set the cpTest of this stack to myTemp break -- copy the above code for each case. end switch put the cpTest

AW: switch - case works different on Win-Mac !?

2007-07-04 Thread Tiemo Hollmann TB
Good idea, thanks Dave -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Dave Gesendet: Mittwoch, 4. Juli 2007 12:48 An: How to use Revolution Betreff: Re: switch - case works different on Win-Mac !? Hi, As a test, do this: set the cpTest

switch - case works different on Win-Mac !?

2007-07-03 Thread Tiemo Hollmann TB
Hello all, I am struggeling with a mysterious problem, where a mac standalone calls different handlers as a win standalone in a switch structure, build on Win with 2.8.1. I have one big switch structure on stack level to handle all button ups. It looks like this, nothing sophisticated: switch

Re: switch - case works different on Win-Mac !?

2007-07-03 Thread Ken Ray
On Tue, 3 Jul 2007 18:47:51 +0200, Tiemo Hollmann TB wrote: I am struggeling with a mysterious problem, where a mac standalone calls different handlers as a win standalone in a switch structure, build on Win with 2.8.1. I have one big switch structure on stack level to handle all button ups

AW: switch - case works different on Win-Mac !?

2007-07-03 Thread Tiemo Hollmann TB
-Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Ken Ray Gesendet: Dienstag, 3. Juli 2007 19:21 An: How to use Revolution Betreff: Re: switch - case works different on Win-Mac !? On Tue, 3 Jul 2007 18:47:51 +0200, Tiemo Hollmann TB wrote: I am

[OT] The switch of perception

2007-06-10 Thread Bob Warren
Some of you may have had the interest to read an article I wrote which can be found at: http://www.bobsite.org/brazil/ . Early in the article, there is a classical design from Gestalt Psychology (the psychology of perception) that can be seen either as a nice young woman or as an ugly old

[OT] The switch of perception - some immediate patches

2007-06-10 Thread Bob Warren
1. I should have said that care in both reading AND WRITING is necessary. 2. For an ugly old woman interpretation of what I said, the whole register of what I was saying needs to be changed: i.e. what is really a proposal for the future needs to be misinterpreted as a description of the

Re: [OT] The switch of perception

2007-06-10 Thread Luis
On 10 Jun 2007, at 9:40, Bob Warren wrote: Sorry, I realize this is not the place to discuss (even relevant) psychology really, but I was disappointed by what happened. Bob I wouldn't be. You have evolved/moved forward. That's a gain in my books. Cheers, Luis.

Re: [OT] The switch of perception

2007-06-10 Thread Bob Warren
n 10 Jun 2007, at 9:40, Bob Warren wrote: Sorry, I realize this is not the place to discuss (even relevant) psychology really, but I was disappointed by what happened. Bob Luis wrote: I wouldn't be. You have evolved/moved forward. That's a gain in my books. Cheers, Luis.

Re: switch case question

2006-11-05 Thread Kay C Lan
On 11/5/06, Dar Scott [EMAIL PROTECTED] wrote: The 'switch x' seems to convert x to a string and the 'case y' seems to convert y to a string, and then comparisons are made. Excellent Detective work Dar. It also reinforces a habit I'm trying to develop when writing switch statements

  1   2   3   >