QT: how do I determine wheter a chosen file is within the same folder as a new chosen destination folder?
Hi there, I do two things : on mouseUp answer file Kies bestand: if the result is Cancel then exit mouseUp else put it into bLijst answer folder Kies map -- selection of destination folder if the result is Cancel then exit mouseUp put it / into bMap end mouseup After this I write back a new file into bMap. But...I don't want destfolder to be the same folder as where the chosen file is in. Otherwise the file will be overwritten. I tried with: if filePath bLijst is within filePath bMap then answer error Fout! but that doesn't work. Any idea's? Thanks! greetings, William de Smet ___ 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: Zipping an application package by script
function altGoodMacSystemForUnzip put systemVersion() into tNum set itemDel to . put item 1 of tNum into t1 put item 2 of tNum into t2 put item 3 of tNum into t3 if t1 10 then return false if t2 2 then return false if t2 = 2 and t3 8 then return true if t2 2 then return true return false end altGoodMacSystemForUnzip Hey Chipp, FYI, here's a shorter way of performing the same check: function altGoodMacSystemForUnzip put systemVersion() into tNum split tNum by . return (tNum[1]=10 and ((tNum[2]=2 and tNum[3]8) or (tNum[2] 2))) end altGoodMacSystemForUnzip Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.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
Re: QT: how do I determine wheter a chosen file is within the same folder as a new chosen destination folder?
on mouseUp answer file Kies bestand: if the result is Cancel then exit mouseUp else put it into bLijst answer folder Kies map -- selection of destination folder if the result is Cancel then exit mouseUp put it / into bMap end mouseup After this I write back a new file into bMap. But...I don't want destfolder to be the same folder as where the chosen file is in. Otherwise the file will be overwritten. I tried with: if filePath bLijst is within filePath bMap then answer error Fout! but that doesn't work. Any idea's? Yes... do this: if (char 1 to length(bMap) of bLijst) = bMap then -- in same folder else -- in different folder end if Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.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
Re: QT: how do I determine wheter a chosen file is within the same folder as a new chosen destination folder?
Thanks Ken, You make my day! And I learned again :-) greetings, William 2008/9/12 Ken Ray [EMAIL PROTECTED] on mouseUp answer file Kies bestand: if the result is Cancel then exit mouseUp else put it into bLijst answer folder Kies map -- selection of destination folder if the result is Cancel then exit mouseUp put it / into bMap end mouseup After this I write back a new file into bMap. But...I don't want destfolder to be the same folder as where the chosen file is in. Otherwise the file will be overwritten. I tried with: if filePath bLijst is within filePath bMap then answer error Fout! but that doesn't work. Any idea's? Yes... do this: if (char 1 to length(bMap) of bLijst) = bMap then -- in same folder else -- in different folder end if Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.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: AW: Can you realise a transparent hover color for buttons?
that does almost the trick, beside the blendlevel does affect not only the backgroundcolor, but also the text. So you want the everything but the text to go transparent? You mentioned like the menu items of MS Office products on Win - which version of Office are you talking about? If you wanted to keep the text from blending but have everything else blend, you could overlay a transparent button on top of one that was blended 50%; if you need to have an icon attached to the button (so the text is below the icon), the transparent button's icon would be 0 and you would need to set the margins of the transparent button to shift the text label of the button down to match. Here's an example of what I mean (Rev 2.9, Windows): 1) Drag a push button off of the Tools palette 2) Open the inspector and assign icon ID 210001 (the stop sign) to the button, and change the height to 65. 3) Control-drag off a copy of the button. 4) Execute set the blendLevel of btn 1 to 50 in the message box. 5) Select the copy (btn 2), and remove the icon, change the style to Transparent. 6) Execute set the loc of btn 2 to the loc of btn 1 in the message box to overlay the two buttons. 7) Execute set the margins of btn 2 to 4,50,4,4 in the message box. You should now have a 50% blended button, but with black text. To see the hover effect, set the script of btn 2 to: on mouseEnter set the blendLevel of btn 1 to 0 end mouseEnter on mouseLeave set the blendLevel of btn 1 to 50 end mouseLeave This may not be exactly what you're looking for, but perhaps it will give you some ideas of what you can do... Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.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
AW: AW: AW: AW: AW: slown down of IDE 2.9 under windows
Hi Richard, They're up to v9.5 and still have that text limit? Odd. Coupled with the multi-year span between v7 and v8, I gotta wonder what's up with that code base. Yes they are still limited even in the upcoming 9.5 Version! They just came out last year with the 32Bit version 9 and their major development efforts are not going any more into the native development, but into the DHTML development, like you see with Safari support for ipod, which are really nice, but not of value for me. Tiemo ___ 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
AW: AW: Can you realise a transparent hover color for buttons?
Hi Ken, it's amazing, that there is still a solution, when you think you're at the end of the features :) Thank you for your ideas Tiemo -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:use-revolution- [EMAIL PROTECTED] Im Auftrag von Ken Ray Gesendet: Freitag, 12. September 2008 08:49 An: Use Revolution List Betreff: Re: AW: Can you realise a transparent hover color for buttons? that does almost the trick, beside the blendlevel does affect not only the backgroundcolor, but also the text. So you want the everything but the text to go transparent? You mentioned like the menu items of MS Office products on Win - which version of Office are you talking about? If you wanted to keep the text from blending but have everything else blend, you could overlay a transparent button on top of one that was blended 50%; if you need to have an icon attached to the button (so the text is below the icon), the transparent button's icon would be 0 and you would need to set the margins of the transparent button to shift the text label of the button down to match. Here's an example of what I mean (Rev 2.9, Windows): 1) Drag a push button off of the Tools palette 2) Open the inspector and assign icon ID 210001 (the stop sign) to the button, and change the height to 65. 3) Control-drag off a copy of the button. 4) Execute set the blendLevel of btn 1 to 50 in the message box. 5) Select the copy (btn 2), and remove the icon, change the style to Transparent. 6) Execute set the loc of btn 2 to the loc of btn 1 in the message box to overlay the two buttons. 7) Execute set the margins of btn 2 to 4,50,4,4 in the message box. You should now have a 50% blended button, but with black text. To see the hover effect, set the script of btn 2 to: on mouseEnter set the blendLevel of btn 1 to 0 end mouseEnter on mouseLeave set the blendLevel of btn 1 to 50 end mouseLeave This may not be exactly what you're looking for, but perhaps it will give you some ideas of what you can do... Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.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: Invisible volume slider on audio player
I tried with a .wav and it works fine for me. I don't know how it will work on Linux without QT.If QT is available on WinXP, RR will use 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: Zipping an application package by script
Looks good Ken. Thanks! On Fri, Sep 12, 2008 at 1:25 AM, Ken Ray [EMAIL PROTECTED] wrote: function altGoodMacSystemForUnzip ___ 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: Arrays: new and old keys, i
One advantage is that dimensions of an array (ie. sub-arrays) can be added and taken away in one simple line: put someSubArray into tBigArray[1] . delete variable tBigArray[1] avoiding the need to loop over the whole list of keys in order to delete all elements with a particular value in an item of a compound key. So in some cases, this is likely to make for code that is simpler (less error-prone) and most likely more efficient when adding/ deleting mutliple elements to/from a large 'compound' array. Then there is the whole question of hierarchical structures as discussed so far. We don't have much by way of data-structures in revolution, though I myself have found that chunk expressions and the associative arrays that we have make structuring data quite easy. But I welcome the new arrays, because there are places in some of my code that will definitely be simplified and clarified by their use. Another enhancement that has come (though not dependent on multi- dimensionality) is the promotion of arrays to 'first-class' values, so we can use them in 'send' statements. Best, Mark Can anybody explain what the new array format provides that the old did not? All these bizarre examples seem not so much as exemplifying the ``new'' features as to leave me baffled as to what added value they provide. In NONE of the supposed or alleged examples have I seen anything I could not do with old arrays. So, and I mean in really simple language (not OOP-speak), wtf is up with these new arrays? I see nothing but extra brackets. -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html -Dr. John R. Vokey ___ 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: Arrays: new and old keys, i
On 12 Sep 2008, at 07:50, John Vokey wrote: Can anybody explain what the new array format provides that the old did not? http://www.runrev.com/newsletter/july/issue53/newsletter1.php If you read the above revup article, then all the new features are described there. If that's too cumbersome, here a short list: multi dimensional: Arrays used to be of the form theArray[theKey] workarounds had to be employed to store hierarchical data in an array: put rex into theArray[animals, dogs, jorkshire, name]. Many additional steps had to be done to access such data, and certain things would have been way too complex. With the new arrays there can be true hierarchical data stored, especialy for nonsequential access, this simplifies a lot of things: put rex into theArray[animals][dogs][jorskshire] [name]. first level data structure: Arrays could not be passed as values to functions or handlers, nor returned as result from them. This again simplifies things like the recursive directory walker I made as an example yesterday in this thread. have fun Bjoernke -- official ChatRev page: http://bjoernke.com/runrev/chatrev.php Chat with other RunRev developers: go stack URL http://bjoernke.com/stacks/chatrev/chatrev1.3b3.rev; ___ 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: is there a shell command on windows to unzip a file?
'compact' is available in WinXP (do 'compact /?' on the command line for details). 'compress' is available from the resource kit, free, but not built-in. Check their flexibility: Last I used 'compact' on the command line it would not create a .zip but it does open them. I gave up on it because it'd only work on NTFS formatted drives. I think WinZip still do the 'free' command line component (which may be why the zipfldr.dll in WinXP is 'unusable' on the command line due to licencing restrictions, so it's only used via the GUI). Cheers, Luis. On 12 Sep 2008, at 05:07, Chipp Walters wrote: Not that I'm aware of. See my reply on Steve's thread for unzipping using Rev's own zip.dll. On Thu, Sep 11, 2008 at 5:05 PM, Josh Mellicker [EMAIL PROTECTED] wrote: Is there a shell command built into windows (without installing anything extra) to unzip a file? ___ 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
macworld - Rev 3.0 coming Monday
http://www.macworld.com/article/135507/2008/09/revolution.html?lsrc=rss_main Click the thumb's up symbol. sims ___ 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: Arrays: new and old keys, i
2008/9/12 John Vokey [EMAIL PROTECTED] Can anybody explain what the new array format provides that the old did not? Hi John - I'll give it a go. In simple terms it promises to replace my use of the XML externals, and other general hierarchical data structures I use frequently. I for one couldn't figure out a neat and fast way to put some arbitrary piece piece of XML into a native Rev based data structure. To his credit - Kens excellent XML library does just that - but that's no mean feat, but I should think there is a good chance Ken will take a look at the new array structure to simplify and hopefully speed up the library. The per case based hacks you can create in Rev are great, and often faster, but I have too many of them, and they are difficult to maintain and can get complex when they involve recursion - so I'd rather bury that stuff in a library. This is a big deal for me personally, as I deal a lot with XML (and more recently JSON), from the internet, and for GUI work within Rev, I use hierarchical tree widgets to display the majority of data. I rarely now use flat list displays. I use hierarchical outlines of one sort or another to display thinga like handler, stack, object, and document outlines - or image or video browsers for libraries etc. At the moment I use a mixture of hacks - list based stuff, XML based stuff in Rev, XML based stuff using externals - and they all do basically the same thing manipulate hierarchical data structures. I want to do this simpler and faster, and I want to unify the code base so that they share a common abstract native data structure, and are much simpler to maintain across products and software releases. As far as possible, I don't want to care if the data came from an RSS blog feed, and Google Web Service, a Yahoo based JSON feed, a local XML file, or a user manipulated treed widget - I want to get this data into rev and have simple to understand and fast ways to get / set / delete and navigate around that data. The new arrays offer the promise of making this simpler to do and maintain. I'd also like to be able to use this code on my web server - and I',m not sure but I for one never got the XML externals working there. Maybe I'm wrong - maybe there is an easier and faster way to take XML and store it as a native data structure in Rev? It would be an interesting challenge to see how this would be done with the couple of functions Trevor posted for converting XML back and forth? That way we could have two versions of the same function - pre-3.0 and post 3.0 and compare them for speed and complexity? ___ 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: Printing dilemma
Thanks Jacqui, Chipp, The print card from rect worked perfectly once I figured out all the parameters. Really quite easy. Once I knew what to look for, the documentation explaining it was quite good. Joe Wilkins On Sep 11, 2008, at 9:30 PM, J. Landman Gay wrote: Joe Lewis Wilkins wrote: Hey Chipp, I was hoping there was something like this floating around in Rev. I'll get back with the details if it actually does what I'm hoping for. Also look at print card from rect, which allow you to send only a portion of the card to the printer. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.co ___ 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: macworld - Rev 3.0 coming Monday
When I purchased a new license last spring, I was under the impression that I would be entitled to all of the releases made this year. Is that NOT the case? Joe Wilkins On Sep 12, 2008, at 3:02 AM, Jim Sims wrote: http://www.macworld.com/article/135507/2008/09/revolution.html?lsrc=rss_main Click the thumb's up symbol. sims ___ 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 Joe Lewis Wilkins [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
Re: macworld - Rev 3.0 coming Monday
When you purchase a brand-new license, you get three months of updates. If you purchase what is now called a software assurance plan, you get all new versions released within 12 months/1 year from the day you purchased the pack. http://www.runrev.com/whats-new/new-lower-pricing/ If you purchased (what was then called) an update pack in Spring 2008 then the year would have run out, as we're now in late summer/autumn 2009. Suggest you write support for the particulars in your situation. The good news is that update packs/software assurance plans have gone down quite a bit in price. Joe Lewis Wilkins wrote, When I purchased a new license last spring, I was under the impression that I would be entitled to all of the releases made this year. Is that NOT the case? ___ 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: macworld - Rev 3.0 coming Monday
Is this a bug in the date routines? :) Mark On 12 Sep 2008, at 13:06, Bill Marriott wrote: If you purchased (what was then called) an update pack in Spring 2008 then the year would have run out, as we're now in late summer/autumn 2009. ___ 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: macworld - Rev 3.0 coming Monday
LOL -- Indeed, looks like my brain needs some more debugging! make that 2007/2008 ;) Mark Smith [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is this a bug in the date routines? :) Mark On 12 Sep 2008, at 13:06, Bill Marriott wrote: If you purchased (what was then called) an update pack in Spring 2008 then the year would have run out, as we're now in late summer/autumn 2009. ___ 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
First Class Arrays: good news and feature requests
Oh joy storing the new arrays works! Yes, first lets start with some congratulations! We can now set and get arrays as stored binary custom properties of controls! Now I may be wrong? Possibly this was added earlier and i have not noticed? But I for one have been using a library to get around the old limitations of storing arrays as custom properties (using the rather strange syntax of: set the customproperties [colour_Properties] of this card to dataArray Now we can do this: set the colour_Properties of this card to dataArray which is terific, as this would not work for arrays before. I was half way through filing a feature request for that one :) *Now the bad news* While we can pass an array to a function or a command - we still can't do this for a setprop handler! This is not only inconsistent with the new behaviour described above, it was akward even in earlier versions for anyone defining their own custom properties of controls. Its natural to assume if you have a getprop theri is a matching setprop, and it is useful often to return arrays from getprop handlers. But while you can do this for getprops the symetry is broken when you want to set a property to the value of an array. This becomes really important when you start to define rich interfaces to widgets or groups that you want to allow other people to manipulate. Easiest to describe with a example: * Example: creating useful user interfaces* Below is a simplified example of the sort of interfaces we might wish to create to our controls. There are many many richer examples, but to get the point across I've defined a property which manipulates some key visual properties of a group. In the example we have a group and we want to be able to easily fetch and set its display data (in the example colours) in a similar way that rev stores a controls properties as an array. getprop colour_Properties put the backgroundcolor of me into colourArray [back] put the foregroundcolor of me into colourArray [fore] return colourArray end colour_Properties setprop colour_Properties colourArray if keys(colourArray) is empty then beep answer warning Not first class arrays! else set the backgroundcolor of me to colourArray [back] set the foregroundcolor of me to colourArray [fore] end if end colour_Properties Unfortunately this does did not work in the old array structures, and has not been added to the new ones. So you can't do things like: on mouseUp get the colour_Array of btn 1 set the colour_Array of btn 2 to it end mouseUp *Feature Requests* Following on from Trevors list of features to add to the new array structure - I thought I'd file them as feature requests in bugzilla - feel free to vote for them if they are relevant to you? I've also added my pet wish as a big user of getprop / setprop handlers to make easy to use widgets (see below): 1. Allow setprop handler to use arrayshttp://quality.runrev.com/qacenter/post_bug.cgi. (for a language refinement and related example see herehttp://quality.runrev.com/qacenter/show_bug.cgi?id=4185 ) 2. Ability to reference elements of an array in the order they were added to the array http://quality.runrev.com/qacenter/show_bug.cgi?id=6955 3. Ability to reference an multi-dimensional keys dynamicallyhttp://quality.runrev.com/qacenter/show_bug.cgi?id=7166. Right now we have to build the array key reference and then use 'do'. 4. Ability to pass a key of an array by referencehttp://quality.runrev.com/qacenter/show_bug.cgi?id=7167 Trevor - I've taken the liberty of adding your feature requests where i coud not find them - so I guess you should vote on them :) * * ___ 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
Wrap and Encrypt Rev Project
I've found that PC Guard works well and easily for wrapping, encrypting, and generating serial numbers for a Revolution project (for delivery to Windows). Does anyone know of a product that works as well for Mac OSX projects? Thanks, Ted ___ 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 cgi, xmlhttprequest and http headers
Hi list, I'm using Rev cgi for an xmlhttprequest in a web page. Everything works fine, except on IE6 where the display of some xml data refuses to refresh... My question : am I right to try to set the http headers (on the Rev cgi side) so that it forces the browser to refresh the xml content ? Here's the code I'm using to do so : put Cache-Control: no-cache into myHeaders put cr Pragma: no-cache, must-revalidate after myHeaders put cr Expires: 0 after myHeaders set the httpheaders to myHeaders I might be missing something, because even if I include the above code in my cgi script, the xml content still doesn't refresh in IE6... Thanks in advance, JB ___ 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: First Class Arrays: good news and feature requests
On Sep 12, 2008, at 8:40 AM, David Bovill wrote: 1. Allow setprop handler to use arrayshttp://quality.runrev.com/qacenter/post_bug.cgi. Here is the link to that request: http://quality.runrev.com/qacenter/show_bug.cgi?id=7165 2. Ability to reference elements of an array in the order they were added to the array http://quality.runrev.com/qacenter/show_bug.cgi?id=6955 3. Ability to reference an multi-dimensional keys dynamicallyhttp://quality.runrev.com/qacenter/show_bug.cgi?id=7166. Right now we have to build the array key reference and then use 'do'. 4. Ability to pass a key of an array by referencehttp://quality.runrev.com/qacenter/show_bug.cgi?id=7167 Trevor - I've taken the liberty of adding your feature requests where i coud not find them - so I guess you should vote on them :) Thanks for logging these David. Votes added. Regards, -- Trevor DeVore Blue Mango Learning Systems www.bluemangolearning.com-www.screensteps.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
Re: PCWorld
Wow, you guys have almost voted us onto the top page. Just a couple more votes to go :) Way to go! Thanks for giving 3.0 such a warm welcome. While you're all in the mood, I wonder if any of you would like to review version 3 on Versiontracker? Link is http://www.versiontracker.com/dyn/moreinfo/macosx/20269 Warm Regards Heather Wearing the Listmom Hat On 11 Sep 2008, at 18:26, Bob Sneidar wrote: Me 2. Bob Sneidar IT Manager Logos Management Calvary Chapel CM On Sep 11, 2008, at 10:22 AM, J. Landman Gay wrote: Chris Sheffield wrote: Way to go RunRev. I may be wrong, but this is the first time in my memory that there has been an announcement on PCWorld. http://www.pcworld.com/article/150946/.html?tk=rss_news Congratulations! Wow, that's great! I just clicked the thumbs up icon. :) -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.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 Heather Nagey Customer Services Manager Runtime Revolution Ltd http://www.runrev.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
Re: macworld - Rev 3.0 coming Monday
Joe, your license is still good for 3.0, if you're having a problem getting it working please write to support. cheers Heather On 12 Sep 2008, at 12:20, Joe Lewis Wilkins wrote: When I purchased a new license last spring, I was under the impression that I would be entitled to all of the releases made this year. Is that NOT the case? Joe Wilkins On Sep 12, 2008, at 3:02 AM, Jim Sims wrote: http://www.macworld.com/article/135507/2008/09/revolution.html? lsrc=rss_main Click the thumb's up symbol. sims ___ 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 Joe Lewis Wilkins [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 Heather Nagey Customer Services Manager Runtime Revolution Ltd http://www.runrev.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
Checking to see if another program has your database open
Someone gave me this excellent check routine to see if a Valentina database is open in RunRev: * * *function* CheckDatabase *put* Valentina_CacheSize() into var *if* var1 *then* *put* false into tOpen *else* *put* true into tOpen *end* *if* *return* tOpen *end* CheckDatabase But how do I check to see if Valentina Studio (or another program) has the database open? When running the database client side if Valentina Studio has it open and then you try to open it with RunRev you get an instant catastrophic crash so I need a routine to check in RunRev first to see if another program has like valentina studio has the same database open before I open it with RunRev. The above routine does not work for that. Can anyone please suggest something? By the way I reported this in Mantis for Valentina but I've given up reporting bugs in Bugzilla at least until there is an easier way to do it (similar to Mantis or RevZilla -- I haven't checked has RevZilla been updated to work with the new system?) ___ 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
Checking to see if database is in use by another program.
Someone gave me this excellent check routine to see if a database is open in RunRev: * * *function* CheckDatabase *put* Valentina_CacheSize() into var *if* var1 *then* *put* false into tOpen *else* *put* true into tOpen *end* *if* *return* tOpen *end* CheckDatabase But how do I check to see if Valentina Studio has the database open? When running the database client side if Valentina Studio has it open and then you try to open it with RunRev you get an instant crash so I need a routine to check in RunRev first to see if another program like valentina studio has my database open before I open it with RunRev. The above routine does not work for that. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: QT: how do I determine wheter a chosen file is within the same folder as a new chosen destination folder?
Ken Ray wrote: if (char 1 to length(bMap) of bLijst) = bMap then -- in same folder else -- in different folder end if Rev 2.9 supports a new begins with operator for string comparisons, so the above could be written as: if bLijst begins with bMap then -- in same folder else -- in different folder end if While both forms execute in just a fraction of a millisecond, the new begins with form runs about 25% faster. There is also a new ends with operator as well. Good times -- 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
Re: QT: how do I determine wheter a chosen file is within the same folder as a new chosen destination folder?
Hi Richard, Thanks for your reply, I am still here with RR 2.7.4 on OSX. Maybe I'll buy the new version 3.0 when I got enough money to buy it. I still use RR as a hobby :-) Greetings, William 2008/9/12 Richard Gaskin [EMAIL PROTECTED] Ken Ray wrote: if (char 1 to length(bMap) of bLijst) = bMap then -- in same folder else -- in different folder end if Rev 2.9 supports a new begins with operator for string comparisons, so the above could be written as: if bLijst begins with bMap then -- in same folder else -- in different folder end if While both forms execute in just a fraction of a millisecond, the new begins with form runs about 25% faster. There is also a new ends with operator as well. Good times -- 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: Checking to see if database is in use by another program.
So far I've received this reply: Dies ist eine automatisch erstellte Benachrichtigung über den Zustellstatus. Übermittlung an folgende Empfänger fehlgeschlagen. [EMAIL PROTECTED] Final-Recipient: rfc822;[EMAIL PROTECTED] [EMAIL PROTECTED] Action: failed Status: 5.1.1 ___ 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: macworld - Rev 3.0 coming Monday
Heather, thanks for the clarification. The 3.0 beta that I was using has expired, so I should download a release version? I didn't know there was one. I'll give it a go this PM. Joe Wilkins On Sep 12, 2008, at 7:32 AM, Heather Nagey wrote: Joe, your license is still good for 3.0, if you're having a problem getting it working please write to support. cheers Heather On 12 Sep 2008, at 12:20, Joe Lewis Wilkins wrote: When I purchased a new license last spring, I was under the impression that I would be entitled to all of the releases made this year. Is that NOT the case? Joe Wilkins On Sep 12, 2008, at 3:02 AM, Jim Sims wrote: http://www.macworld.com/article/135507/2008/09/revolution.html?lsrc=rss_main Click the thumb's up symbol. sims ___ ___ 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: Arrays: new and old keys
Subject: Re: Arrays: new and old keys Then there is the whole question of hierarchical structures as discussed so far. Can anybody explain what the new array format provides that the old did not? All these bizarre examples seem not so much as exemplifying the ``new'' features as to leave me baffled as to what added value they provide. In NONE of the supposed or alleged examples have I seen anything I could not do with old arrays. So, and I mean in really simple language (not OOP-speak), wtf is up with these new arrays? I see nothing but extra brackets. Let's look at knowing XML hierarchical structures and not knowing them. If you are passing or storing sales catalog data that you know the hierarchical structure of then you can populate your multidimensional array numerically by use of a pull parser. If parsing unknown XML then examining the hierarchical structure of the XML is the only way to go. You are better off not using a pull-parser. You can use numerically structured known multidimensional array structures to create known XML hierarchical structures. In all that you have a database of stored data in your running software and as XML your database is stored as same structured XML. With a pull-parser you can collect all the data that applies to any catalog number (not a sequential number of an array location) in your XML. With the same kind of pull-parser logic you can store each item in the catalog with a combined form of numerical and relational keys. put myArray[#476532][4][3] into shippingPriceWestCoast You can imagine the XML equivalent to this: item number=[#476532 categoryWheel Parts/category descriptionblah blah/description cost$249.99/cost shipping east/east middle/middle west$12.55/west /shipping /item That's one way that I use dimensional XML/data/array structures. You can even compress base64 binary data and store it in this way. When you know the structure formation type then you have very fast and powerful access. ___ 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: Arrays: new and old keys, i
Hi, John, I don't have 3.0 yet, but this is my take on multidimesional arrays Rev Associative arrays use keys that have to be unique. Multidimensional arrays, the keys have to be unique at each level arr[primary][secondary][tertiary] arr[same][same][same] -- is allowed arr[bird][robin][male] arr[bird][seagull][male] arr[party][attendees][female][Jerri] add more key combinations in the same array variable and the number of key levels do not have to be uniform. --create an array for the square footages of a house put 150 into HouseSqftArr[bedroom][master] put 125 into HouseSqftArr[bedroom][guest] put 135 into HouseSqftArr[bedroom][second] -- more intricate is to put the 'sqft' as a key -- then add more primary keys (paint color, flooring,..) put 150 into HouseArr[sqft][bedroom][master] put 125 into HouseArr[sqft][bedroom][ guest] put 130 into HouseArr[sqft][bedroom][ second] --using a single array for cataloging home parameters put cream into HouseArr[paint color][bedroom][ master] put celery into HouseArr[paint color][bedroom][ guest] put yellow into HouseArr[paint color][bedroom][ second] put blue into HouseArr[paint color][kitchen][ trim] put oyster into HouseArr[paint color][kitchen][ wall] put 60x42 into HouseArr[window size][kitchen][west wall] put 60x32 into HouseArr[window size][kitchen][south wall] put 60x60 into HouseArr[window size][dining room][south wall] put hardwood into HouseArr[flooring][dining room] put 2 into HouseArr[walk in closet][count] put 12 into HouseArr[walk in closet][master bdrm][width] put 8 into HouseArr[walk in closet][master bdrm][length] put 8 into HouseArr[walk in closet][guest bdrm][width] put 8 into HouseArr[walk in closet][guest bdrm][length] put overflowing into HouseArr[walk in closet][master bdrm][status] put 12% into HouseArr[walk in closet][master bdrm][husband's portion] put 82% into HouseArr[walk in closet][master bdrm][wife's portion] put 2% into HouseArr[walk in closet][master bdrm][misc storage portion] - put HouseArr[walk in closet] into closetOnlyArr put HouseArr[paint color] into allRoomsPaintOnlyArr put HouseArr[paint color][bedroom] into bdrmPaintOnlyArr -- put HouseArr[sqft] into sqftArr put 0 into totalArea repeat for each key KY in the keys of sqftArr add sqftArr[KY] to totalArea end repeat On 9/11/08 10:50 PM, John Vokey [EMAIL PROTECTED] wrote: On 11-Sep-08, at 7:24 PM, [EMAIL PROTECTED] wrote: On Sep 11, 2008, at 5:55 PM, Björnke von Gierke wrote: Now I understand, I didn't consider not to tell rev how many sub arrays there would be. I have no clue when this would be useful though, maybe you can explain that? Sure. One thing that the ability to dynamically specify a key would do is open up additional algorithms. Let's take the XML for example. T ... ellipsis intentional Can anybody explain what the new array format provides that the old did not? All these bizarre examples seem not so much as exemplifying the ``new'' features as to leave me baffled as to what added value they provide. In NONE of the supposed or alleged examples have I seen anything I could not do with old arrays. So, and I mean in really simple language (not OOP-speak), wtf is up with these new arrays? I see nothing but extra brackets. -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html -Dr. John R. Vokey ___ 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: macworld - Rev 3.0 coming Monday
I tried that, but the thumbs up symbol was unresponsive (as far as I can tell). Paul Gabel --- On Sep 12, 2008, at 3:02 AM, Jim Sims wrote: http://www.macworld.com/article/135507/2008/09/revolution.html?lsrc=rss_main Click the thumb's up symbol. sims ___ 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: macworld - Rev 3.0 coming Monday
Down the bottom - the unresponsive one is the result 2008/9/12 Paul Gabel [EMAIL PROTECTED] I tried that, but the thumbs up symbol was unresponsive (as far as I can tell). Paul Gabel --- On Sep 12, 2008, at 3:02 AM, Jim Sims wrote: http://www.macworld.com/article/135507/2008/09/revolution.html?lsrc=rss_main Click the thumb's up symbol. sims ___ 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: PCWorld
I just noticed the VersionTracker entry http://www.versiontracker.com/dyn/moreinfo/macosx/20269 --- [quote from web page ] Operating System Requirements: This product is designed to run on the following operating systems: * Mac OS X 10.5 Intel * Mac OS X 10.5 PPC * Mac OS X 10.4 Intel * Mac OS X 10.4 PPC * Mac OS X 10.3.9 * Mac OS X 10.3 * Mac OS X 10.2 Is version 3.0 of Rev OSX only? Jim Ault Las Vegas On 9/12/08 7:27 AM, Heather Nagey [EMAIL PROTECTED] wrote: Wow, you guys have almost voted us onto the top page. Just a couple more votes to go :) Way to go! Thanks for giving 3.0 such a warm welcome. While you're all in the mood, I wonder if any of you would like to review version 3 on Versiontracker? Link is http://www.versiontracker.com/dyn/moreinfo/macosx/20269 Warm Regards Heather ___ 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: Wrap and Encrypt Rev Project
Hi Ted, I do it all with Revolution :-) -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com http://www.salery.biz http://facebook.economy-x-talk.com Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html for more info. On 12 sep 2008, at 16:24, Ted wrote: I've found that PC Guard works well and easily for wrapping, encrypting, and generating serial numbers for a Revolution project (for delivery to Windows). Does anyone know of a product that works as well for Mac OSX projects? Thanks, Ted ___ 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: PCWorld
On Sep 12, 2008, at 6:22 PM, Jim Ault wrote: I just noticed the VersionTracker entry http://www.versiontracker.com/dyn/moreinfo/macosx/20269 snip Is version 3.0 of Rev OSX only? That link is for the OS X part of versiontracker see: http://www.versiontracker.com/dyn/moreinfo/win/21251 sims ClipaSearch Pro http://www.ClipaTools.com Across Platforms - Code and Culture http://www.ezpzapps.com/blog/ ___ 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: Arrays: new and old keys, i
Trevor- Thursday, September 11, 2008, 2:20:36 PM, you wrote: I'm thinking of how PHP behaves. Arrays in PHP know the order that elements were added so that when you use foreach you get the elements in that same order. I always found this very useful when working with arrays in PHP. AFAIK the order of array keys in for each in rev is undefined, so an engine change that determined the order wouldn't break any existing code. But I'm sorry to say that I can't think of a situation in which chronological order would be helpful. Obviously you've got a scenario where this works - could you enlighten me? -- -Mark Wieder [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
Re: Arrays: new and old keys
item number=#476532 categoryWheel Parts/category descriptionblah blah/description cost$249.99/cost shipping east/east middle/middle west$12.55/west /shipping /item put myArray[#476532][4][3] into shippingPriceWestCoast I would assume you'd also be able to do: put myArray[#476532][shipping][west] into shippingPriceWestCoast Right? Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.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
Re: Arrays: new and old keys, i
On Sep 12, 2008, at 12:37 PM, Mark Wieder wrote: But I'm sorry to say that I can't think of a situation in which chronological order would be helpful. Obviously you've got a scenario where this works - could you enlighten me? I can try :-) Let's look at a few examples. I will start with a simple example that mostly affects syntax. You provided an example of using integers in order to access your array values in a logical order. That is a simple enough repeat loop as we can use the extents property: == repeat with i = 1 to item 2 of the extents of theLessonsA ... end repeat == If Rev remembered the order you added the keys (assuming you added sequentially starting at 1) your code would look like this: == repeat for each key theIndex in theLessonsA ... end repeat == I prefer the later code myself. As a second example let's look at keys that aren't numeric but whose order is important. If you are converting XML to an array you may just want to use the XPATH syntax for storing arrays of children nodes. Something like this: [1][step[1]] [1][step[2]] If I want to iterate through the keys of [lessons] in the correct order I have to extract the keys, sort and then iterate: == put the keys of theLessonsA[1] into theKeys set the itemdelimiter to [ sort theKeys numeric by the last item of each -- 1], 2], 3], etc. repeat for each line theKey in theKeys ... end repeat == If Rev remembered the order that the keys were added then the code would be: == repeat for each key theIndex in theLessonsA ... end repeat == Much cleaner. To finish with, let's look at another XML example I grabbed from one of the w3schools samples. breakfast_menu food nameBelgian Waffles/name price$5.95/price descriptiontwo of our famous Belgian Waffles with plenty of real maple syrup/description calories650/calories /food ... /breakfast_menu If I convert the XML to an array it might look like this: [breakfast_menu][food][1][name] [breakfast_menu][food][1][price] [breakfast_menu][food][1][description] [breakfast_menu][food][1][calories] [breakfast_menu][food][2][name] [breakfast_menu][food][2][price] [breakfast_menu][food][2][description] [breakfast_menu][food][2][calories] What if I want to display the array in a field in Revolution? == repeat with i = 1 to item 2 of the extents of theArray[breakfast_menu][food] put Food item: i cr after theText repeat for each key theKey in theArray[breakfast_menu][food][i] put theKey : theArray[breakfast_menu][food][i] [theKey] cr after theText end repeat end repeat set the text of field 1 to theText == But wait, there is a problem here. Since the order of keys of Revolution is undefined I am not guaranteed that the list of food properties will print in the same order for each food item. That means I have to enforce the order myself: Predefined: repeat for each item theKey in name,price,description,colories Sort: put the keys of theArray[breakfast_menu][food][i] into theKeys sort theKeys There would be no need to go through these extra steps if the array always spit out keys in the order they were added. Regards, -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Developer Resources: http://revolution.bluemangolearning.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
Re: Arrays: new and old keys, i
Can anybody explain what the new array format provides that the old did not? All these bizarre examples seem not so much as exemplifying the ``new'' features as to leave me baffled as to what added value they provide. In NONE of the supposed or alleged examples have I seen anything I could not do with old arrays. So, and I mean in really simple language (not OOP-speak), wtf is up with these new arrays? I see nothing but extra brackets. Well it's not so much what you can do that you couldn't do before, but primarily the *ease* at which you can do things now. Here's what I mean... suppose that you were keeping track of parts and components for those parts that were being ordered, along with the style of the component and the quantity ordered. Assume also there are thousands of parts and thousands of components for those parts that could have been ordered. In the old format, I might set up an array with this format using underscores as a separator (I use the A suffix on the variable to indicate it's an array): myOrderA[part_component_style] = value of element is quantity So I'd do this: put 2 into myOrderA[widget_mountingscrew_standard] put 1 into myOrderA[widget_mountingscrew_flattop] put 2 into myOrderA[widget_bracket_small] put 3 into myOrderA[thingimajig_bracket_large] If I wanted to get a simple unique list of what components were ordered for the widget part from this array, I'd have to loop through all the keys in the array: local myOrderA answer GetComponents(widget) function GetComponents pPart put into tList set the itemDel to _ repeat for each line tKey in (the keys of myOrderA) if item 1 of tKey = pPart then if item 2 of tKey is not among the lines of tList then put item 2 of tKey cr after tList end if end if end repeat delete char -1 of tList -- remove trailing CR return tList end GetComponents With the new array structure, the data would be entered like this: put 2 into myOrderA[widget][mountingscrew][standard] put 1 into myOrderA[widget][mountingscrew][flattop] put 2 into myOrderA[widget][bracket][small] put 3 into myOrderA[thingimajig][bracket][large] and you'd get the list of components for the widgets this way: function GetComponents pPart return the keys of myOrderA[pPart] end GetComponents That's just one example... Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.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
Re: QT: how do I determine wheter a chosen file is within the same folder as a new chosen destination folder?
Rev 2.9 supports a new begins with operator for string comparisons, so the above could be written as: I had totally forgotten about that, Richard... thanks for the reminder! (Now back to patch my code... ;-) Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.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
Re: Checking to see if another program has your database open
On Sep 12, 2008, at 7:47 AM, william humphrey wrote: Someone gave me this excellent check routine to see if a Valentina database is open in RunRev: * * *function* CheckDatabase *put* Valentina_CacheSize() into var *if* var1 *then* *put* false into tOpen *else* *put* true into tOpen *end* *if* *return* tOpen *end* CheckDatabase But how do I check to see if Valentina Studio (or another program) has the database open? When running the database client side if Valentina Studio has it open and then you try to open it with RunRev you get an instant catastrophic crash so I need a routine to check in RunRev first to see if another program has like valentina studio has the same database open before I open it with RunRev. The above routine does not work for that. Can anyone please suggest something? By the way I reported this in Mantis for Valentina but I've given up reporting bugs in Bugzilla at least until there is an easier way to do it (similar to Mantis or RevZilla -- I haven't checked has RevZilla been updated to work with the new system?) ___ Hi William, On January 16, 2008 I asked a question about how to determine if a database is open. The question is listed below. There were answers and question that I asked about the answers. Look at the thread carefully. I believe it includes the answer but after that I focused on other parts of Valentina so I still need to do to. It would be nice if they included a function with Valentina to give a simple true or false if a database is open instead of looking at the list. I don't think they understand how important this would be for Rev users so they probably will not make the function. -=JB=- ___ 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: Checking to see if another program has your database open
On Sep 12, 2008, at 7:47 AM, william humphrey wrote: Someone gave me this excellent check routine to see if a Valentina database is open in RunRev: * * *function* CheckDatabase *put* Valentina_CacheSize() into var *if* var1 *then* *put* false into tOpen *else* *put* true into tOpen *end* *if* *return* tOpen *end* CheckDatabase But how do I check to see if Valentina Studio (or another program) has the database open? When running the database client side if Valentina Studio has it open and then you try to open it with RunRev you get an instant catastrophic crash so I need a routine to check in RunRev first to see if another program has like valentina studio has the same database open before I open it with RunRev. The above routine does not work for that. Can anyone please suggest something? By the way I reported this in Mantis for Valentina but I've given up reporting bugs in Bugzilla at least until there is an easier way to do it (similar to Mantis or RevZilla -- I haven't checked has RevZilla been updated to work with the new system?) ___ Hi William, On January 16, 2008 I asked a question about how to determine if a database is open. The question is listed below. There were answers and question that I asked about the answers. Look at the thread carefully. I believe it includes the answer but after that I focused on other parts of Valentina so I still need to do to. It would be nice if they included a function with Valentina to give a simple true or false if a database is open instead of looking at the list. I don't think they understand how important this would be for Rev users so they probably will not make the function. -=JB=- I am trying to check if a database is open or not. I use the following: on mouseUp answer file Select DB: put it into dbPath if dbPath is empty then exit mouseUp put VDataBase_IsOpen(dbPath) into var put var end mouseUp I have checked and dbPath contains the proper path for the database I select. If the database is open this should put True into the message box but all it does is show an empty message box. Anyone know what I am doing wrong or how to check for the open status of a database? thanks, -=JB=- ___ Valentina mailing list [EMAIL PROTECTED] http://lists.macserve.net/mailman/listinfo/valentina ___ 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: Checking to see if another program has your database open
Thanks for your prompt answer JB. I searched the database of old strings and I cannot find any answer for how to check if the database is being used by another program. The only answers I found were: 1. Don't do that ): -- figured that one out myself as it results in instant crash on Mac OS. I believe that on windows other bad things happen. 2. Use excellent multi-user server version of Valentina. Both of those are excellent answers but I'm still looking for a way to check if the database is open by another program from within RunRev. There must be a way to do this. PS - When I post to the RunRev mailing list I get a German reply that says something about my post not being accepted. On 9/12/08, -= JB =- [EMAIL PROTECTED] wrote: On Sep 12, 2008, at 7:47 AM, william humphrey wrote: Someone gave me this excellent check routine to see if a Valentina database is open in RunRev: * * *function* CheckDatabase *put* Valentina_CacheSize() into var *if* var1 *then* *put* false into tOpen *else* *put* true into tOpen *end* *if* *return* tOpen *end* CheckDatabase But how do I check to see if Valentina Studio (or another program) has the database open? When running the database client side if Valentina Studio has it open and then you try to open it with RunRev you get an instant catastrophic crash so I need a routine to check in RunRev first to see if another program has like valentina studio has the same database open before I open it with RunRev. The above routine does not work for that. Can anyone please suggest something? By the way I reported this in Mantis for Valentina but I've given up reporting bugs in Bugzilla at least until there is an easier way to do it (similar to Mantis or RevZilla -- I haven't checked has RevZilla been updated to work with the new system?) ___ Hi William, On January 16, 2008 I asked a question about how to determine if a database is open. The question is listed below. There were answers and question that I asked about the answers. Look at the thread carefully. I believe it includes the answer but after that I focused on other parts of Valentina so I still need to do to. It would be nice if they included a function with Valentina to give a simple true or false if a database is open instead of looking at the list. I don't think they understand how important this would be for Rev users so they probably will not make the function. -=JB=- I am trying to check if a database is open or not. I use the following: on mouseUp answer file Select DB: put it into dbPath if dbPath is empty then exit mouseUp put VDataBase_IsOpen(dbPath) into var put var end mouseUp I have checked and dbPath contains the proper path for the database I select. If the database is open this should put True into the message box but all it does is show an empty message box. Anyone know what I am doing wrong or how to check for the open status of a database? thanks, -=JB=- ___ Valentina mailing list [EMAIL PROTECTED] http://lists.macserve.net/mailman/listinfo/valentina ___ 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 ___ 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: Checking to see if another program has your database open
On 12/09/08 at 15:07 -0400 william humphrey apparently wrote: Thanks for your prompt answer JB. I searched the database of old strings and I cannot find any answer for how to check if the database is being used by another program. The only answers I found were: 1. Don't do that ): -- figured that one out myself as it results in instant crash on Mac OS. I believe that on windows other bad things happen. 2. Use excellent multi-user server version of Valentina. Both of those are excellent answers but I'm still looking for a way to check if the database is open by another program from within RunRev. There must be a way to do this. The only way to check whether a file (a database in this case) is open from another program is to ask Finder through AppleScript or another program if the file-is-busy flag is set. On the other hand, Valentina should not crash but return system error that file is in use (code -31 if my memory doesn't fail me). It used to do that for sure, so I suggest you report this crash to Valentina's Mantis, so Ruslan's crew can look at it. Robert ___ 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: Checking to see if Valentina database is open RunRev
On 9/12/08 10:10 PM, william humphrey [EMAIL PROTECTED] wrote: Hi William, Hi JB, 1) we have function VDatabase_IsOpen() 2) your main trouble is from misunderstanding of one important point. ** Valentina db DO NOT provide SHARED ACCESS to disk files. So this is wrong task: how I can get info if db is opened by another application. Db must be opened in EXCLUSIVE mode. So if app1 have open db then app2 just must not be able open it. ** we have relaxed this requirement to allow open db for second app in READ ONLY mode. ** we allow set flag Read Only on db disk files, then every app will open it in READ ONLY mode. And you have trouble on OS X only because OS X itself do not provide exclusive mode like Linux. Official solution is: set of applications which can open some file agree to use special db_name.lock file as indicator that file is opened. You can implement this in your app also btw, but I know you worry about Valentina Studio. Conclusion: * we need add this behavior to Vstudio also. * or may be even better into engine itself. So it will work always. I have see that for example Archicad do this lock file even on Windows. Probably they was lazy to disable this code for win. We did not implement this feature so far mainly because nobody have consider it as show stopper. Also this behavior bring new trouble: if app finish not normally then lock file is left... so nobody can open db until this file will be trashed manaully or some use 15 min timeout or Archicad offers button Open Exclusive So this lock file solved one problem, but bring more. And I still not sure we need add this inside of db engine. You can always add this technique into your REV app if you want. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] ___ 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: Checking to see if another program has your database open
On 9/12/08 10:22 PM, Robert Brenstein [EMAIL PROTECTED] wrote: 1. Don't do that ): -- figured that one out myself as it results in instant crash on Mac OS. I believe that on windows other bad things happen. Aha, so it crashes ... Yes please report this to our Mantis and we will see why and where. On Windows there is nothing bad, because second app just cannot get access to exclusive file of other app. The only way to check whether a file (a database in this case) is open from another program is to ask Finder through AppleScript or another program if the file-is-busy flag is set. On the other hand, Valentina should not crash but return system error that file is in use (code -31 if my memory doesn't fail me). It used to do that for sure, so I suggest you report this crash to Valentina's Mantis, so Ruslan's crew can look at it. Right. Well, may be we need add this .lock file to db engine for OS X and Linux, And later to see if manually trash of .lock file is enough to avoid mess with timeouts. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] ___ 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: Checking to see if Valentina database is open RunRev
On 9/12/08 10:58 PM, william humphrey [EMAIL PROTECTED] wrote: Thanks Ruslan. I just want to add the feature to my RunRev ap so that when it opens the database it checks to see if vStudio has it open and then locks it as you described. It is not a show stopper as I can just be careful. My system now is to use two copies of the database, one in each program. I only run into trouble when I need to make changes and then the nasty crash occurs. Why you just not using Valentina Server for your development then? * install vserver Office with demo license * drop your db to its database folders * connect to vserver from Vstudio first time you need do Register Database from Vstudio. so vserver will know db now. * change 1-2 lines in your REV app to connect to vserver instead of local db file And be happy :) -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] ___ 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: Arrays: new and old keys, i
2008/9/12 Mark Wieder [EMAIL PROTECTED] Trevor- Thursday, September 11, 2008, 2:20:36 PM, you wrote: I'm thinking of how PHP behaves. Arrays in PHP know the order that elements were added so that when you use foreach you get the elements in that same order. I always found this very useful when working with arrays in PHP. AFAIK the order of array keys in for each in rev is undefined, so an engine change that determined the order wouldn't break any existing code. But I'm sorry to say that I can't think of a situation in which chronological order would be helpful. Obviously you've got a scenario where this works - could you enlighten me? Mark I often need the chronological order. Examples of the top I my head include routines to parse, scripts and create outlines for handlers, or wiki text and construct outlines for titles, or tree structures where i want to store the titles and their order matters - based on an outline... in fact any example where you want to store data in an array for fast retrieval of that data associated with a line of text, and the order of the titles is not simply alphabetical but dependent on the orginal order in the document parsed. I'd probably find it harder to think of examples in which i don't need the chronological order of array keys. ___ 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: Play iTunes protected videos
On 9/11/08, Richmond Mathewson [EMAIL PROTECTED] wrote: Presumably Apple, in their infinite wisdom, have protected their media files just exactly so that everybody, including RR programmers and end-users, cannot play them. I'm not exactly sure but IMO I think Apple themselves would have been more than happy not to go through the hassle of copy protection, I believe it was all the Music and Movie companies that required this. As far as I'm aware, the reason the 'rest of the world' was so unhappy with Apple at not openning the iTunes Stores world wide when it had been available in the US for ages, was because the Music and Movie companies 'demanded' copy protections in place before it went off shore. Umm, I'm wondering also, why in your long list of media that you aren't allowed to backup, you didn't mention books. How many books have you copied just in case they get damaged. Are you unhappy that you aren't allowed to go out an photocopy the latest #1 best seller? ___ 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: Checking to see if another program has your database open PS
On 12/09/08 at 15:07 -0400 william humphrey apparently wrote: PS - When I post to the RunRev mailing list I get a German reply that says something about my post not being accepted. This is just a message that your post can't be delivered to one of the list subscribers. These messages come and go. Robert ___ 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: Play iTunes protected videos
On 12 Sep 2008, at 23:24, Kay C Lan wrote: Umm, I'm wondering also, why in your long list of media that you aren't allowed to backup, you didn't mention books. How many books have you copied just in case they get damaged. Are you unhappy that you aren't allowed to go out an photocopy the latest #1 best seller? When did the last time a book crash on you, deleting all it's content because of some error in the production of 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
List to checkboxes how to?
Hi: I create a cr delimited list of attached disks, which can have 1 to 10 lines, and I want those lines to be choices in a checkbox field which I can turn on and off, and find out which ones are checked at any given time. I thought I might be able to simply specify that the field is a checkbox field, or is a button with contents that displays as checkboxes, but that doesn't seem to be the case. I can't find an example of this basic scenario in the manual. Is there a resource I can access for how to use checkboxes in this manner? Thanks, m ___ 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: Today's Topics
Done! Judy On Sat, Sep 6, 2008 at 4:40 AM, Jerry Daniels [EMAIL PROTECTED] wrote: Not at all. Go for it, Judy! Best, Jerry Daniels Daniels Mara, Inc. Makers of GLX2 http://www.glx2.com On Sep 5, 2008, at 11:34 PM, Judy Perry wrote: So, yuppers, Jerry's thingy. I'm thinking of subbing myself! (Jerry's probably cringing) ;-) Judy On Fri, Sep 5, 2008 at 8:19 PM, Phil Davis [EMAIL PROTECTED] wrote: Take a look at Jerry's Top Ten video - pretty slick tool he has there: Analysis of this email list: http://www.revmentor.com/top-tens-public/ Cool bar graphs with wry video commentary. Phil Davis Judy Perry wrote: Ross, What does this concern? --Rev's web-based fora? --Digest form of this Use-List? --Jerry's new subscription thingy? Sorry -- not understanding the problem. Judy --more demented than usual :-/ On Fri, Sep 5, 2008 at 7:37 PM, Ross Giddings [EMAIL PROTECTED] wrote: Wouldn't it be really convenient if the items listed under Today's Topics were links to the relevant post? Would save me lots of finger-fatigue since some of them aren't relevant to Win users. (Not that I'm anti-Mac.) Ross ___ 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 -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net ___ 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
Rev Makes MacNN too!
http://www.macnn.com/articles/08/09/12/revolution.30/ I think we need some positive comments here, people :-) Judy ___ 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 3.0 problems
I do like 3.0 a lot, but there are two things that are annoying to me. Has anyone else noticed these? 1) In the new script editor, right-clicking/control-clicking on a function or handler hame is supposed to open a script editor panel for that function/handler, whichever object's script it might be in. This works for me about 20% of the time. I haven't pinned down a pattern to it, if there is one. Most of the time I get the generic Go to definition/Find in Docs/Set breakpoint/cut/copy/paste popup menu, the way I would if I right-clicked on any random word in the script. 2) More annoyingly, it used to be in versions = 2.9 that command- option[alt]-clicking (in the IDE) on a button/locked field/graphic while using the browse tool used to open the script editor for that control. Now, it opens the script editor but also passes the mouseup -- so trying to do this on a button opens the script but then triggers the button action. This is especially problematic when I then get a cannot save script while executing alert after editing and trying to save the script. For now, I have to change to the edit tool before command-option-clicking on a button to edit its script. I tried to look into the Rev 3.0 frontscripts to find out where and how the mouseup message is being passed but I can't find the place where I could tweak the rev scripts to patch this. Anyone else see this behavior? Whether yes or no to that question, any pointers on how I can block the pass mouseup in the rev scripts? BTW, Jacques, I have loved using your script editor shortcuts and I patched your frontscript so it works for me in the new script editor. Don't know if you want to release a 3.0 update of this for others... Peter M. Brigham [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
Re: is there a shell command on windows to unzip a file?
Thanks Chipp! On OS X we went with a shell command because it was so much simpler, but on Win we will have to use the Rev lib, your awesome stack will make it simpler! On Sep 11, 2008, at 9:07 PM, Chipp Walters wrote: Not that I'm aware of. See my reply on Steve's thread for unzipping using Rev's own zip.dll. On Thu, Sep 11, 2008 at 5:05 PM, Josh Mellicker [EMAIL PROTECTED] wrote: Is there a shell command built into windows (without installing anything extra) to unzip a file? ___ 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: List to checkboxes how to?
Sounds like you want a list field with multiple selections allowed. For checkboxes you'd need to create a checkbox button for each disk and then check the hilite of each checkbox. Ian On 12 Sep 2008, at 23:44, Michael wrote: Hi: I create a cr delimited list of attached disks, which can have 1 to 10 lines, and I want those lines to be choices in a checkbox field which I can turn on and off, and find out which ones are checked at any given time. I thought I might be able to simply specify that the field is a checkbox field, or is a button with contents that displays as checkboxes, but that doesn't seem to be the case. I can't find an example of this basic scenario in the manual. Is there a resource I can access for how to use checkboxes in this manner? Thanks, m ___ 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
Heads-up: MacWorld Expo
All- Believe it or not, we're coming up on another MacWorld Expo in San Francisco in January. Registration is now open and if you're coming out you can get an Expo-only pass free by using priority code MKA31884 between now and 26 September. This from today's dealfandango.com. https://register.rcsreg.com/regos-1.0/macsf2009/ga/index2.html -- -Mark Wieder [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
Re: Rev 3.0 problems
On 13 Sep 2008, at 01:25, Peter Brigham wrote: 1) In the new script editor, right-clicking/control-clicking on a function or handler hame is supposed to open a script editor panel for that function/handler ... I never used this, and when I tried it right now, it never seems to do that, I always get the context menu popup, can you explain this with a bit more details? 2) ... Now, it opens the script editor but also passes the mouseup ... Whether yes or no to that question, any pointers on how I can block the pass mouseup in the rev scripts? ... I'd say yes or no is an issue, as I often use this, and it never just passes mouseUp's on for me (though it did in some betas for 2.9), maybe there's some plugin installed, or an edit you made to the ide that causes this? sorry for not helping :( Bjoernke -- official ChatRev page: http://bjoernke.com/runrev/chatrev.php Chat with other RunRev developers: go stack URL http://bjoernke.com/stacks/chatrev/chatrev1.3b3.rev; ___ 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 3.0 problems
2) More annoyingly, it used to be in versions = 2.9 that command- option[alt]-clicking (in the IDE) on a button/locked field/graphic while using the browse tool used to open the script editor for that control. Now, it opens the script editor but also passes the mouseup -- so trying to do this on a button opens the script but then triggers the button action. This is especially problematic when I then get a cannot save script while executing alert after editing and trying to save the script. For now, I have to change to the edit tool before command-option-clicking on a button to edit its script. I tried to look into the Rev 3.0 frontscripts to find out where and how the mouseup message is being passed but I can't find the place where I could tweak the rev scripts to patch this. Anyone else see this behavior? Whether yes or no to that question, any pointers on how I can block the pass mouseup in the rev scripts? Peter, I'm not seeing this... I created a stack, added a button, set the script to: on mouseUp answer Hello end mouseUp and then Command-Option-clicked the button with the browse tool... the script editor opened, but no answer box. Is it possible it's a front/backscript or library that's being triggered? Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.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
Re: Wrap and Encrypt Rev Project
Mark Schonewille wrote: On 12 sep 2008, at 16:24, Ted wrote: I've found that PC Guard works well and easily for wrapping, encrypting, and generating serial numbers for a Revolution project (for delivery to Windows). Does anyone know of a product that works as well for Mac OSX projects? I do it all with Revolution :-) Me too. Takes only a few hours, leaves you completely in control, and works on all supported platforms. Malte made a good post on software security here a few days ago: http://mail.runrev.com/pipermail/use-revolution/2008-September/114155.html -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.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
Re: chat protocols
David, Do you have a finished Jabber application? Our Windows users use ether Spark or Pidgin and while they work ok there is room for improvement. Our Mac users use iChat. Bill On Sep 11, 2008, at 5:34 AM, David Bovill wrote: I'll be upgrading my Jabber / GoogleTalk library - once I've finished catching up with Rev 3.0. ___ 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
automating Excel
All- I had to automate importing a tab-delimited csv file into Excel yesterday and I went through a lot of trial-and-error (lots of error) in the process of figuring out enough of Excel's object model and how to use vbscript. I figured I'd save someone else some effort. And I've got a question - does anyone have any vbscript resources they use? IDEs, object model documentation, anything? Microsoft's examples don't work (I wasted several hours on that) since they rely on being in a VBA environment for Office automation: ActiveSheet, for instance, doesn't seem to exist as an object in vbscript run externally. And while TextFileTabDelimiter seems to work as a property of a QueryTable, xlDelimiter doesn't. Here's the calling code (pFile is the path to the csv file as returned by answer file): /* SendToExcel Launch Excel if possible the VBScript is stored as a custom property of the stack */ on SendToExcel pFile local tScript put the ExcelImport of this stack into tScript -- put the actual file location into the script replace $FILELOCATION with quote pFile quote in tScript try do tScript as VBScript catch e end try end SendToExcel Here's the vbscript stored as custom property ExcelImport of the stack: set objExcel= CreateObject(Excel.Application) objExcel.Visible = True dbString= $FILELOCATION connString = TEXT; + dbString objExcel.Workbooks.Add Set shCSV = objExcel.Workbooks(1).Worksheets(1) Set qtCSVData = shCSV.QueryTables.Add(connString,shCSV.Cells(1,1)) with qtCSVData .TextFileTabDelimiter = True .Refresh end with set objExcel = Nothing -- -Mark Wieder [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
Re: automating Excel
On 9/12/08 6:47 PM, Mark Wieder [EMAIL PROTECTED] wrote: All- I had to automate importing a tab-delimited csv file into Excel yesterday and I went through a lot of trial-and-error (lots of error) in the process of figuring out enough of Excel's object model and how to use vbscript. I figured I'd save someone else some effort. And I've got a question - does anyone have any vbscript resources they use? IDEs, object model documentation, anything? Microsoft's examples don't work (I wasted several hours on that) since they rely on being in a VBA environment for Office automation: ActiveSheet, for instance, doesn't seem to exist as an object in vbscript run externally. And while TextFileTabDelimiter seems to work as a property of a QueryTable, xlDelimiter doesn't. full quote below As an overview of your task, you might think about a different paradigm for this or other such projects. Write the working Excel code as VBA (one or a set of functions), then make the VB call that procedure in the workbook. I did this a few years ago with Access building a set of output tables in two Excel worksheets in a workbook where VB simply called a VBA routine (handler). It is far easier to build and debug in VBA. On another project that needed 3D plotting and a 'fly-over' automation routine, I used the INDIRECT() function in spreadsheet cells to build references using the incoming data values, especially when they were 10 not known ahead of time and 2) the number of them would vary. The better way to handle messaging for VB to VBA or reverse is to just write/read tiny text files. One example is passing the data file name to Excel VBA using a specific text file, like 'dataFilenameForXLToOpen.txt' and the VBA routine uses that name. Another example is detecting success or completion; another is reading the result of the Excel manipulations that have been writen by VBA. Hope this helps someone. Jim Ault Las Vegas On 9/12/08 6:47 PM, Mark Wieder [EMAIL PROTECTED] wrote: All- I had to automate importing a tab-delimited csv file into Excel yesterday and I went through a lot of trial-and-error (lots of error) in the process of figuring out enough of Excel's object model and how to use vbscript. I figured I'd save someone else some effort. And I've got a question - does anyone have any vbscript resources they use? IDEs, object model documentation, anything? Microsoft's examples don't work (I wasted several hours on that) since they rely on being in a VBA environment for Office automation: ActiveSheet, for instance, doesn't seem to exist as an object in vbscript run externally. And while TextFileTabDelimiter seems to work as a property of a QueryTable, xlDelimiter doesn't. Here's the calling code (pFile is the path to the csv file as returned by answer file): /* SendToExcel Launch Excel if possible the VBScript is stored as a custom property of the stack */ on SendToExcel pFile local tScript put the ExcelImport of this stack into tScript -- put the actual file location into the script replace $FILELOCATION with quote pFile quote in tScript try do tScript as VBScript catch e end try end SendToExcel Here's the vbscript stored as custom property ExcelImport of the stack: set objExcel= CreateObject(Excel.Application) objExcel.Visible = True dbString= $FILELOCATION connString = TEXT; + dbString objExcel.Workbooks.Add Set shCSV = objExcel.Workbooks(1).Worksheets(1) Set qtCSVData = shCSV.QueryTables.Add(connString,shCSV.Cells(1,1)) with qtCSVData .TextFileTabDelimiter = True .Refresh end with set objExcel = Nothing ___ 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: Play iTunes protected videos
Here in the rainforest books don't survive very long (well most of the book does except the parts, ussually a word a two on every page where the termites ate through). And CD's and DVD's are worse as the 90% + humidity makes short work of the aluminum sandwiched between the mylar. The only things that survive are media on hard drives which are kept hot with regular use. It's wonderful that movies, books, music, audio books and the like are so easily backed 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
Rev Makes macnn too!
http://www.macnn.com/articles/08/09/12/revolution.30/ I think we need some positive comments here, people :-) Judy ___ 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 Makes MacNN too!
Don't look at me I posted my comment already ;-))) Actually, thanks for the suggestion, Judy. It motivated me to post a detailed comment. On Sep 12, 2008, at 6:03 PM, Judy Perry wrote: http://www.macnn.com/articles/08/09/12/revolution.30/ I think we need some positive comments here, people :-) Judy ___ 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: automating Excel
Jim- Friday, September 12, 2008, 7:27:39 PM, you wrote: As an overview of your task, you might think about a different paradigm for this or other such projects. Write the working Excel code as VBA (one or a set of functions), then make the VB call that procedure in the workbook. Actually, that's where I started. I recorded a VBA macro of the task to be accomplished, then copied the macro into a vbs file and fiddled with it from there. I suppose I could have created a blank worksheet with that single macro and tried to automate running the macro from rev, although I don't know what the syntax would be for that. I did this a few years ago with Access building a set of output tables in two Excel worksheets in a workbook where VB simply called a VBA routine (handler). From Access this isn't a problem - Office applications can automate each other fairly easily. VBscript is a different animal from VBA, unfortunately, and in subtle ways. -- -Mark Wieder [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
Re: Arrays: new and old keys, i
Trevor- Friday, September 12, 2008, 10:22:26 AM, you wrote: To finish with, let's look at another XML example I grabbed from one of the w3schools samples. breakfast_menu food nameBelgian Waffles/name price$5.95/price descriptiontwo of our famous Belgian Waffles with plenty of real maple syrup/description calories650/calories /food ... /breakfast_menu Sorry, I still don't get it. XML is hierarchical, not chronological. The XML attributes name, price, description, and calories are in no particular order in the xml document, chronological or otherwise. If you want to enforce an order on them after the fact you have to do it yourself in some fashion. If you pull the data out of your array and make an xml document out of it you'll get the same contents you put in, irregardless of node order. -- -Mark Wieder [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
Re: Rev Makes MacNN too!
Hi Marian, Sorry if I somehow posted this twice. Couldn't tell so I posted it again! Anybody who's kill-filed me won't see either ;-) Judy On Fri, Sep 12, 2008 at 9:23 PM, Petrides, M.D. Marian [EMAIL PROTECTED] wrote: Don't look at me I posted my comment already ;-))) Actually, thanks for the suggestion, Judy. It motivated me to post a detailed comment. On Sep 12, 2008, at 6:03 PM, Judy Perry wrote: http://www.macnn.com/articles/08/09/12/revolution.30/ I think we need some positive comments here, people :-) Judy ___ 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: Checking to see if another program has your database open PS
Thanks Robert for letting me know. I'm getting them every time now and it has never happened before. I thought maybe the list was being hosted in Germany now. ___ 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: Arrays: new and old keys, i
David- Friday, September 12, 2008, 2:23:23 PM, you wrote: Mark I often need the chronological order. Examples of the top I my head include routines to parse, scripts and create outlines for handlers, or wiki text and construct outlines for titles, or tree structures where i want to store the titles and their order matters - based on an outline... in fact any example where you want to store data in an array for fast retrieval of that data associated with a line of text, and the order of the titles is not simply alphabetical but dependent on the orginal order in the document parsed. I'd probably find it harder to think of examples in which i don't need the chronological order of array keys. Still not getting it here. I often do that with arrays, but I just use a multipart key (and now I can use multidimensional array keys). I've never needed to retrieve elements in the order added and still can't see the utility of it. The following not only preserves title order, but frees you from having to add them in order... put firstTitle into tArray[1,title] put secondTitle into tArray[2,title] put fourthTitle into tArray[4,title] put thirdTitle into tArray[3,title] put the keys of tArray into tKeys filter tKeys with *,title sort tKeys -- -Mark Wieder [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
Re: automating Excel
There is an ebook by the name of Baby Steps that goes into detail about interacting with excel using vbscript. You can get it for under $5 at following link and I think its well worth the money. http://www.lulu.com/content/1578135 Also as you may know there are some useful scripts on Sons of Thunder website. Nb. I've found with the new 'do as vbscript' feature in Rev there is a slight difference to the treatment of line delimiters compared to running a vbscript using shell command. regards Martin ___ 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: Arrays: new and old keys
sorry, I'm on digest mode. put myArray[#476532][4][3] into shippingPriceWestCoast I would assume you'd also be able to do: put myArray[#476532][shipping][west] into shippingPriceWestCoast Right? Ken Ray Ken, Yes, right, you could. I'm mentioning it because you can use variables that are numeric to help you. repeat with i = 1 to 1000 if myArray[#476532][shipping][i] = Galveston,Tx then put myArray[#476532][shipping][i][price] into shippingPrice exit repeat end if end repeat So knowing what your data structure is oriented like you can write simpler code: put myArray[#476532][4][i][1] into shippingPrice ___ 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 3.0 problems
Peter Brigham wrote: BTW, Jacques, I have loved using your script editor shortcuts and I patched your frontscript so it works for me in the new script editor. Don't know if you want to release a 3.0 update of this for others... I can't even remember if I sent it to anyone else. :) If anyone is using it and wants an update, just drop me a line in email. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.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
test
test stop digest mode ___ 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