current handler(s)
I use the wait with messages command frequently. Is there a way to determine which handler(s) are currently executing and/or unfinished? Whereas the waitdepth function returns the number of currently paused handlers, what about their names? ___ 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
RevRecordVideo- multiple instances within an app?
Is there anyway that a I can creat a stack that captures from 2 webcams concurrently? I need to know this ASAP for a project I am working on... Thanks in advance Jon ___ 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
Read from socket without callback message
Hi, I can't get this form of the read command to work. Read from socket rsocket until eom with callbackmsg works fine, but when I issue read from socket rsocket until eom, the socket always times out and leaves the variable 'it' empty. I'm trying for the documented functionality: the handler pauses while reading and continues once the eom is reached, with 'it' holding the contents of the read. Is there a trick to this? Thanks, Jon ___ 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
cscreen shell command
Hi, Would somebody be kind enough to send me a copy of cscreen. Apparently, the authors site is down for an indefinite period of time. Thanks in advance, Jon -- ___ 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
running handlers
Is there a way to find out the names of all handlers currently running, that is, those that have started but not yet finished? ___ 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
Windows standalone application to foreground upon un-minimizing?
Hello, When I minimize a standalone application for Win32 made with Rev, then click its button in the task bar at the bottom of the screen, my application's window is drawn behind other apps that are currently open. I've never observed this behavior before with mainstream Windows apps as the intent of un-minimizing is obviously to bring the app to the foreground, on top of the others. Does anyone know how to combat this? Thanks, Jon ___ 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
Windows standalone application to foreground upon un-minimizing?
Hello, When I minimize a standalone application for Win32 made with Rev, then click its button in the task bar at the bottom of the screen, my application's window is drawn behind other apps that are currently open. I've never observed this behavior before with mainstream Windows apps as the intent of un-minimizing is obviously to bring the app to the foreground, on top of the others. Does anyone know how to combat this? Thanks, Jon ___ 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: Problems building Mac OSX standalone (mostly resolved)
Peter, thanks, you were right. I needed to add several files to the location you wrote about, and now things seem dandy! One final puzzler: my custom icon (.icns) file is placed in the package at contents/resources/revolution.icns. When I launch the app, my custom icon appears nicely in the Dock. But it is still not used for the desktop icon. How do I get that to happen? Thanks again! Jon Message: 11 Date: Fri, 02 Jun 2006 15:54:25 -0500 From: Peter T. Evensen [EMAIL PROTECTED] Subject: Re: Problems building Mac OSX standalone To: How to use Revolution use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii; format=flowed What version of Revolution are you using? I'm not sure, but I think substacks (if they are broken out) might be bundled in the .app folder. Ctrl-click on the app and choose Show Package Contents and look under Contents/MacOS/ At 03:42 PM 6/2/2006, you wrote: Hi, After many months of successfully making Windows standalones from my OSX Tiger development machine, I tried building an OSX app today. To my chagrin, the process was futile. Although Rev claims to have saved the standalone successfully, the first bad sign is that when I dismiss the dialog to that effect, Rev immediately crashes. Then, examining the standalone, I see that Rev has not obeyed my command to create a separate stack file from each substack...in fact it's a single file. The new folder to contain the stack files is not created either. The app launches but doesn't work, as I would imagine since none of the files are where they are supposed to be. Finally, the app doesn't feature the icon I assigned in the standalone preferences, but rather the generic application icon. Help, anyone? Thanks, Jon ___ 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 Peter T. Evensen http://www.PetersRoadToHealth.com 314-629-5248 or 888-682-4588 ___ 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
Problems building Mac OSX standalone
Hi, After many months of successfully making Windows standalones from my OSX Tiger development machine, I tried building an OSX app today. To my chagrin, the process was futile. Although Rev claims to have saved the standalone successfully, the first bad sign is that when I dismiss the dialog to that effect, Rev immediately crashes. Then, examining the standalone, I see that Rev has not obeyed my command to create a separate stack file from each substack...in fact it's a single file. The new folder to contain the stack files is not created either. The app launches but doesn't work, as I would imagine since none of the files are where they are supposed to be. Finally, the app doesn't feature the icon I assigned in the standalone preferences, but rather the generic application icon. Help, anyone? Thanks, Jon ___ 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
Rev and multiple processors on OSX
Hello, Does Rev take advantage of the G5 dual architecture? The G5 quad? The Intel dual? What would be the fastest stable platform from which to run a Rev server application using OSX? Thanks, Jon ___ 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
Save stacks periodically to avoid crashes?
Hi, I've been using Rev for about a year. I'm sure it won't shock most of you to hear that periodically Rev just seems tired and crashes. Now I am sure that coding glitches are sometimes at fault, but generally speaking I think Rev (esp. 2.7) has stability issues. Here's the thing, though: it seems that if I am saving the stack periodically, which I would tend to do to avoid losing data in a crash, the program actually crashes less. It's as if saving has some benefit to memory management or who-knows-what-else in the engine. It's like a refresh function. Has anyone else observed this? Is there a rationale? Would it be smart to have a commercial application save its stacks regularly, not only to store user changes, but simply to confer stability? Jon ___ 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: Zoom/maximize box
Sarah, your suggestion to use the parameters of the resizeStack message works perfectly. Indeed, I was using the stack's properties before they were updated. Thanks for the help, that one was driving me crazy! Jon ___ 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
Zoom/maximize box
Hi all, In my app I manipulate screen elements when the user resizes the window. For scaling Rev objects, the Geometry manager works well. I do intercept and pass the resizeStack message to do a couple of things, for example, reset the tabstops in a field, and redraw the altBrowser pane. I use liveResizing simply out of personal preference. It all works! Except...when I click that darn zoom box. On both Mac and Win platforms, this causes my resizeStack handlers to fail. The Geometry manager works, and I can see in the Message Watcher that resizeStack is being sent, but for some reason there is no action. When I click the box again to toggle back to the old size, BOOM, the items are redrawn too big, reflecting the prior window size. The minute I grab and drag the resize area in the lower right of the window, everything snaps back to normal. So, what am I missing? Is there a message sent or some other way to know specifically when the zoom box has been clicked? Thanks, Jon ___ 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
Truncating text with vGrid property
The Rev documentation states that If the vgrid property is true, Revolution draws a vertical line at each tab stop position in the field. The lines are drawn in the field's borderColor. This property is useful for fields that are used like a spreadsheet, with each tab stop marking a column. Any text in a column is truncated when it reaches the right edge of the column. To show the entire contents of the column, drag over the text to select it. If text at the end of a line does not have a tab following it--that is, if it's the last column in the field--it is not truncated. If the field's tabStops property is set to empty, the vgrid lines are drawn every 32 pixels, but the text is not truncated to individual cells. However, despite having tabstops set, vGrid set to true, and seeing the actual vertical lines drawn just fine, I observe a different behavior with the text on both Mac OSX and Win32 platforms. Specifically, the text is NOT truncated, but simply continues to be rendered in addition to (overalpping) the text in the adjacent columns, creating an extremely messy presentation. Does anyone have any thoughts on how to produce the documented behavior? Thanks, Jon ___ 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
Standalones, externals, file paths in 2.7
Hi, I decided to make the leap to 2.7 and have found it a little depressing. Thanks to Jacqueline for the answer on the image library 2.6 -- 2.7, but I'm curious as to how in the world I was going to figure that out? Why didn't the installer just move or copy the library to its new home? On a similar note: I'm using OS X to build standalones for Mac and Win32. I use a small splash screen stack as the app as recommended by many. I've been really careful to handle all the nuances/differences in x-platform filepath structure in scripts, and the process has been working for months through countless new builds. Now, first, when I save as standalone for Win32 under 2.7, out of nowhere comes an Externals folder in the same directory as the exe. It's empty, but...I do use the altBrowser plugin and have carefully assigned the location of its externals in another location. When I launch the exe, the splash screen shows and then fails to go anywhere. Two possible problems, I think: first, there is a change in the methodology used to construct filepaths for Win in 2.7, or...this Externals folder wants to house altBrowser and that is somehow causing a problem. Any thoughts? I do not develop on Win so I'm a little stuck. Can someone point me in the direction of any documentation on changes in the standalone settings or file path construction? I'm a little frazzled with my app breaking at this point! Thanks, Jon ___ 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
Custom image library 2.6 - 2.7
Hi, For the life of me I can't figure out how to transfer an image library from 2.6.1 to 2.7. Before there was a /save/usericons directory into which one could transfer the rev stack containing the images. But I am lost on where to put this now, or what to do. Sorry if I missed this somewhere. Thanks, Jon ___ 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: Rev performance: help! (solved)
Hi, I'd like to say thanks to Dave Cragg for helping me solve this issue...and perhaps others might run into this too. My problem was actually caused by having a button's filename property set to a URL which was no longer available. Unfortunately there was no obvious error message that arose from Rev's persistent efforts to load the image, apparently using libURL. I will concur that it did appear to me that the ulTickleMe's were arriving more than once a second during the periods where the program was frozen the hardest. Regardless, once I removed the offending reference, Rev became itself again and I breathed a big sigh of relief. Thanks again to Dave for insisting that I must have had a libURL call in there somewhere :) Jon Message: 15 Date: Tue, 6 Dec 2005 18:03:28 -0800 (PST) From: Judy Perry [EMAIL PROTECTED] Subject: Re: Rev performance: help! To: How to use Revolution use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: TEXT/PLAIN; charset=US-ASCII I think it's being sent more than once a second. Judy On Tue, 6 Dec 2005, Dave Cragg wrote: The ulTickleMe message is sent by liburl. If you are seeing it once a second, that's normal while you have a socket open. The messages should stop when all sockets are closed. ___ 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
Rev performance: help!
Hi all, I'm flipping out today over what seems to be a sudden and inexplicable degradation in Rev's performance. When I started up the stack today, everything had slowed to a crawl. Eventually, I tried opening an older version of the stack on my laptop (a separate computer) and...same thing! After hours of this I even tried reinstalling Rev, and still the same behavior. Any ideas, folks? Boy, I'm hoping there's a simple answer! Thanks, Jon ___ 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
Rev performance: help! (more info)
Hi all, I fear I have a corrupted stack. The program is giving me a previous request not completed message and frankly it seems as if it's busy doing something else! The message watcher is not showing anything, though. After a while the program just crashes. Any ideas? Thanks, Jon ___ 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
Rev performance: help! (more info-libURL)
Hello Dave and others, I think it definitely has to do with libURL. I've been using a web server at home along with a Rev client here at the office. Late last week my home IP address changed, courtesy of my internet provider. This caused what I thought would be temporary problems connecting (until I'd changed all the references to the old IP address). But it appears that somehow libURL is attempting to clean up the old addresses and it is sending many messages such as tickleMe, socketTimeout, and cleanHTTP that I suspect are causing my slowdown. In fact, I even noticed a socket open (reported with the opensockets function) that had the old IP address, even though it's been completely removed from my scripts and fields. How do I clean the slate with libURL? Thanks, Jon Message: 18 Date: Mon, 5 Dec 2005 21:08:52 + From: Dave Cragg [EMAIL PROTECTED] Subject: Re: Rev performance: help! (more info) To: How to use Revolution use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On 5 Dec 2005, at 21:03, Jon Seymour wrote: Hi all, I fear I have a corrupted stack. The program is giving me a previous request not completed message and frankly it seems as if it's busy doing something else! The message watcher is not showing anything, though. After a while the program just crashes. Any ideas? That looks like a libUrl message. You'll get this message when you try to get or post to a url, when a previous request has not completed. I doubt it's a corrupted stack. Could you give us some more information about what your stack is doing, especially any scripts that call URLs? Then we might be able to help. Cheers Dave ___ 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
Andre's all-Rev Web server
Hi, Thanks to all for such an informative list. Someone mentioned Andre's all-Rev Web server...sounds fascinating and of interest to me...will someone point me in the right direction for more on this? With appreciation, Jon PS: as a followup to a previous issue, if one assigns icons into buttons somewhere in the stack (for example, on a card no one sees), then (and only then) they will appear when summoned to replace a character in a field with set the imagesource on Windows. Must have something to do with loading the images into memory. ___ 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: Google invite
On 14/10/2005, at 1:08 AM, Bill wrote: Can someone send me a google invite? Ah, someone else beat me to it... If anyone else wants one, I have 100 to get rid of. Jon ___ 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
imagesource property in Win32 standalone
Hi, I am setting the imagesource of char 1 of line xxx in order to display a small (16x16) icon in front of each line of text in a list field. If you've ever seen iTunes and its Source box you know the effect I am shooting for. Well, it works brilliantly on my OS X version, but to my horror the images do not appear when I migrate to Windows. I've tried everything I can think of related to the line height; furthermore, the 32x32 icons from the same image library appear nicely in the appropriate buttons on the Windows side (giving me the impression the library is available to the Windows app). Can anyone shed some light? Thanks, Jon ___ 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
HTML editor
Is anyone aware of a Rev-based HTML editor? I saw a link to one in the User Spaces but the link is broken. Thanks again! Jon ___ 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
Resizable stack on Windows standalone?
Hi, I'm developing on OS X and creating a standalone to run on Windows. So far...remarkable how well it works. But for the life of me I cannot figure out why my stack can't be resized in Windows. There simply isn't a place to drag. I'm sure the stack is set to resizable and I even set the property in a script when it opens. I've looked at many Windows apps and find the same drag icon in the lower right that I'm expecting Rev to put in there for me. But no. Help!?! Thanks, Jon ___ 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
appending to a file
During the last week, someone asserted that no matter how one coded an append to a file in Rev, it required loading the entire file into memory. This may be true in Rev, but it is not true in Windows (and, I would guess, in all other OS's). In Windows, one can open a file, seek to the end, and write. The OS may have to bring a little of the start of the file into memory (at the open) and a little of the end of the file into memory (at the seek), but for a large file, this may be much faster than reading the whole thing into memory, appending in memory, and writing the whole thing out again. It may well be that the way that the Rev engine is coded takes advantage of this approach: I am not sure about that. :) Jon ___ 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: A Mentor Needed
Tom: It's your money, but I'd give this list a try, first. People here are not only very helpful, but often respond very quickly, sometimes within the hour. I'd be happy to try to help you, on-list or off, for free for a while. If you exceed my admittedly limited expertise, you can then fire a message off to the list. Looking at the multitude of sample stacks that are available for download is a great way to understand how things are done. :) Jon Tom McDonald wrote: As a newbie I need a mentor or tutor. Somebody to answer specific questions in plain English. Simple answers to how to do the most basic things in Revolution -- one method at a time -- not several ways to do the same thing. The available tutorials are daunting. The daily forums might as well be conducted in Bantu for the uninitiated. I'll pay $50 an hour for help like this by email @ [EMAIL PROTECTED] Help!! Tom McDonald - Yahoo! Mail Stay connected, organized, and protected. Take the tour ___ 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 ___ 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
write fails
I'm trying to log activity to a file with what I thought was a simple approach: put the date the long time m Return into s write s to file C:/RHOADS/EEOL2/Logs/log.txt at end The file is not created automatically; after creating the file manually, the file remains empty; the path was copy-and-pasted from Windows Explorer, so I know it is correct; the string s has reasonable contents as verified with the Variable Watcher; and there are no run-time errors. Any thoughts? :) Jon ___ 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: write fails
Excellent approach, Eric! Eric Chatonet wrote: Hi Jon, I'm used to another method which works well for me: put C:/RHOADS/EEOL2/Logs/log.txt into tLogFilePath put the date the long time m into tData - put url(file: tLogFilePath) into tLog if tLog = empty then put tData into url(file: tLogFilePath) else put tLog cr tData into url(file: tLogFilePath) The advantage is that Rev creates the file if it does not exists and overwrites the previous file if it already exists. If you want be compliant with Mac OS, add a fileType setting :-) Le 25 août 05 à 15:09, Jon a écrit : I'm trying to log activity to a file with what I thought was a simple approach: put the date the long time m Return into s write s to file C:/RHOADS/EEOL2/Logs/log.txt at end The file is not created automatically; after creating the file manually, the file remains empty; the path was copy-and-pasted from Windows Explorer, so I know it is correct; the string s has reasonable contents as verified with the Variable Watcher; and there are no run-time errors. Best Regards from Paris, Eric Chatonet. So Smart Software For institutions, companies and associations Built-to-order applications: management, multimedia, internet, etc. Windows, Mac OS and Linux... With the French touch Free plugins and tutorials on my website Web sitehttp://www.sosmartsoftware.com/ Email[EMAIL PROTECTED]/ Phone33 (0)1 43 31 77 62 Mobile33 (0)6 20 74 50 86 ___ 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 ___ 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
Rev disappears when PlugIn Settings is exited
Recently, the following happens, repeatedly. I run Rev, open the Plugin Settings facility, close it, and then Rev immediately disappears. Sometimes the disappearing act happens only after I click on Rev, then on something else, and then back on Rev. In any event, Rev has become totally unreliable. This is with none of my own stacks open yet! I assume some Plugin is causing a problem. I tried to inspect each one, using the drop down list called Plugin on the Plugin Settings window. This turns out to be a pretty frustrating experience, for a number of reasons. One is that the drop down list only shows perhaps five Plugins, while I have 26 or so available. Another is that the position in the list is not remembered, so one has to start from the top and drill down to the Plugin one is trying to explore next, rather than just pressing the down key. Finally, the drop down list sits on top of the Send Messages To Plugin box, so I have clicked in that box accidentally more than once. At this point, I have no idea if the contents of this box are correct or not, so maybe that has contributed to the problem. I can remove all of the Plugins from the Plugin directory and then replace them one at a time. Short of that, any thoughts or recommendations? :) Jon ___ 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
question about IDE behavior
I often find myself editing a Script, Applying the script, and then immediately going to the main Rev menu to do a Files/Save. Unfortunately, Save is grayed out if I have a Script Editor open/active. I have to click on the main Stack in order to get the menu to allow me to do a Save. Any idea whether this behavior is necessary or not? I don't understand, technically, why one would not (or should not) be able to be do a Save while the Script Editor is active. If no one can explain why this behavior is necessary, I may BZ it. :) Jon ___ 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
searching all scripts in an application
Is there any easy way to find all occurrences of the word Send in all scripts in a stack? :) Jon ___ 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
revolution taking up 100% of cpu, again
I reported this IDE problem months ago, with a different application, but here I go again. I seem to have a talent for creating problem stacks like this. Last time it was a logic error in one of my handlers. I am writing an application to test a web site I've written. Once every TBD (typically 15) minutes, it wakes up and Posts some data to each of three versions of the same web site (supposed to be the same code, only on three different servers, one of which is local to my machine). It then inspects the returned HTML to see if the requested operation was successful. I wrote the program to wake up every 10 seconds and see whether it is time to go yet or not. Two strange things are happening. 1) while the application is supposed to be hitting each web site/server once every TBD minutes, it seems as if it may be hitting it 4-5 times, all within a fraction of a second. This undesired behavior (AKA bug?) has allowed me to find and fix a number of errors in the web site, but I would like to understand how and why it is occurring. My first thought is that multiple Sends are getting triggered when I only wanted one to be sent. I altered the Send statement to be included in the following procedure, to try to control this: on SendToMyself s local pm, str, theLine put the pendingMessages into pm repeat for each line theLine in pm put char 1 to 3 of item 3 of theLine into str if (str rev) then cancel item 1 of theLine end if end repeat if (s = 0) then send TestTheReports to the target else send TestTheReports to the target in s seconds end if Can anyone see a problem with the way this is written? 2) if I run the stack for 20 hours or so, and then click on the Close icon, Rev first asks if I want to save the application, after which Rev starts to use 100% of the CPU. I have to go kill the IDE, even though, in theory, nothing is running any longer. This can also happen if I switch from Run mode to Edit mode in the IDE, at which point I lose EVERYTHING I've worked on (no Save is possible). I Save the application every chance I get because of this. If I had to guess, I would think that the IDE is losing it over residual Sends/messages (see above) I tried monitoring the Messages, but did not see the spray of messages that I had thought that I might: I only see that one message every 10 seconds. Any thoughts about this situation? I can provide the stack if you wish... :) Jon ___ 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: searching all scripts in an application
Eric: Can you explain to me how I was supposed to know that? That is, where in the UI, or in the Documentation, might I have come across that feature? That is, how did you find out about it? :) Jon Eric Chatonet wrote: Hi Jon, Yes: Control F :-) Le 24 août 05 à 17:25, Jon a écrit : Is there any easy way to find all occurrences of the word Send in all scripts in a stack? Best Regards from Paris, Eric Chatonet. So Smart Software For institutions, companies and associations Built-to-order applications: management, multimedia, internet, etc. Windows, Mac OS and Linux... With the French touch Free plugins and tutorials on my website Web sitehttp://www.sosmartsoftware.com/ Email[EMAIL PROTECTED]/ Phone33 (0)1 43 31 77 62 Mobile33 (0)6 20 74 50 86 ___ 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 ___ 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: revolution taking up 100% of cpu, again
Mark: Good point: I changed it so that it only kills the appropriate message, if there are duplicates... on SendToMyself s local pm, str, theLine put the pendingMessages into pm repeat for each line theLine in pm if item 3 of theLine = TestTheReports THEN cancel item 1 of theLine end if end repeat if (s = 0) then send TestTheReports to the target else send TestTheReports to the target in s seconds end if end SendToMyself Jon Mark Smith wrote: Why are you cancelling all pending messages that don't start with rev? Perhaps, if the timing is unlucky, you're interfering with a close stack message? Mark On 24 Aug 2005, at 16:29, Jon wrote: I reported this IDE problem months ago, with a different application, but here I go again. I seem to have a talent for creating problem stacks like this. Last time it was a logic error in one of my handlers. I am writing an application to test a web site I've written. Once every TBD (typically 15) minutes, it wakes up and Posts some data to each of three versions of the same web site (supposed to be the same code, only on three different servers, one of which is local to my machine). It then inspects the returned HTML to see if the requested operation was successful. I wrote the program to wake up every 10 seconds and see whether it is time to go yet or not. Two strange things are happening. 1) while the application is supposed to be hitting each web site/server once every TBD minutes, it seems as if it may be hitting it 4-5 times, all within a fraction of a second. This undesired behavior (AKA bug?) has allowed me to find and fix a number of errors in the web site, but I would like to understand how and why it is occurring. My first thought is that multiple Sends are getting triggered when I only wanted one to be sent. I altered the Send statement to be included in the following procedure, to try to control this: on SendToMyself s local pm, str, theLine put the pendingMessages into pm repeat for each line theLine in pm put char 1 to 3 of item 3 of theLine into str if (str rev) then cancel item 1 of theLine end if end repeat if (s = 0) then send TestTheReports to the target else send TestTheReports to the target in s seconds end if Can anyone see a problem with the way this is written? 2) if I run the stack for 20 hours or so, and then click on the Close icon, Rev first asks if I want to save the application, after which Rev starts to use 100% of the CPU. I have to go kill the IDE, even though, in theory, nothing is running any longer. This can also happen if I switch from Run mode to Edit mode in the IDE, at which point I lose EVERYTHING I've worked on (no Save is possible). I Save the application every chance I get because of this. If I had to guess, I would think that the IDE is losing it over residual Sends/messages (see above) I tried monitoring the Messages, but did not see the spray of messages that I had thought that I might: I only see that one message every 10 seconds. Any thoughts about this situation? I can provide the stack if you wish... :) Jon ___ 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 ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ___ 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 ___ 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: searching all scripts in an application
Klaus: Thanks for your response. I guess I was looking in the Script Editor menus for text search facilities in scripts. It never would have occurred to me to look in the main Rev window for what I thought of as a Script Editor feature. Clearly, you think about these things differently than I do. :) Jon Klaus Major wrote: Hi Jon, Eric: Can you explain to me how I was supposed to know that? That is, where in the UI, or in the Documentation, might I have come across that feature? actually this was well hidden by the mean IDE dept. of Rev in the last item of menu Edit. HARD to find, that's for sure... That is, how did you find out about it? Some of us actually have installed and pay some stool pidgeons in scotland ;-) Jon Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ 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 ___ 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: revolution taking up 100% of cpu, again
Mark: This routine is only called every 10 seconds, when it is time to schedule myself to wake up again. I guess what I need to do is understand what my message is named, and then only cancel it. Note that this 100% CPU situation only occurs periodically: I can go for hours without it happening, so I doubt that it is [immediately] caused by this code. Very confusing, to me. Jon Mark Smith wrote: Why are you cancelling all pending messages that don't start with rev? Perhaps, if the timing is unlucky, you're interfering with a close stack message? Mark On 24 Aug 2005, at 16:29, Jon wrote: I reported this IDE problem months ago, with a different application, but here I go again. I seem to have a talent for creating problem stacks like this. Last time it was a logic error in one of my handlers. I am writing an application to test a web site I've written. Once every TBD (typically 15) minutes, it wakes up and Posts some data to each of three versions of the same web site (supposed to be the same code, only on three different servers, one of which is local to my machine). It then inspects the returned HTML to see if the requested operation was successful. I wrote the program to wake up every 10 seconds and see whether it is time to go yet or not. Two strange things are happening. 1) while the application is supposed to be hitting each web site/server once every TBD minutes, it seems as if it may be hitting it 4-5 times, all within a fraction of a second. This undesired behavior (AKA bug?) has allowed me to find and fix a number of errors in the web site, but I would like to understand how and why it is occurring. My first thought is that multiple Sends are getting triggered when I only wanted one to be sent. I altered the Send statement to be included in the following procedure, to try to control this: on SendToMyself s local pm, str, theLine put the pendingMessages into pm repeat for each line theLine in pm put char 1 to 3 of item 3 of theLine into str if (str rev) then cancel item 1 of theLine end if end repeat if (s = 0) then send TestTheReports to the target else send TestTheReports to the target in s seconds end if Can anyone see a problem with the way this is written? 2) if I run the stack for 20 hours or so, and then click on the Close icon, Rev first asks if I want to save the application, after which Rev starts to use 100% of the CPU. I have to go kill the IDE, even though, in theory, nothing is running any longer. This can also happen if I switch from Run mode to Edit mode in the IDE, at which point I lose EVERYTHING I've worked on (no Save is possible). I Save the application every chance I get because of this. If I had to guess, I would think that the IDE is losing it over residual Sends/messages (see above) I tried monitoring the Messages, but did not see the spray of messages that I had thought that I might: I only see that one message every 10 seconds. Any thoughts about this situation? I can provide the stack if you wish... :) Jon ___ 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 ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ___ 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 ___ 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
standalones and run-time errors
I have been developing an application and, from time to time, when it looks like it's working OK, converting it into a standalone. Recently, a run-time (execution?) error occurred in the standalone. I had no idea this was happening, but when I went back to the Rev development IDE, the error popped up, and I fixed it. I can find nothing in the documentation about how run-time errors are handled (or not) in standalones. Coming from Pascal as I do, I would far prefer knowing about errors than having them hidden. How is this supposed to work? Can one select whether errors are reported in a standalone, or not? :) Jon ___ 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
colors in scrolling text field
I am creating a scrolling log of program activities, and want to color code the output so that normal events are black or green, but problems are shown in red. I played with setting colors in a regular field, and the colors seem to stick to the field positions, rather than moving with the characters. Am I correct about this? I tried setting the foregroundcolor in a text chunk that was stored in a local variable, but that failed. The idea was to set the colors up in the string before it went out to the scrolling field, in the hopes that the colors would magically be set in the string and follow the characters out to the scrolling field. This does not seem to work either. Am I trying to do something that is not possible in Rev, or am I just not clear on how to accomplish this? I know that HTML support is somehow built into parts of Rev: would using font color=green work? I tried it, and it did not work trivially. :) Jon ___ 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: colors in scrolling text field
Eric: Your response is, as usual, excellent. Except that, as I said, I did try putting HTML into a scrolling field, and all I got was the typical HTML garbage on the screen; the HTML commands were not interpreted correctly. Do I have to put the HTML someplace special, or enable it somehow? Thanks! :) Jon Eric Chatonet wrote: Hi Jon, Le 23 août 05 à 23:18, Jon a écrit : I am creating a scrolling log of program activities, and want to color code the output so that normal events are black or green, but problems are shown in red. I played with setting colors in a regular field, and the colors seem to stick to the field positions, rather than moving with the characters. Am I correct about this? I tried setting the foregroundcolor in a text chunk that was stored in a local variable, but that failed. The idea was to set the colors up in the string before it went out to the scrolling field, in the hopes that the colors would magically be set in the string and follow the characters out to the scrolling field. This does not seem to work either. Am I trying to do something that is not possible in Rev, or am I just not clear on how to accomplish this? I know that HTML support is somehow built into parts of Rev: would using font color=green work? I tried it, and it did not work trivially. Using HTML is the right way to display coloured text and more generally styled text: (here a tab delimited list where each line has a different colour and the first one is in bolded style) pfont color=#006400b1/14/05#9;4:06:38 PM#9;Start/b/ font/p pfont color=#8040001/14/05#9;5:56:47 PM#9;Auto backup#9;Done#9;Mailing base_3/font/p pfont color=#6464641/14/05#9;6:26:51 PM#9;Auto backup#9;Undone#9;Unchanged file size/font/p You might be interested in the Encoded Text Picker plugin which translates both to and from HTML and/or URLEncode, letting you to set styles, colors, etc. and watch the resulting html code and the How to Create and Manage HTML lists tutorial. Both are available from my website. Best Regards from Paris, Eric Chatonet. So Smart Software For institutions, companies and associations Built-to-order applications: management, multimedia, internet, etc. Windows, Mac OS and Linux... With the French touch Free plugins and tutorials on my website Web sitehttp://www.sosmartsoftware.com/ Email[EMAIL PROTECTED]/ Phone33 (0)1 43 31 77 62 Mobile33 (0)6 20 74 50 86 ___ 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 ___ 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: colors in scrolling text field
Mark: Silly me: I did not think of line -1. Still learning... Thanks! :) Jon Mark Wieder wrote: Jon- Tuesday, August 23, 2005, 2:18:38 PM, you wrote: Am I trying to do something that is not possible in Rev, or am I just not clear on how to accomplish this? I know that HTML support is somehow built into parts of Rev: would using font color=green work? I tried it, and it did not work trivially. Set the color *after* you put the text in the field. I do this for log output in the same manner as you're attempting and it works well for me in scrolling fields. put normal text cr after field xyz put problem text cr after field xyz set the foreColor of line -1 of field xyz to red ___ 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
message watcher
I read about the Message watcher in the documentation. What are the numbers in parentheses that follow the times? Jon ___ 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
rev opens and then disappears spontaneously
All of a sudden, Rev no longer works. I try to start it, it pops up, all of the windows appear, and then it spontaneously disappears. There are no hidden Rev processes running. I had been using Constellation, but turned it off (or tried to?) I have not yet re-booted (too much else going on right now). Anyone seen this before? Is there some file I can clear or something? :) Jon ___ 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
difficulties with StandAlone
Every time I try to create a StandAlone (SA), I have to select a directory into which the SA will be created, starting at My Computer. I don't mind selecting the directory the first time I do this for an application, but is it necessary that I do this every time? And if I have to do it every time, could it start from the most recently selected location, rather than from My Computer? Drilling down into the directory structure over and over again seems needlessly tedious to me. Am I missing something here? Does it work this way for everyone? :) Jon ___ 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
strange message watcher window
I'd not used the Message Watcher until this morning. I was a bit surprised to see the Clear button on top of what seemed to be a data entry field, and the data entry field lying on top of the Suppress button. Am I being too picky, or misunderstanding the UI? www.jonbondy.com/rev.jpg :) Jon ___ 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: strange message watcher window
Oh. I gave up on the script error window. It is NEVER the right size. Sigh Jon Pat Trendler wrote: Jon, Just resize the width (drag) of the window. I think from memory it stays put once you've done that. Not sure if this still happens in the latest build (108). You can also lose buttons on the script error window if it isn't wide enough - fooled me at first. Pat [EMAIL PROTECTED] - Original Message - From: Jon [EMAIL PROTECTED] To: Revolution List [EMAIL PROTECTED] Sent: Sunday, August 21, 2005 9:52 PM Subject: strange message watcher window I'd not used the Message Watcher until this morning. I was a bit surprised to see the Clear button on top of what seemed to be a data entry field, and the data entry field lying on top of the Suppress button. Am I being too picky, or misunderstanding the UI? www.jonbondy.com/rev.jpg :) Jon ___ use-revolution mailing list [EMAIL PROTECTED] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 19/08/2005 ___ use-revolution mailing list [EMAIL PROTECTED] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Ask does not put empty into it when Cancel is clicked.
I have to agree. Slipstreaming is a pain in the neck for everyone, and I don't really understand why Rev thinks it is a good idea, either. Jon Jeanne A. E. DeVoto wrote: At 7:38 PM +0200 8/18/2005, Klaus Major wrote: I think this was quickly fixed by build 108. Download a recent version. until Rev has changed the way we have to load every new distribution (the COMPLETE package :-/), it would be nice to have a place where we can download the engines only! While we're wishing, it would be nice if the fershlugginah VERSION NUMBER were changed when the software changed. From a software engineering point of view, this download whatever is on the web site, install it, run it, and check the buildNumber function in the message box to figure out whether this 2.6 is the same as the 2.6 you downloaded two weeks ago really, seriously, does not cut it. grumble rant mutter twitch ___ 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: I give up: how do you continue a line in Rev?
Great. You figured out how to make the Help system work successfully. Try Filtering the Dictionary and the Topics withcontinue. I get NOTHING here. Working with Rev should not be a game: it should be easy to locate this information. I'm happy that you were able to find the information. I still feel that the fact that I was unable to find it is NOT because I was lazy, but because the IDE continues to be half-baked. Jon Jeanne A. E. DeVoto wrote: At 3:20 PM -0400 8/18/2005, Jon wrote: I'm sure the answer to this question (how do you continue a line in Rev) is simple. Where could I have found the answer to this simple question in the documentation? I looked for continue: no joy. line: no joy. I looked at the Scripting discussion, and I know know all about comments, but nothing about continuing lines onto the next line. How to break a line in a script: If a line of code is too long to be easily displayed in the script editor, it is convenient to break it into more than one line for display, while still having Transcript treat it as a single line. You use the \ character to break a script line for display, as in the following example: set the thumbSize of scrollbar 1 to \ (the height of group 1/the formattedHeight of group 1) When the above split line is executed, it's treated as a single line of code. The entry for \ is also the first item returned when you search the dictionary for continue. Writing documentation starts to seem kind of pointless when a large part of its target audience presents convincing proof, often, that much of that audience doesn't bother to read it. (Admittedly, this is one of the places where an index would be really useful, since you can set up an index to catch synonyms. On the other hand, a search would have succeeded here. Will someone who won't search use an index? Maybe, maybe not.) ___ 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: I give up: how do you continue a line in Rev?
Ken: Of course, because there aren't any keywords that contain that string. But perhaps that's another issue for newbies - understanding the difference between filter and search... Not really. Since Filter is visible, and search is not, Filter is the ONLY facility that anyone would think to use. There really is a Search?!? *(([EMAIL PROTECTED][EMAIL PROTECTED] Rev IDE... :( Jon Ken Ray wrote: On 8/19/05 3:10 AM, Mark Wieder [EMAIL PROTECTED] wrote: Jeanne- Friday, August 19, 2005, 12:00:05 AM, you wrote: The entry for \ is also the first item returned when you search the dictionary for continue. OTOH, filtering on continu shows absolutely nothing. Of course, because there aren't any keywords that contain that string. But perhaps that's another issue for newbies - understanding the difference between filter and search... Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ 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 ___ 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
the message box
I have been appending lines to a scrolling field to create a log file while running a program. After a bit, I centralized the creation of these lines. All of a sudden the Message Box started popping up. I Filtered the Topics in the Documentation for Message Box, but nothing was there. I Filtered on Message, and while something is there, there is nothing about the Message Box. Any idea why the Message Box is suddenly getting triggered? I must be doing something accidentally in this new regime. Here is the current code: on DisplayMessage msg put the long time msg Return after field Memo set the vScroll of field Memo to the formattedHeight of field Memo end DisplayMessage ___ 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: the message box
Thanks so much! Too bad the IDE didn't highlight the reserved word in some special color: I might have been able to guess if that were the case! :) Jon Björnke von Gierke wrote: On Aug 19 2005, at 15:51, Jon wrote: ... Any idea why the Message Box is suddenly getting triggered? ... Here is the current code: on DisplayMessage msg put the long time msg Return after field Memo set the vScroll of field Memo to the formattedHeight of field Memo end DisplayMessage msg is a reserved word indicating... the message box :) try to use a different name for your var and all should be fine. ___ 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
how to know if I'm on-line or not
I'm writing some software to continually test a web site I created. It Posts some data every hour or so and then inspects the HTML that returns to verify that the web site responded appropriately. Sad to say, I connect to the Internet over a modem, so I'm not on-line all of the time. I would like to have some logic like this, so that I don't report an error when I'm not even on-line: if modem-is-connected then test the web site end if Is there any way to do this in Rev? :) Jon ___ 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: I give up: how do you continue a line in Rev?
Klaus: And I think even a newbie COULD (if not should) know that an option menu might have more than 1 ehm... option :-) Good point. I'll have to inspect the UI much more carefully in the future for hints about other features! Maybe we can have a contest for people who can find some other useful features that are hidden in there somewhere! :) Klaus Major wrote: Hi Jon, On 8/19/05 7:14 AM, Jon [EMAIL PROTECTED] wrote: Of course, because there aren't any keywords that contain that string. But perhaps that's another issue for newbies - understanding the difference between filter and search... Not really. Since Filter is visible, and search is not, Filter is the ONLY facility that anyone would think to use. There really is a Search?!? Yes - if you look closely, you'll see that the button that says Filter with: is an option menu button. You can select Search for: as another option in that menu. Exactly! And I think even a newbie COULD (if not should) know that an option menu might have more than 1 ehm... option :-) I know, the mean, mean IDE... Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ 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 ___ 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
resolution of Time in Rev
I'm trying to schedule something to happen some time in the future. Due to some other complexities, I cannot just do a send mouseUp to me in 1000 seconds Rather, I have to wake up every 10 seconds and figure out whether it is time to do the processing or not. The current code is presented below. The interesting thing is that, despite the claim that Rev times are in seconds, and even in milliseconds, the values I'm seeing are in increments of 60 seconds. I flagged a line in the code below. Rather than seeing 60 and then 50 and then 40, etc, I instead see 60 6 times and then 0. Am I doing something wrong? Or, rather, what am I doing wrong? BTW: feel free to show me how I should have written this: it is hugely awkward and could be done much easier in languages that I know better. :) Jon on mouseup local mostRecentFTPTime -- is it time yet? convert the date the time to dateItems subtract field TestFreq from item 5 of it convert it to seconds put item 1 of it into currTime if currTime mostRecentFTPTime then -- show the user how long before next test set the text of field TimeToGo to mostRecentFTPTime - currTime secs to go -- this is the line I'm talking about send mouseUp to me in 10 seconds exit mouseUp end if -- do the FTP stuff here! convert the date the time to seconds put it into mostRecentFTPTime send mouseUp to me in 10 seconds end MouseUp ___ 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: the message box
Could well be. I use whatever the color defaults are. That is, my scripts are indeed in colors. Just no quite as many as I would like grin Jon [EMAIL PROTECTED] wrote: sez [EMAIL PROTECTED]: Too bad the IDE didn't highlight the reserved word in some special color: I might have been able to guess if that were the case! Hm. I thought the IDE had a Preference for colorizing one's scripts, for just this sort of reason? ___ 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 ___ 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: use-revolution Digest, Vol 23, Issue 66
Alex, Jim: The information in the variable mostRecentFTPTime is lost after mouseUp is run You both are, of course, correct. The code I posted is not the code I actually used: the real code is MUCH more complex. In my attempt to make the published code focus on the problem at hand, I screwed up. mostRecentFTPTime is indeed a globally defined Local variable. The problem I am describing does not relate to this mistake on my part... :) Jon ___ 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: resolution of Time in Rev
Jim: I do, in fact, use the debugger. I also write lots of debugging information out to the log I'm creating. The code I stripped out of the example was exactly all of that debugging code. :) Jon Jim Hurley wrote: Jon, I should have pointed out in my previous response that the way to find these problems in the future is to use the RR debugger. If you set a break point at the line: if currTime mostRecentFTPTime then... and if you open the Variable watcher you would see that the variable mostRecentFTPTime is empty on each go around. You would then easily recognize the need for permanence, either using a global or custom variable. Jim ___ 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 ___ 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: resolution of Time in Rev
Alex Tweedly wrote: snip 2. Unless you need to for some reason I don't see here, don't mess around with date time. What I'm trying to do is find a way to express more than 60 minutes after the most recent time/date stamp in such a way that it will not fail across noon/midnight boundaries. In Delphi, all times are just expressed as floating point numbers, where each day is 1, 12 hours is 0.5, etc, so all of these calculations are dead triviall in that situation. I'm confused by all of the various ways that Dates can be used and Times can be used. I'm not sure if these two concepts are separate or united in some way. The Convert routine gives some clues, but I could not find a discussion on Time/Date, which is really what I'm trying to use/do. if the seconds nextFTPTime then Ah. More puns. So the seconds means something different than seconds. I guess the seconds is what I was looking for all along. Difficult to spot, since it is more or less a time/date concept masquerading as a time. But, that said, this simplifies things considerably. Thanks! Learning about the seconds was very helpful! :) Jon ___ 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
time anomaly
Any idea why this code produces 19:00:54 instead of 54? I do have twelveHourTime set to false, but... on mouseUp local t put 54 into t convert t to long time answer t end mouseUp ___ 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: the message box
Björnke von Gierke wrote: msg is a reserved word indicating... the message box :) try to use a different name for your var and all should be fine. Given that, in this particular situation, the IDE is going to ignore my use of msg as a parameter variable name, would it make any sense for the compiler to flag this as a likely problem? Jon On Aug 19 2005, at 15:51, Jon wrote: ... Any idea why the Message Box is suddenly getting triggered? ... Here is the current code: on DisplayMessage msg put the long time msg Return after field Memo set the vScroll of field Memo to the formattedHeight of field Memo end DisplayMessage msg is a reserved word indicating... the message box :) try to use a different name for your var and all should be fine. ___ 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: how to know if I'm on-line or not
I actually started doing just as you suggested (getting Google) when no one else chimed in. Works fine, although I wonder how fond the folks at Google are at us hammering away at them all of the time grin Thanks! Jon J. Landman Gay wrote: Jon wrote: I'm writing some software to continually test a web site I created. It Posts some data every hour or so and then inspects the HTML that returns to verify that the web site responded appropriately. Sad to say, I connect to the Internet over a modem, so I'm not on-line all of the time. I would like to have some logic like this, so that I don't report an error when I'm not even on-line: if modem-is-connected then test the web site end if Is there any way to do this in Rev? One common technique is to get the url at google.com, or one at yahoo.com, or a small file you know is on your server. Then check the result to see if anything went wrong. If it didn't, assume a connection. ___ 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: Sends getting lost
Thanks for the tip! J. Landman Gay wrote: Jon wrote: I'm writing a program that uses send mouseup to me in 10 seconds. From time to time, the program stops working, as if the Send is getting lost. I would guess that this happens whenever I go into the IDE and switch from run mode to edit mode (the two icons at the top of Tools). Many messages are repressed when you are in editing mode. I'm not sure about custom send messages, but it would be easy to check by looking at the pending messages pane of the message box. ___ 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: the message box
Alex: Done! Thanks! :) Jon Alex Tweedly wrote: Jon wrote: BZ 3069. I screwed up and did not assign it to the proper part of Rev, using, instead, the default of About Screen. I tried to figure out how I could edit it to correct it, but was unable to do so. Any hints? I've never actually done that, but it looks as though simply viewing the bug, changing the Component in the drop-down, leaving the default radio-button selection as Leave as Unconfirmed and then click on Commit should do it. (I tried to do it for you right now - but was of course refused since I am neither the submitter nor owner of the bug (far less a sufficiently empowered user - what a great phrase for an error report!!) ___ 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: the message box
Scott: I'm not sure I understand what you wrote. Is there any situation in which using a reserved word as the name of a parameter variable would be meaningful? Jon Scott Rossi wrote: Recently, Jon wrote: msg is a reserved word indicating... the message box :) try to use a different name for your var and all should be fine. Given that, in this particular situation, the IDE is going to ignore my use of msg as a parameter variable name, would it make any sense for the compiler to flag this as a likely problem? I'm not sure you expect the IDE to *know* that you didn't intend call the message box versus making a script error. Sure, the context could be gauged to some extent, but perhaps you *did* intend to call the message box and simply made a contextual script error in the remainder of your code. Chalk it up to a learning experience. In much the same way that one has to learn how to use alert in Javascript and trace in ActionScript to get the same result as answer in X-talk. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ 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 ___ 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
I give up: how do you continue a line in Rev?
I'm sure the answer to this question (how do you continue a line in Rev) is simple. Where could I have found the answer to this simple question in the documentation? I looked for continue: no joy. line: no joy. I looked at the Scripting discussion, and I know know all about comments, but nothing about continuing lines onto the next line. I envy those of you who use Rev all of the time. For the rest of us, it continues to be a very frustrating experience. Jon ___ 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: working a web site from Rev
Dave: Excellent help. Question: how would one indicate that a check box field is checked (or not)? Thanks! Jon Dave Cragg wrote: On 16 Aug 2005, at 22:29, Jon wrote: I want to write a Rev program to make sure that a web site I've written is still functioning correctly, perhaps once an hour, 24/7. The manipulations for a person are pretty simple: 1) go to a fixed URL 2) click a button 3) go to the bottom of the page 4) check a check box 5) click a button 6) verify that the received HTML contains some key phrases. Are steps 2 and 4 both form submission buttons? Anyway, if you are trying to check that the form submission is working, you should be able to check this directly from Rev without opening a browser. Depending on the form's method (GET or POST) you would use get url or post. For example, say the form had the following fields: Field 1 name = name; value = Jon Field 2 name = happy; value = true You could construct the form data like this: put Jon into tName put true into tHappy put libUrlFormData(name,tName,happy,tHappy) into tFormData If you are using get, then you would append the form data to the url like this: put http://www.mysite.com/myform.cgi; ? tFormData into tUrl put url tUrl into tReturnedHtml if the result is empty then ##parse tReturnedHtml for key phrases else ##error answer the result end if If you are using post, then like this: post tFormData to url http://www.mysite.com/myform.cgi; if the result is empty then put it into tReturnedHtml ##parse tReturnedHtml for key phrases else ##error answer the result end if Hope that helps Dave ___ 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 ___ 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
what to do after a Get URL?
I understand how to write the statement get url ftp://a.b.c/d.txt; or some such. OK, so now the file is somehow in the computer, with the Get. What I don't get (so to speak) is how to put that data into my local computer as a file. I assume it is something like put url file://something but I'm not sure about the something. file://c:/dir/filename.txt? file://c/dir/filename.txt? And I'm not sure how to specify the data to put in the Put statement: is it implicit (one of those magic words like it or this or something)? I'm sure this is simple/obvious, but only if you know it... :) Jon ___ 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: I give up: how do you continue a line in Rev?
Thanks, Ed! :) Jon KOPP Ed wrote: Jon - as a novice myself I struggled with the same question. Then I found the answer in a sample script. The \ backslash character continues a line. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Sent: Thursday, August 18, 2005 2:20 PM To: Revolution List Subject: I give up: how do you continue a line in Rev? I'm sure the answer to this question (how do you continue a line in Rev) is simple. Where could I have found the answer to this simple question in the documentation? I looked for continue: no joy. line: no joy. I looked at the Scripting discussion, and I know know all about comments, but nothing about continuing lines onto the next line. I envy those of you who use Rev all of the time. For the rest of us, it continues to be a very frustrating experience. Jon ___ 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 ___ 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 ___ 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: I give up: how do you continue a line in Rev?
My ONLY point was that I was unable to find this simple item in the Help. End of statement. Richard Gaskin wrote: Jon wrote: I envy those of you who use Rev all of the time. For the rest of us, it continues to be a very frustrating experience. How many other multi-platform programming language have your learned, and how much less time did they take to master? -- Richard Gaskin Managing Editor, revJournal ___ Rev tips, tutorials and more: http://www.revJournal.com ___ 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 ___ 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: I give up: how do you continue a line in Rev?
I agree that a critical problem is trying to figure out what the authors of the documentation might have called the concept I have in mind. I have no constructive recommendation for improving the current system, other than that perhaps explaining the purpose of the \ character might have been appropriate in the section about Scripting... :) Mark Smith wrote: If you'd done a search of the dictionary for break you'd have found the \ keyword. I often have to imagine a number of words that might be appropriate and try them all. I agree that this can be frustrating, but persistence and imagination are the key. This goes to confirm the idea that what would be ideal would be a series of in depth books that cover each aspect of Rev, perhaps including sections on equivalents to other languages, but who's going undertake such a mammoth task? Meanwhile, we just have to remember that the docs really are pretty comprehensive, but we have to dig quite deep, sometimes... Cheers, Mark On 18 Aug 2005, at 20:20, Jon wrote: I'm sure the answer to this question (how do you continue a line in Rev) is simple. Where could I have found the answer to this simple question in the documentation? I looked for continue: no joy. line: no joy. I looked at the Scripting discussion, and I know know all about comments, but nothing about continuing lines onto the next line. I envy those of you who use Rev all of the time. For the rest of us, it continues to be a very frustrating experience. Jon ___ 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 ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ___ 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 ___ 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: what to do after a Get URL?
Excellent! Thanks! :) Jon Lynch, Jonathan wrote: After you use the get command, the contents that you just got are put in the it variable. Get url http://myurl.com; Put it into url file:C:/mydocuments Or, you could just do this: Put url http://myURL.com; into url file:C:/myfolder You can also put the url into a variable: Put URL http://myURL.com; into myVar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Sent: Thursday, August 18, 2005 4:13 PM To: Revolution List Subject: what to do after a Get URL? I understand how to write the statement get url ftp://a.b.c/d.txt; or some such. OK, so now the file is somehow in the computer, with the Get. What I don't get (so to speak) is how to put that data into my local computer as a file. I assume it is something like put url file://something but I'm not sure about the something. file://c:/dir/filename.txt? file://c/dir/filename.txt? And I'm not sure how to specify the data to put in the Put statement: is it implicit (one of those magic words like it or this or something)? I'm sure this is simple/obvious, but only if you know it... :) Jon ___ 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 ___ 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 ___ 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: I give up: how do you continue a line in Rev?
Klaus: I thought that all of you who paid the big bucks for the Enterprise version got a pill with RNA in it, and that you learned it all over night! :) Jon Klaus Major wrote: Hi Jon, Jon wrote: ... I envy those of you who use Rev all of the time. For the rest of us, it continues to be a very frustrating experience. Well, actually we did not wake up one morning and suddenly knew how to do everything right, believe it or not... ;-) Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ 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 ___ 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: what to do after a Get URL?
Mark: Yep, it is there. I guess I need to look longer/harder... :) Jon Mark Wieder wrote: Jon- Thursday, August 18, 2005, 1:13:16 PM, you wrote: I understand how to write the statement get url ftp://a.b.c/d.txt; or some such. OK, so now the file is somehow in the computer, with the Get. Just on a whim, look at the Topic Using URLs, upload, and downloading in the docs. Try How do I download a file from an FTP server?. I'm sure this is simple/obvious, but only if you know it... ...or if you actually look at the docs... ___ 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: I give up: how do you continue a line in Rev?
I learn a lot by looking at other people's code, but not everyone has the same style of learning. Just FYI, I did look at a lot of code before asking, but most people seem to be able to avoid using the backslash. I did too, right up until I had to use a huge libUrlFormData statement... :) Jon Mark Wieder wrote: Richard- Thursday, August 18, 2005, 1:01:28 PM, you wrote: Jon wrote: I envy those of you who use Rev all of the time. For the rest of us, it continues to be a very frustrating experience. How many other multi-platform programming language have your learned, and how much less time did they take to master? Sorry, Richard, but I think this is out of line here. I don't really know where I learned about the backslash, but it ain't easy finding out what the line continuation character is unless you ask it here. It's certainly not obvious from searching through the documentation, and if it's in there I couldn't say where it is. I learn a lot by looking at other people's code, but not everyone has the same style of learning. ___ 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: I give up: how do you continue a line in Rev?
I understand that some folks learn that way, but I learn better when I focus on the task at hand and look at examples. If I try to read about EVERY feature in the language, I usually just get overwhelmed. I agree that learning some fundamentals (chunks is a great example) is really necessary, but when it comes to more specialized facilities (such as the FTP and URL stuff that I've been doing today), I would forget it all before I ever had to lose it. I think some people just learn differently than others. :) Jon Lynch, Jonathan wrote: I found it very helpful to read the docs cover to cover. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Wieder Sent: Thursday, August 18, 2005 6:13 PM To: How to use Revolution Subject: Re: I give up: how do you continue a line in Rev? Richard- Thursday, August 18, 2005, 1:01:28 PM, you wrote: Jon wrote: I envy those of you who use Rev all of the time. For the rest of us, it continues to be a very frustrating experience. How many other multi-platform programming language have your learned, and how much less time did they take to master? Sorry, Richard, but I think this is out of line here. I don't really know where I learned about the backslash, but it ain't easy finding out what the line continuation character is unless you ask it here. It's certainly not obvious from searching through the documentation, and if it's in there I couldn't say where it is. I learn a lot by looking at other people's code, but not everyone has the same style of learning. ___ 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
a Rev program to automatically download files using FTP
Is there a simple [?!?] sample stack that would show me how to automatically FTP some files every 24 hours? I need to back up a few files from my server, and this seems like a nice way to try to do it. Thanks! :) Jon ___ 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
working a web site from Rev
I want to write a Rev program to make sure that a web site I've written is still functioning correctly, perhaps once an hour, 24/7. The manipulations for a person are pretty simple: 1) go to a fixed URL 2) click a button 3) go to the bottom of the page 4) check a check box 5) click a button 6) verify that the received HTML contains some key phrases. Is it easy to do this in Rev? Any sample stacks you can recommend? :) Jon ___ 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: New project
I, for one, would really appreciate that change. Coming from Pascal, I would, of course, prefer fred := 4 sick grin :) Jon Dan Shafer wrote: That syntax is in Transcript's future, according to Rev CTO Mark Waddingham. Full prototype-based OO with dot syntax a la JavaScript. No ETA. On Aug 11, 2005, at 9:54 PM, Ben Fisher wrote: Also it would be nice to do things like myButton.customProp = 4. ~~ Dan Shafer, Revolution Consultant and Author http://www.shafermedia.com Get my book, Revolution: Software at the Speed of Thought From http://www.revolutionpros.com, Click My Stuff ___ 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 ___ 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: Repeat until (0r while) not working
Ken and Chipp are being very helpful when they provide useful/working code, but I'm more curious about why the original code did not work. It looked reasonable to me: the kind of code I might actually use some day, and get stuck on. Any thoughts? :) Jon On 8/9/05 8:17 PM, Sivakatirswami [EMAIL PROTECTED] wrote: I'm missing something very simple here, Goal: delete empty lines beginning and end of text chunk Chipp Walters wrote: Katir, If you wanted to do it in a repeat loop: repeat with x = the number of lines in tFinalTranscript down to 1 if line x of tFinalTranscript is then delete line x of tFinalTranscript end repeat Ken Ray wrote: Try this: function trim pWhat local tRetVal get matchText(pWhat, (?s)^\s*(.*?)\s*$, tRetVal) return tRetVal end trim Trims all forms of whitespace (CRs, spaces, tabs, etc.) from the beginning and end of a text chunk. ___ 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: SCRIPTS IN GROUPS
Is it really true that a Group that is not in the Background takes up (i.e., accepts mouse events from) the whole card?!? :) Jon Bill wrote: Thanks. It sure helps. I feel like a loser, sort of, but more and more I am avoiding groups because they confuse me. I should have realized what setting the background behavior to true would do. I have to think of a group as always taking up the whole area of the card and not just the bounded area that it appears to take up. On 8/6/05 8:37 AM, Klaus Major [EMAIL PROTECTED] wrote: Hi Bill, How come if you have a script in a group, and that group is the same size as a button, the mouse-up handler in the group responds when you click anywhere in the card and not just directly over the group? if the backgroundbehavior of that group = true, then this is the correct behavior! That script is put into the message path AFTER the card: object - (group with NO bg behav.) - card - BG (= group WITH bg behav.) - stack... I alsways check the owner of the target in these cases in the bg script. on mouseup if the owner of the target = me then ## an object INSIDE that group was clicked end if end mouseup Hope that helps. Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ 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 ||| )_) )_) )_) )___))___))___)\ )))_)\\ _|||\\\__ ---\ /- http://www.bluewatermaritime.com ^ ^ ^^^^^ ^^^ 24 hour cell: (787) 378-6190 fax: (787) 809-8426 Blue Water Maritime P.O. Box 91 Puerto Real, PR 00740 ___ 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 ___ 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: File location using go shell (startc:\..)
You shouldn't need a start before an EXE in Windows. If you specify an EXE file name, Windows just runs the program. Start is for when all you know is a document name, and you want Windows to go find the associated EXE for you. I've never seen anyone successfully use an underscore to replace a space. Standard Windows procedure is to put the file name (complete with spaces) in double quotes. :) Jon Klaus Major wrote: Hi Scott, I have been using the go shell command to open up distant files deep in the Windows filing architecture, but having problems getting past the folder program files Seems I can't get past a folder with two words, eg. Program Files go shell (start c:/program_files/appz_folder/mainframe.exe) doesn't get me there, but go shell (start c:/appfolder/mainframe.exe) works how do I rewrite the file location so runrev understand the location of the file? very strange that it works at all ;-) Try: GET shell (start c:\program_files\appz_folder\mainframe.exe) if the result empty then ## NO xuccess ## do your error thing... end if ... shell on windows needs the BACKslash for pathnames. Hope that helps. Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ 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 ___ 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: global problems
Upon further reflection about the situation in Rev (as opposed to languages that are really compiled, and execute from the start of the program each time a change is made), I take your point. In Pascal, the program/compiler must re-create each global each time the program is run. In Rev, the program never actually stops running (in some sense, even though it does change as the programmer edits the scripts and modifies the properties), so there is never a time when Rev can properly re-evaluate the existence of the globals. Removing all of the globals each time a script is edited would not work. See: I'm still having problems getting my mind around all of the implications of a Rev-like IDE... :) Jon Richard Gaskin wrote: Jon wrote: I agree: it is unfortunate that the original language designers used the term global to mean persistent global. Had they separated the concept of scope from the concept of variable duration/lifetime, the language would have been equally powerful while being easier to understand. What is a non-persistent global? In any language I've worked with, you declare a global and it stays in memory until you delete it or quit the program. I don't know of any language that deletes globals automatically based on whether the app closes or opens files from disk. -- Richard Gaskin Managing Editor, revJournal ___ Rev tips, tutorials and more: http://www.revJournal.com ___ 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 ___ 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: global problems
In other languages, if you removed all references to a global and recompiled, of course it would disappear...? Exactly! This is SO counterintuitive, no matter how useful it might be I NEVER would have even considered that the language might behave in this way. Another issue for the Intro For Newbies? :) Jon Brian Yennie wrote: Global properties do! For me, the rationale is simple: globals are the ONLY way to have data which is _not_ stack specific. As such, closing or modifying a stack should never delete global data. Perhaps what you're really looking for is a stack-level local variable? I'm thinking the seeming oddity of the situation has something to do with the loose restrictions on declarations in xTalk, and the runtime nature. In other languages, if you removed all references to a global and recompiled, of course it would disappear...? Right... well, the point I was trying to make is that there's *nothing* else that has this persistence. Maybe I chose a bad example. ___ 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 ___ 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: global problems
I agree: it is unfortunate that the original language designers used the term global to mean persistent global. Had they separated the concept of scope from the concept of variable duration/lifetime, the language would have been equally powerful while being easier to understand. Jon Mark Wieder wrote: Jacque- Tuesday, August 2, 2005, 8:07:41 AM, you wrote: Globals are necessary when one has a suite of stacks that must interact as a unit. One very common example is a find handler. Assume a number of data stacks, each a clone of the others. A handler asks what you want to find and puts that string into a global. The next time the user wants to find something, you can use the same string to allow a persistent search across many stacks. Yes, I do understand what globals are and why one may want to use them. I do actually use them, albeit sparingly. My conceptual problem here is with the persistence of global variables in the IDE once the stack or suite of stacks that used them has been purged from memory. In your example, can you think of a reason for the find string to persist after you have closed the suite of stacks that initialized and used the find handler and you've gone on to work on another project? ___ 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: Help, what am I doing wrong???
Whew! That's more like it! Ken Ray wrote: On 7/31/05 8:13 PM, Jon [EMAIL PROTECTED] wrote: Horrifying. I assume this is BZd?!? No, because it's not true (see my response to Mark). Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ 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 ___ 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: new bug posted
Jim: A good point about the consequences of an accidental click; I'd not considered that. That said, I often want to search for something, and find the procedure for getting the Find facility to be visible to be more complex and time consuming than I would like. :) Jon Jim Ault wrote: Jon [EMAIL PROTECTED] wrote: Why not have the Find/Replace visible all of the time Actually, I prefer not to have the Replace button showing, and especially the Replace All. Doing a find, then later accidentally clicking Replace All as you bring the script window to the front will morph the entire script container... major damage in some cases. I would prefer the Replace and Replace All be a drop down selection of 'once' and 'once whole word only' and 'all' and 'all whole word only' Usually this feature is on its own dialog window so that you are in Find/Replace mode, then dismiss it. Jim Ault Las Vegas On 7/29/05 5:56 PM, Jon [EMAIL PROTECTED] wrote: I just posted bug (enhancement suggestion) 3034, which says in part As much as I like the AutoComplete feature of the Script Editor, I find myself always wanting to do searches, and I hate switching between the two modes. I realized that the two modes are really separate, since one rarely wants to search in the middle of typing a word. Why not have the Find/Replace visible all of the time EXCEPT when in the middle of typing a word, at which point it is dynamically replaced by the AutoComplete? Best of both worlds! Vote with your heart... :) Jon ___ 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 ___ 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 ___ 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: Help, what am I doing wrong???
It has been considered a bug, and flagged for the programmer, in Delphi for years. I don't see how it can be considered anything else. Now as to whether it is a bug that is reported in Rev with an error message, that is a different story. :) Jon Mark Wieder wrote: Dennis- Saturday, July 30, 2005, 7:24:58 PM, you wrote: DB I would really like to get a real error message since it does not do DB what you expect from reading the code. How many newbies do we have DB to trip up before we erect a stop sign at that intersection? DB Should I BZ it? I'm not sure it's actually a bug, but it's worth BZing just to keep it on the rev team's radar, since it's a stumbling block that everyone runs across at some time or other. ___ 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: Help, what am I doing wrong???
Mark: The point I was TRYING to make grin was that FOR loop variables 1) had to be declared locally; and 2) could not be modified inside a loop. I was trying to make a general case for this kind of a definition of an error. :) Jon Mark Wieder wrote: Jon- Sunday, July 31, 2005, 5:59:01 AM, you wrote: J It has been considered a bug, and flagged for the programmer, in Delphi J for years. I don't see how it can be considered anything else. Now as J to whether it is a bug that is reported in Rev with an error message, J that is a different story. I wasn't aware that Delphi even *had* a for each element construct, but then I haven't kept up with Delphi since v6.0 or so. Now that I've googled it, I see that Borland added foreach support to Delphi 2005. The documentation, though, clearly states that the loop indices are provided as read-only references only and cannot be modified. Works the same way in C#, in case you're interested. Since this is a brand-new addition to Delphi, I'm not sure what you're referring to in has been considered a bug...for years. Nor how this can be considered a bug, since it's clearly documented. Personally, I prefer either the Perl or PHP implementations, where you're free to use and modify the element since it's separate from the loop index. Messing with a loop index is always a Bad Idea. Interestingly, in Perl changing the loop element changes the original referenced element, while in PHP the original value is unchanged. ___ 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: Help, what am I doing wrong???
Horrifying. I assume this is BZd?!? Mark Wieder wrote: Jon- Sunday, July 31, 2005, 12:15:53 PM, you wrote: J Mark: J The point I was TRYING to make grin was that FOR loop variables 1) had J to be declared locally; and 2) could not be modified inside a loop. I J was trying to make a general case for this kind of a definition of an J error. Ah. Gotcha. Yes - that's at least somewhat mind-boggling. A semi-related point that seems to bother nobody but me is that you don't have to declare loop variables (i.e., Variable Checking [aka explicitVars] doesn't catch them), but if you don't explicitly declare them as local then they become global by default, in which case you get namespace conflicts. Declaring local x when you've already got a repeat for x=1 to 10 line somewhere in your script will cause a compiler error at the local x line. ___ 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: [OT] Windows Command Help
Windows has a facility built in that associates file extensions with applications. Thus, you can tell Windows that the default application for a JPG is FRED.EXE. Normally, any useful document has an associated application. There are ways to ask windows to open a document using the default application. In Delphi, this is what I write to do this: i := ShellExecute(Application.handle, 'open', fName, '', '', SW_SHOWNORMAL); Now, how easy it might be to do this from within Rev, I cannot say. I'm just explaining how Windows works. Hope this helps. Feel free to contact me off list if you want to get into the details. :) Jon Dan Shafer wrote: The problem is I don't know the name or path of the app. On OS X, this doesn't matter. But it appears I cannot ask Windows to launch a document and expect it to figure out which app to use. Great. Dan On Jul 28, 2005, at 6:24 PM, MisterX wrote: Hi Dan It's funny to see MacOS - no-to-CLIs - crowd do it in Unix and not in DOS ;0 what you need is something like c:\notepad pathtomyfile or notepad.exe path to myfile or pathtoapp path to file should work... BUT this will block Rev... :( so shell(start quote appspath docpath quote should work...) cheers Xavier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Shafer Sent: Friday, July 29, 2005 02:57 To: Revolution List Subject: [OT] Windows Command Help In OS X, I can issue the shell command launch followed by a document path and the system opens that document with the appropriate app. Is there an equivalent command/syntax for Windows? I tried start but if I give it a document path, it opens a new command window but doesn't do anything. Thanks in advance for any help for the Windows-challenged. ~~ Dan Shafer, Revolution Consultant and Author http://www.shafermedia.com Get my book, Revolution: Software at the Speed of Thought From http://www.revolutionpros.com, Click My Stuff ___ 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 ___ 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 ___ 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 ___ 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
more IDE annoyances
I have no idea if these have been BZ'd yet or not, nor do I know if they have been fixed. I enter RR. I open a stack. I click on a stack in the App Browser. I then try to click on the Script icon, but it is greyed out. So. Bug number 1: if I select something to edit, the Script button should not be greyed out. I then click on an arbitrary object in my stack, just to get the frigging IDE off the dime. Finally, the script button becomes active. I then return to my beloved App Browser, click on the stack again, and click the Script button. What gets edited? The arbitrary object in my script! Bug number two. A few weeks ago people mentioned that a lot of bugs were getting fixed. Any idea when some of these bug fixes will end up in the hands of the paying customers? I'm getting tired of all of this quirk. It's stuff like this (editing the wrong object) that may lead one of us to editing the wrong object without knowing it, which may lead to arbitrary confusion. :( Jon ___ 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
new bug posted
I just posted bug (enhancement suggestion) 3034, which says in part As much as I like the AutoComplete feature of the Script Editor, I find myself always wanting to do searches, and I hate switching between the two modes. I realized that the two modes are really separate, since one rarely wants to search in the middle of typing a word. Why not have the Find/Replace visible all of the time EXCEPT when in the middle of typing a word, at which point it is dynamically replaced by the AutoComplete? Best of both worlds! Vote with your heart... :) Jon ___ 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: more IDE annoyances
Thanks! BZ 3035... :) Mark Wieder wrote: Jon- number 1: if I select something to edit, the Script button should not be greyed out. Verified here. click the Script button. What gets edited? The arbitrary object in my script! Bug number two. Verified again. I can honestly say that I've never used the Script button before. I had to go hunt around to find out what you were talking about. But both of these are definitely bugs - the App Browser and the toolbar seem to be lightly coupled. Since you're on Windows, you can probably save some grief (and keystrokes) by right-clicking on objects in the App Browser to edit them, or ctrl-alt- clicking the actual object to edit it. ___ 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: Mac-Win revisited
Perhaps we should have a feature request that always does this automatically for everyone? All of this kind of stuff is taken care of automatically in the other IDEs I use... :) Jon Thomas McGrath III wrote: Pardon me chiming in here. When using things like players and speech etc. it is our responsibility to close them ourselves in our code when and if for any reason our program is to quit. So I would put a piece of script in a on closeStack that takes care of the player when closing. This is because players and speech use libraries and/or QT etc. to work and like a serial port that is opened it must be closed or problems may occur. This is good coding practice. Maybe you can have in each stack an on closeStack that checks if all three (+-) stacks are closed and 'then' closes the player only if all are closed. HTH Thanks Tom On Jul 27, 2005, at 6:23 PM, Charles Hartman wrote: On Jul 27, 2005, at 4:50 PM, Alex Tweedly wrote: Yes it does work, exactly as I and other Windows users would expect it to work. It closes the app (or window) in whose title bar you are at the time (or which has focus when you do Alt-F4). That's what Windows *always* does. Yes, I understand that. The problem is that after you close all (up to) three stacks in my app, you think you've quit the Player; but you haven't. I've tried out the Quit (with just an OK or Cancel), and it seems to work. If this thing gets more elaborate, and there's data to save, I'll move carefully. Thanks again. Charles ___ 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 Macintosh PowerBook G-4 OSX 10.3.9, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 2.6 Advanced Media Group Eagle Works Art Sculpture Semantic Compaction Systems Prentke Romich Company Prentke Romich International SCIconics, LLC Artist Thomas J McGrath III [EMAIL PROTECTED] ___ 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 ___ 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: Another Doc Thought
But how would you fix this? By making the IDE UI less confusing?!? This is a good example of why RR is so difficult for the uninitiated, and still somewhat confusing to the moderately experienced. You can't be productive when you're not confident that the IDE's UI is under YOUR control. :) Jon Bill wrote: That happens to me all the time. I just change the name of the main stack back. I think it happens when you think a particular object is selected and it is actually the main stack that is selected. But how would you fix this? On 7/26/05 9:12 AM, Charles Hartman [EMAIL PROTECTED] wrote: some point (??) I discover that in the locked Inspector the name of my main stack has been changed. (The title of the Inspector window ||| )_) )_) )_) )___))___))___)\ )))_)\\ _|||\\\__ ---\ /- http://www.bluewatermaritime.com ^ ^ ^^^^^ ^^^ 24 hour cell: (787) 378-6190 fax: (787) 809-8426 Blue Water Maritime P.O. Box 91 Puerto Real, PR 00740 ___ 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 ___ 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: Another Doc Thought
I'm not sure that having to be more careful is what will attract new users to RR... :) Jon [EMAIL PROTECTED] wrote: Hi guys, i've had it happened too. Now, im more careful... you can always make sure you have selected your control by double clicking it... cheers Xavier [EMAIL PROTECTED] wrote on 26/07/2005 15:39:34: That happens to me all the time. I just change the name of the main stack back. I think it happens when you think a particular object is selected and it is actually the main stack that is selected. But how would you fix this? On 7/26/05 9:12 AM, Charles Hartman [EMAIL PROTECTED] wrote: some point (??) I discover that in the locked Inspector the name of my main stack has been changed. (The title of the Inspector window ||| )_) )_) )_) )___))___))___)\ )))_)\\ _|||\\\__ ---\ /- http://www.bluewatermaritime.com ^ ^ ^^^^^ ^^^ 24 hour cell: (787) 378-6190 fax: (787) 809-8426 Blue Water Maritime P.O. Box 91 Puerto Real, PR 00740 ___ 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 - Visit us at http://www.clearstream.com IMPORTANT MESSAGE Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries. END OF DISCLAIMER ___ 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 ___ 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: Praise: Rev Documentation to the rescue
Not from me! I guess I chose a horribly wrong example! Point taken! :) Jon Michael J. Lew wrote: I dare say this one will get me into trouble... At 9:36 PM -0500 25/7/05, [EMAIL PROTECTED] wrote: For me, the biggest problem I have with the docs, aside from not being able to find things, is that when I get to a topic, there are not enough examples to indicate exactly how a facility might be used. Whether this belongs in the docs or in something else is beside the point. If I'm struggling with how to use a REPEAT, I need examples. Here is some help with repeat that includes no less than 8 code examples. You can find many, many more examples of how and when to use repeat in almost any Rev project that you care to open and examine. I hope that helps (HTH). I'm sorry if this post is excessively long. It is Jeanne's fault for writing a long dictionary entry ;-) From the docs: repeat control structure Platform support:Introduced in version 1.0 (Changed in version 2.0) Executes a set of statements repeatedly. repeat loopForm statementList end repeat See also: each keyword, end repeat keyword, exit repeat control structure, for keyword, forever keyword, next repeat control structure, until keyword, while keyword, Why does a repeat loop behave strangely? Description Use the repeat control structure to perform the same set of actions for each member of a set: for example, for each card in a stack, or each line in a variable. Form: The repeat control structure always begins with the word repeat. The last line of a repeat control structure is the end repeat keyword. Parameters: The loopForm is one of the following forms: * forever * until condition * while condition * [for] number times * with counter = startValue [to | down to] endValue [step increment] * for each chunkType labelVariable in container * for each element labelVariable in array The condition is any expression that evaluates to true or false. The number, startValue, endValue, and increment are numbers or expressions that evaluate to numbers. The counter or labelVariable is a legal variable name. The chunkType is one of character (or char), word, line, item, or token. The container is any existing container. The array is any existing container that contains an array of values. The statementList consists of one or more Transcript statements, and can also include if, switch, try, or repeat control structures. Comments: How many times the statementList is executed depends on the loopForm you use. The forever form: The forever form continues repeating the statements in the statementList until an exit, exit repeat, pass, or return statement is executed. Usually, one of these control structures is included in an if control structure within the statementList. Use the forever form if you want to test a condition at the bottom of the loop, after the statementList is executed. In the following example, the go command is executed at least once, since the mouseClick is not checked until after the go command: repeat forever go next card if the mouseClick then exit repeat -- user clicked end repeat If no loopForm is specified, the forever form is used. The until and while forms: The until condition and while condition forms repeat the statementList as long as the condition is false or as long as it is true, respectively. Revolution re-evaluates the condition before each iteration. Use the until condition or while condition form if you want to test a condition at the top of the loop, before the statements are executed. This example scrolls through the cards until the user clicks the mouse: repeat until the mouseClick go next wait for 100 milliseconds end repeat The for form: The for number times form repeats the statementList for the specified number of times. The number is evaluated when the loop is first entered, and is not re-evaluated as a result of any actions performed in the statementList. For example, if the number is the number of cards, and the statementList contains a create card command, the loop is executed as many times as there were cards when the loop began, even though the current number of cards is changing with each iteration through the loop. If the number is not an integer, it is rounded to the nearest integer, using the same rules as the round function. Use the for number times form if you want to execute the statementList a fixed number of times. The following simple example beeps three times: repeat for 3 times beep end repeat The with form: The with counter = startValue to endValue form and the with counter = startValue down to endValue form set the counter to the startValue at the beginning of the loop, and increase (or decrease, if you're using the down to form) the countVariable by 1 each time through the loop. When the counter is greater than or equal to the endValue, (less than
Re: Praise: Rev Documentation to the rescue
Oh dear, oh dear oh dear! What is it with people and the docs? The docs work perfectly well when you know where to look for information. If I knew what a facility's name was, or even whether such a facility existed, I would be most of the way there. The fact is that most newbies have no clue about any of this. Saying the docs work perfectly misses most of the point. For me, the biggest problem I have with the docs, aside from not being able to find things, is that when I get to a topic, there are not enough examples to indicate exactly how a facility might be used. Whether this belongs in the docs or in something else is beside the point. If I'm struggling with how to use a REPEAT, I need examples. :) Jon Michael J. Lew wrote: Oh dear, oh dear oh dear! What is it with people and the docs? The docs work perfectly well when you know where to look for information. That may not always be immediately obvious, but I think that some don't spend enough time looking at the arrangement of the information before they claim the docs are too hard, or a bottleneck. In Rev it is very easy to experiment with commands to see how they work. Try it. In Rev it is fairly easy to guess what a command might be. Just try it out and see if it works. If it doesn't then type it into the dictionary filter and see what comes up. This list is part of the effective documentation of Revolution (look up effective keyword in the dictionary ;-). Ask a question here and you will generally get a useful answer. Don't try to tell me that Rev is not good for non-professionals. This list is full of non-professionals who are making good things with it. Regards, Michael Lew At 2:29 PM -0500 25/7/05, [EMAIL PROTECTED] wrote: But Rev is advertised as enterprise-ware if I'm not mistaken. In theory, Rev is great for pros, great for novices, and great for do-it-yourself end-users, who possess a modicum of intelligence, motivation and computer experience. Maybe it's fine for Pros, but it's too damned hard for everyone else. The documentation presently available is the biggest bottleneck, in my opinion. It still seems to me that it just wouldn't be that hard or expensive to make it a whole lot better. ___ 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: Revolution unbooted
Mark: My only point was that eventually is measured in weeks here, not in hours or days. With Win 98, it was often measured in minutes. :) Jon Mark Wieder wrote: Jon, Chipp- Monday, July 18, 2005, 4:11:17 PM, you wrote: CW I concur with Jon. I regularly use 3 separate Windows XP machines, and CW multiple programs on each and never find the NEED TO reboot them, other CW than for service patches and app installs. The *need* to reboot them is subtler than that. Windows is a set of multi-level interdependent drivers and libraries that is dynamically rebuilt each time Windows reboots. My rule of thumb when making system changes is to reboot three times - each successive boot builds on the previous dependency model. Things can get a bit tenuous if Windows isn't allowed to reassure itself every so often about what's holding it up. Michael Swaine had a good writeup of the process in an article a while back called House of Cards, but I can't find a reference to it at the moment. Granted my rebooting every day my be a bit compulsive, but I figure it's a good habit to get into and this ensures that it gets done. Jon - your eventually something becomes unstable is *exactly* what I'm talking about. ___ 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: Revolution unbooted
Mark: I run my Windows XP box (and ran my Windows 2000 box) for 1-2 weeks at a time. Eventually, something becomes unstable, and I have to re-boot, but often I only have to re-bot because I install a patch. I think your pessimism about Windows (at least in this regard) is a bit excessive. :) Jon Mark Wieder wrote: Seamus- Tuesday, July 12, 2005, 9:57:10 AM, you wrote: SB Can anybody comment on the stability of a runrev app (connected through SB ODBC to SQL Server) running on a linux/windows box for many many days SB without rebooting? Are memory leaks a problem? I am looking into SB developing something for a client which could potential be left running SB for a considerable number of days. I would *never* run a windows box for several days without rebooting. Windows needs to be rebooted regularly in order to rebuild its driver database, maintain the registry, etc. That's part of why it takes so long to boot up. If you prevent this from taking place the system can get seriously messed up. ___ 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