Re: missing fields in Application Browser
Thank you, Sarah. I didn't know that. Unfortunately in this case it didn't solve the problem. Time to rebuild, I guess. -Scott On Mar 7, 2010, at 9:02 PM, Sarah Reichelt wrote: On Mon, Mar 8, 2010 at 2:49 PM, Scott Morrow sc...@elementarysoftware.com wrote: Recently, in one of my projects, the Application Browser stopped showing fields that were in a group. Furthermore, the fields in this group no longer allow text to be hilited. (The text can still be edited, but not something that is really usable.) The fields are obviously still there and running put the num of flds of this cd into the message box returns 18 Yet only one field shows in the Application browser. The field that does show is not in a group. I've tried trashing the preferences file and reinstalling rev. I was hoping not to deconstruct and rebuild the groups. Has anyone else run across this? Thoughts? Rev 4.0 Enterprise Check the settings for the group in the Inspector. rev 4.0 introduced a new group property called selectGroupedControls. If this is set to true (or checked in the Inspector), then the individual members of the group will not be listed in the Application Browser. This doesn't explain why you can't hilite any text in the fields, but check the group settings and see if anything there fixes that too. HTH, Sarah ___ 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: missing fields in Application Browser
Could it be the autohilite property? On 3/8/10, Scott Morrow sc...@elementarysoftware.com wrote: Recently, in one of my projects, the Application Browser stopped showing fields that were in a group. Furthermore, the fields in this group no longer allow text to be hilited. (The text can still be edited, but not something that is really usable.) The fields are obviously still there and running put the num of flds of this cd into the message box returns 18 Yet only one field shows in the Application browser. The field that does show is not in a group. I've tried trashing the preferences file and reinstalling rev. I was hoping not to deconstruct and rebuild the groups. Has anyone else run across this? Thoughts? Rev 4.0 Enterprise Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email sc...@elementarysoftware.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 -- Sent from my mobile device ___ 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: missing fields in Application Browser
Hello Martin, I did check that, thanks. I'm suspicious that it may have something to do with the selectGroupedControls property that Sarah mentioned. Changing this setting for these groups has no effect at this point and they behave as if the property is stuck as true. -Scott On Mar 8, 2010, at 1:59 AM, Martin Blackman wrote: Could it be the autohilite property? On 3/8/10, Scott Morrow sc...@elementarysoftware.com wrote: Recently, in one of my projects, the Application Browser stopped showing fields that were in a group. Furthermore, the fields in this group no longer allow text to be hilited. (The text can still be edited, but not something that is really usable.) The fields are obviously still there and running put the num of flds of this cd into the message box returns 18 Yet only one field shows in the Application browser. The field that does show is not in a group. I've tried trashing the preferences file and reinstalling rev. I was hoping not to deconstruct and rebuild the groups. Has anyone else run across this? Thoughts? Rev 4.0 Enterprise Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email sc...@elementarysoftware.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: reading and converting web page HTML text
On Mar 7, 2010, at 10:51 PM, Ken Ray wrote: Apparently numbers less than 8 are interpreted as HTML relative size and larger numbers specify point size. Could this have something to do with the recently mentioned problems with font sizes on Unix platforms? If somehow the rev unix engine is mixing these up, then something intended to be size 14 could display at size 4. But I know very little about this stuff, it's just a thought. Actually it's the way web browsers handled it a long time ago when real font sizes were introduced; they had to remain backwards compatible with the previous method but also adopt the new one. OK. But could this be what isn't working right in Rev on the unix platforms, or is that unlikely? -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ 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: missing fields in Application Browser
Not sure if this would cause the problem, but once I had gotten myself into a pretty ugly situation that was causing some very odd behaviors: * I had a group (A) that happened to contain another group (B). * While editing group A, I had accidentally clicked group B (with that selectGroupedControls property turned on). * When I clicked Edit group in the toolbar to stop editing group A I actually started editing group B. To make a long story short, I somehow ended up regrouping everything a second time (so group A was now a subgroup of Z), and that ended up causing me no end of grief until I figured it out and ungrouped them. Jeff M. On Mar 8, 2010, at 4:18 AM, Scott Morrow wrote: Hello Martin, I did check that, thanks. I'm suspicious that it may have something to do with the selectGroupedControls property that Sarah mentioned. Changing this setting for these groups has no effect at this point and they behave as if the property is stuck as true. -Scott On Mar 8, 2010, at 1:59 AM, Martin Blackman wrote: Could it be the autohilite property? On 3/8/10, Scott Morrow sc...@elementarysoftware.com wrote: Recently, in one of my projects, the Application Browser stopped showing fields that were in a group. Furthermore, the fields in this group no longer allow text to be hilited. (The text can still be edited, but not something that is really usable.) The fields are obviously still there and running put the num of flds of this cd into the message box returns 18 Yet only one field shows in the Application browser. The field that does show is not in a group. I've tried trashing the preferences file and reinstalling rev. I was hoping not to deconstruct and rebuild the groups. Has anyone else run across this? Thoughts? Rev 4.0 Enterprise Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email sc...@elementarysoftware.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 ___ 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: reading and converting web page HTML text
Peter Brigham MD wrote: On Mar 7, 2010, at 10:51 PM, Ken Ray wrote: Apparently numbers less than 8 are interpreted as HTML relative size and larger numbers specify point size. Could this have something to do with the recently mentioned problems with font sizes on Unix platforms? If somehow the rev unix engine is mixing these up, then something intended to be size 14 could display at size 4. But I know very little about this stuff, it's just a thought. Actually it's the way web browsers handled it a long time ago when real font sizes were introduced; they had to remain backwards compatible with the previous method but also adopt the new one. OK. But could this be what isn't working right in Rev on the unix platforms, or is that unlikely? The main issue as far as Rev goes seems to be that Rev is doing what Firefox still does, calculating point sizes with an assumption of 72-dpi resolution, while modern OSes are largely resolution-independent. But check out the links in these posts and you'll find that only tells part of the story: http://mail.runrev.com/pipermail/use-revolution/2010-March/135800.html http://mail.runrev.com/pipermail/use-revolution/2010-March/135822.html Like so many in the Linux world have noted, Gnome simply renders too big. From the bug reports in the Gnome and Ubuntu bug databases it appears that there's an extra level of translation happening in Gnome, but before they jump on a fix they need to figure out what to do for backward compatibility. Sticky issue; glad it's theirs and not mine. :) -- Richard Gaskin Fourth World Rev training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com revJournal blog: http://revjournal.com/blog.irv ___ 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
Customizing Error Reporting Dialog
This is a wonderful option in the Bug Reports tab of the Stand Alone Application Settings. Anybody know how to customize this window which comes up? For example, I'd like to solicit the user's return email address. Ray Horsley LinkIt! Software ___ 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: Customizing Error Reporting Dialog
Ray, create your own window and look out for the errorDialog message. :D Cheers andre On Mon, Mar 8, 2010 at 4:17 PM, Ray Horsley r...@linkit.com wrote: This is a wonderful option in the Bug Reports tab of the Stand Alone Application Settings. Anybody know how to customize this window which comes up? For example, I'd like to solicit the user's return email address. Ray Horsley LinkIt! Software ___ 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.andregarzia.com All We Do Is Code. ___ 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: Customizing Error Reporting Dialog
André, Thanks! In other words, something like on errorDialog in the stack script? Ray On Mar 8, 2010, at 8:22 AM, Andre Garzia wrote: Ray, create your own window and look out for the errorDialog message. :D Cheers andre On Mon, Mar 8, 2010 at 4:17 PM, Ray Horsley r...@linkit.com wrote: This is a wonderful option in the Bug Reports tab of the Stand Alone Application Settings. Anybody know how to customize this window which comes up? For example, I'd like to solicit the user's return email address. Ray Horsley LinkIt! Software ___ 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.andregarzia.com All We Do Is Code. ___ 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: Customizing Error Reporting Dialog
errorDialog in the message path, if you have multiple stacks, you might consider a frontscript. :D On Mon, Mar 8, 2010 at 4:26 PM, Ray Horsley r...@linkit.com wrote: André, Thanks! In other words, something like on errorDialog in the stack script? Ray On Mar 8, 2010, at 8:22 AM, Andre Garzia wrote: Ray, create your own window and look out for the errorDialog message. :D Cheers andre On Mon, Mar 8, 2010 at 4:17 PM, Ray Horsley r...@linkit.com wrote: This is a wonderful option in the Bug Reports tab of the Stand Alone Application Settings. Anybody know how to customize this window which comes up? For example, I'd like to solicit the user's return email address. Ray Horsley LinkIt! Software ___ 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.andregarzia.com All We Do Is Code. ___ 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 -- http://www.andregarzia.com All We Do Is Code. ___ 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: Customizing Error Reporting Dialog
Very helpful. Thanks André! On Mar 8, 2010, at 8:39 AM, Andre Garzia wrote: errorDialog in the message path, if you have multiple stacks, you might consider a frontscript. :D On Mon, Mar 8, 2010 at 4:26 PM, Ray Horsley r...@linkit.com wrote: André, Thanks! In other words, something like on errorDialog in the stack script? Ray On Mar 8, 2010, at 8:22 AM, Andre Garzia wrote: Ray, create your own window and look out for the errorDialog message. :D Cheers andre On Mon, Mar 8, 2010 at 4:17 PM, Ray Horsley r...@linkit.com wrote: This is a wonderful option in the Bug Reports tab of the Stand Alone Application Settings. Anybody know how to customize this window which comes up? For example, I'd like to solicit the user's return email address. Ray Horsley LinkIt! Software ___ 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.andregarzia.com All We Do Is Code. ___ 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 -- http://www.andregarzia.com All We Do Is Code. ___ 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: Windows Portable???
I believe U3 is a reference to a removable media system where simply by attaching it to the computing device, it would enable software on the U3 device to become dynamically installed in the OS, and when removed the software would be dynamically uninstalled, so to speak. Like any powerful tool, it can also be used for harm rather than good. I am not sure what the safeguards are. I know of a friend who has a USB device that when plugged into a computer silently downloads all the serial numbers and the passwords it can find on a Windows box. Later he can run software on the USB device to crack the Windows passwords (not a hard feat these days as MD5 has been quite crackable for some time). hth, Bob On Mar 7, 2010, at 11:59 AM, Richmond Mathewson wrote: Subtitled: Naive Question 108. Is 'U3' the same thing as Windows Portable? ___ 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: Windows Portable???
U3 was/is a system now belonging to SanDisk for storing apps and data on a USB device - sorta lets you treat the device as a fake C drive so that you can set up launching a browser or other apps from the drive rather than from your hard disk. There was a special version of Rev that let you build your apps to work correctly with this, right out of the box, and basically set it up so you could pass their certification process easily. It is still around, but I don't think SanDisk is giving it much love any more. Best regards, Lynn Fredricks President Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server -Original Message- From: use-revolution-boun...@lists.runrev.com [mailto:use-revolution-boun...@lists.runrev.com] On Behalf Of Bob Sneidar Sent: Monday, March 08, 2010 9:02 AM To: How to use Revolution Subject: Re: Windows Portable??? I believe U3 is a reference to a removable media system where simply by attaching it to the computing device, it would enable software on the U3 device to become dynamically installed in the OS, and when removed the software would be dynamically uninstalled, so to speak. Like any powerful tool, it can also be used for harm rather than good. I am not sure what the safeguards are. I know of a friend who has a USB device that when plugged into a computer silently downloads all the serial numbers and the passwords it can find on a Windows box. Later he can run software on the USB device to crack the Windows passwords (not a hard feat these days as MD5 has been quite crackable for some time). hth, Bob On Mar 7, 2010, at 11:59 AM, Richmond Mathewson wrote: Subtitled: Naive Question 108. Is 'U3' the same thing as Windows Portable? ___ 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: Windows Portable???
On 08/03/2010 19:02, Bob Sneidar wrote: I believe U3 is a reference to a removable media system where simply by attaching it to the computing device, it would enable software on the U3 device to become dynamically installed in the OS, and when removed the software would be dynamically uninstalled, so to speak. Like any powerful tool, it can also be used for harm rather than good. I am not sure what the safeguards are. I know of a friend who has a USB device that when plugged into a computer silently downloads all the serial numbers and the passwords it can find on a Windows box. Later he can run software on the USB device to crack the Windows passwords (not a hard feat these days as MD5 has been quite crackable for some time). Funny sort of 'friend'. . . In the RunRev Studio 4 standalone settings there is an option for U3 something-or-other. Presumably (?) the good folk at RunRev have put the U3 'thing' there because they felt there was some demand for it: after all they I don't suppose they went to the effort of putting that there just for the fun of it. Also on the downloads page: http://www.runrev.com/downloads/all-downloads/full-list/ there is this: The U3 download allows you to create programs on a U3 flash drive system. In the RunRev User Guide there is this: Compatible Build your application for the U3 smart platform. For more information on U3 see http://www.u3.com. For more documentation on building U3 applications using Revolution, see the Resources/Examples/U3 Documentation.pdf file within your Revolution distribution folder. U3 Documentation.pdf is 'buried': 4.0.0-gm-1/Resources/Examples/U3 Documentation.pdf Reading the document seems to suggest that a U3 USB drive does carry something rather similar to Windows Portable. This seems to say that one can build a Windows system on a USB stick (rather like the USB Linux systems) with 1 or more RunRev standalones rolled up in it so that one can bung the USB stick into any PC USB port, boot from it into one's very own Mini Windows and run one's standalones without having to alter any OS on the PC's hard drive(s). As the whole thing sounds horribly complicated I cannot see myself getting into it right this minute . . . :) ___ 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: Windows Portable???
On 08/03/2010 19:17, Lynn Fredricks wrote: snip It is still around, but I don't think SanDisk is giving it much love any more. Quite: it does seem that it might be just the thing for people who are keen on pinching other people's data . . . doesn't exactly make me feel all warm and cuddly. ___ 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: Windows Portable???
I actually liked the U3 idea, because it let developers safely allow installs on removable media so they could be used anywhere. It's all about DRM. At Revcon II there was a guy from the company that gave a a half hour demonstration. Lynn, you were there. I immediately lost interest when it was announced to be a windows only feature. Judging by the number of Power/Macbooks in the crowd, I wasn't alone. It was an odd moment of Rev promoting a platform-specific feature. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev On 8 March 2010 09:23, Richmond Mathewson richmondmathew...@gmail.comwrote: On 08/03/2010 19:02, Bob Sneidar wrote: I believe U3 is a reference to a removable media system where simply by attaching it to the computing device, it would enable software on the U3 device to become dynamically installed in the OS, and when removed the software would be dynamically uninstalled, so to speak. Like any powerful tool, it can also be used for harm rather than good. I am not sure what the safeguards are. I know of a friend who has a USB device that when plugged into a computer silently downloads all the serial numbers and the passwords it can find on a Windows box. Later he can run software on the USB device to crack the Windows passwords (not a hard feat these days as MD5 has been quite crackable for some time). Funny sort of 'friend'. . . In the RunRev Studio 4 standalone settings there is an option for U3 something-or-other. Presumably (?) the good folk at RunRev have put the U3 'thing' there because they felt there was some demand for it: after all they I don't suppose they went to the effort of putting that there just for the fun of it. Also on the downloads page: http://www.runrev.com/downloads/all-downloads/full-list/ there is this: The U3 download allows you to create programs on a U3 flash drive system. In the RunRev User Guide there is this: Compatible Build your application for the U3 smart platform. For more information on U3 see http://www.u3.com. For more documentation on building U3 applications using Revolution, see the Resources/Examples/U3 Documentation.pdf file within your Revolution distribution folder. U3 Documentation.pdf is 'buried': 4.0.0-gm-1/Resources/Examples/U3 Documentation.pdf Reading the document seems to suggest that a U3 USB drive does carry something rather similar to Windows Portable. This seems to say that one can build a Windows system on a USB stick (rather like the USB Linux systems) with 1 or more RunRev standalones rolled up in it so that one can bung the USB stick into any PC USB port, boot from it into one's very own Mini Windows and run one's standalones without having to alter any OS on the PC's hard drive(s). As the whole thing sounds horribly complicated I cannot see myself getting into it right this minute . . . :) ___ 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: Windows Portable???
Quite: it does seem that it might be just the thing for people who are keen on pinching other people's data . . . doesn't exactly make me feel all warm and cuddly. Like many toolkits and APIs, it can be abused. It does have its uses and one nice thing about this system is that it can preserve your privacy as well. You can have your own customized browser, for example, on the drive, that has its own security and password system set up. Very useful if you are using someone elses (or public) computer and don't want to take a risk that your data will be left behind after you check your email. U3 (as a company and as a product) was quite useful, but I don't think people quite got it. They were snapped up by SanDisk and, consequently, almost no resources at SanDisk were allocated to it. I think it was done primarily to get it out of the hands of competitors. In its time though, because it was a mobile solution, it put Revolution in front of a new type of developer. I could be wrong, but I think Richard was working on a semi-similar project at one point, because U3 wasn't available on Mac or Linux. Best regards, Lynn Fredricks President Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server ___ 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
Comma-delimited values
Hello everyone, I'm creating an app that imports comma-delimited tables. A few lines might look like this, where there are 14 items per line. Mon, Jan 18 , 2010,9:14 AM,130557,4319,Trade,Buy,X,135,8.25,10,-82.5,1417.5,20,10 Mon, Jan 18 , 2010,9:14 AM,130558,4371,Accept,Your ASK,X,135,8.25,10,82.5,1582.5,0,10 My problem is that Rev treats each date in quotes as three items rather than one. I convert the comma delimiters to tab by setting the itemDelimiter to comma and then running the lines through nested repeat-for-each loops as repeat for each line thisLine in dataTable repeat for each item thisItem in thisLine put thisItem tab after newLine end repeat -- more stuff here end repeat I end up with Mon(as the first item) Jan 18 (as the second) 2010 (as the third) Any suggestions as how I might get the date treated as one item? Regards, Gregory ___ 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: Windows Portable???
stephen- Monday, March 8, 2010, 9:31:24 AM, you wrote: At Revcon II there was a guy from the company that gave a a half hour demonstration. Lynn, you were there. I immediately lost interest when it was announced to be a windows only feature. Judging by the number of Power/Macbooks in the crowd, I wasn't alone. I also remember the flack from u3 announcing that the mac u3 version would be released soon. I think that's the last time that phrase was uttered. The first, last, and only u3 version of the IDE was 2.7.4. It *was* nice to have a portable IDE that I could carry around with me without having to install the whole thing on a new computer just so I could get some work done. As it is, my license is now installed on half a dozen computers around town. -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Comma-delimited values
On 08/03/2010 19:44, Gregory Lypny wrote: Hello everyone, I'm creating an app that imports comma-delimited tables. A few lines might look like this, where there are 14 items per line. Mon, Jan 18 , 2010,9:14 AM,130557,4319,Trade,Buy,X,135,8.25,10,-82.5,1417.5,20,10 Mon, Jan 18 , 2010,9:14 AM,130558,4371,Accept,Your ASK,X,135,8.25,10,82.5,1582.5,0,10 My problem is that Rev treats each date in quotes as three items rather than one. I convert the comma delimiters to tab by setting the itemDelimiter to comma and then running the lines through nested repeat-for-each loops as repeat for each line thisLine in dataTable repeat for each item thisItem in thisLine put thisItem tab after newLine end repeat -- more stuff here end repeat I end up with Mon (as the first item) Jan 18 (as the second) 2010 (as the third) Any suggestions as how I might get the date treated as one item? Yes, although it is so goofily obvious you have probably thought about this one and rejected it: Change the commas for the bits inside the quotes to something else ( ^ * %) - dunno, any old thing that isn't a comma . . . :) ___ 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: Windows Portable???
I actually liked the U3 idea, because it let developers safely allow installs on removable media so they could be used anywhere. It's all about DRM. At Revcon II there was a guy from the company that gave a a half hour demonstration. Lynn, you were there. Yes, indeed - I invited them :-) I immediately lost interest when it was announced to be a windows only feature. Judging by the number of Power/Macbooks in the crowd, I wasn't alone. It was an odd moment of Rev promoting a platform-specific feature. That's true - but consider also that it wouldn't be in Runtime's interest to narrow all promotion to the cross-platform message. Cross platform is a key product feature of Revolution, and it does it so very well. But if you are also developing only for one platform that isnt the Mac, it shouldn't be dismissed either as a solution. There are Windows focused developers out there that have a negative gut reaction (still) with products tightly associated with Mac. Whatever your feelings about them, they still use the same type of currency as other OS users :-) One of the things I am very pleased about with releases after Revolution 3 was that Rev wasn't so tightly associated with the Mac. The more units that sell, the better funded all Revolution development is. Best regards, Lynn Fredricks President Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server ___ 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:missing field in aplication browser
Unfortunately, I don;t have an answer for this problem but wondering if anyone can help with general group maintenance question. Grouping and ungrouping objects by selecting them on a card works great in simple situations but when you have multiple levels of nested groups or hidden fields or even hidden groups (as recommended for tab controls for example), it can be a nightmare to add or delete an object. I'm wondering if I'm missing something and perhaps there's another way to add an object to a field without ungrouping and regrouping? What would be great is a drag/drop mechanism in the App Browser for example, or maybe a popup menu to select a group you want an object to be added to or removed from. Mention of the new property for groups also reminds me to ask if there is a single place where all the changes that have been made in a Rev release are documented? I haven't managed to find anything like that for 4.0 and seems like that's kinda basic doc for a new release. Pete Haworth On Mar 8, 2010, at 9:31 AM, use-revolution-requ...@lists.runrev.com wrote: Date: Sun, 7 Mar 2010 20:49:30 -0800 From: Scott Morrow sc...@elementarysoftware.com Subject: missing fields in Application Browser To: How to use Revolution use-revolution@lists.runrev.com Message-ID: 958c115d-029c-4830-a2c1-0194143f4...@elementarysoftware.com Content-Type: text/plain; charset=us-ascii Recently, in one of my projects, the Application Browser stopped showing fields that were in a group. Furthermore, the fields in this group no longer allow text to be hilited. (The text can still be edited, but not something that is really usable.) The fields are obviously still there and running put the num of flds of this cd into the message box returns 18 Yet only one field shows in the Application browser. The field that does show is not in a group. I've tried trashing the preferences file and reinstalling rev. I was hoping not to deconstruct and rebuild the groups. Has anyone else run across this? Thoughts? Rev 4.0 Enterprise Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email sc...@elementarysoftware.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: Comma-delimited values
Couple ideas for you: Loop over each word in the line and if the word doesn't have quotes, replace comma with tab: repeat with tWord = 1 to the number of words in tLine if the first char of word tWord in tLine is not quote then replace comma with tab in word tWord of tLine end if end repeat Use a regex or another search function to find quotes and skip over them, replacing commas with tabs with for everything in between. If you have access to the input data (read: from a db query or some-such), just modify it at the source. If your quoted data is always dates you could change the dates to something else. For example: repeat with tIdx = 1 to the number of words in tLine if word tIdx of tLine is a date then convert word tIdx of tLine to seconds end if end repeat And now you can do other kinds of operations on the date or even convert them back to dates later on. I wouldn't try doing anything goofy like trying to change commas within quotes to something else and then change them back. It'll lead to bugs later on I'm quite sure. This is the one thing about Rev I wish I could change... quotes should wrap items just as they wrap words. Jeff M. On Mon, Mar 8, 2010 at 11:44 AM, Gregory Lypny gregory.ly...@videotron.cawrote: Hello everyone, I'm creating an app that imports comma-delimited tables. A few lines might look like this, where there are 14 items per line. Mon, Jan 18 , 2010,9:14 AM,130557,4319,Trade,Buy,X,135,8.25,10,-82.5,1417.5,20,10 Mon, Jan 18 , 2010,9:14 AM,130558,4371,Accept,Your ASK,X,135,8.25,10,82.5,1582.5,0,10 My problem is that Rev treats each date in quotes as three items rather than one. I convert the comma delimiters to tab by setting the itemDelimiter to comma and then running the lines through nested repeat-for-each loops as repeat for each line thisLine in dataTable repeat for each item thisItem in thisLine put thisItem tab after newLine end repeat -- more stuff here end repeat I end up with Mon(as the first item) Jan 18 (as the second) 2010 (as the third) Any suggestions as how I might get the date treated as one item? Regards, Gregory ___ 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: Comma-delimited values
Hi Gregory, Does this work for you? function csv2tab theData repeat for each line myLine in theData repeat for each word myWord in myLine if char 1 of myWord is quote and (char -2 of myWord is quote or char -1 of myWord is quote) then replace comma with \# in myWord end if put myWord after myNewData end repeat put cr after myNewData end repeat replace comma with tab in myNewData replace \# with comma in myNewData return myNewData end csv2tab -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer Economy-x-Talk is always looking for new software development projects. Feel free to contact me for a quote. Op 8 mrt 2010, om 18:44 heeft Gregory Lypny het volgende geschreven: Hello everyone, I'm creating an app that imports comma-delimited tables. A few lines might look like this, where there are 14 items per line. Mon, Jan 18 , 2010,9:14 AM,130557,4319,Trade,Buy,X, 135,8.25,10,-82.5,1417.5,20,10 Mon, Jan 18 , 2010,9:14 AM,130558,4371,Accept,Your ASK,X, 135,8.25,10,82.5,1582.5,0,10 My problem is that Rev treats each date in quotes as three items rather than one. I convert the comma delimiters to tab by setting the itemDelimiter to comma and then running the lines through nested repeat-for-each loops as repeat for each line thisLine in dataTable repeat for each item thisItem in thisLine put thisItem tab after newLine end repeat -- more stuff here end repeat I end up with Mon (as the first item) Jan 18 (as the second) 2010 (as the third) Any suggestions as how I might get the date treated as one item? Regards, Gregory ___ 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: Comma-delimited values
On 08/03/2010 19:44, Gregory Lypny wrote: I'm creating an app that imports comma-delimited tables. A few lines might look like this, where there are 14 items per line. Mon, Jan 18 , 2010,9:14 AM,130557,4319,Trade,Buy,X,135,8.25,10,-82.5,1417.5,20,10 Mon, Jan 18 , 2010,9:14 AM,130558,4371,Accept,Your ASK,X,135,8.25,10,82.5,1582.5,0,10 My problem is that Rev treats each date in quotes as three items rather than one. I convert the comma delimiters to tab by setting the itemDelimiter to comma and then running the lines through nested repeat-for-each loops as repeat for each line thisLine in dataTable repeat for each item thisItem in thisLine put thisItem tab after newLine end repeat -- more stuff here end repeat I end up with Mon (as the first item) Jan 18(as the second) 2010 (as the third) Any suggestions as how I might get the date treated as one item? Add an inQuotes flag, with an initial value of false. For each item, if it has a quote in it, toggle the inQuotes flag. Then, if inQuotes is set, append a comma instead of a tab, to put the item back together again. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.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: Comma-delimited values
Gregory Lypny wrote: Hello everyone, I'm creating an app that imports comma-delimited tables. A few lines might look like this, where there are 14 items per line. Mon, Jan 18 , 2010,9:14 AM,130557,4319,Trade,Buy,X,135,8.25,10,- 82.5,1417.5,20,10 Mon, Jan 18 , 2010,9:14 AM,130558,4371,Accept,Your ASK,X,135,8.25,10,82.5,1582.5,0,10 My problem is that Rev treats each date in quotes as three items rather than one. I convert the comma delimiters to tab by setting the itemDelimiter to comma and then running the lines through nested repeat-for-each loops as repeat for each line thisLine in dataTable repeat for each item thisItem in thisLine put thisItem tab after newLine end repeat -- more stuff here end repeat I end up with Mon (as the first item) Jan 18(as the second) 2010 (as the third) Any suggestions as how I might get the date treated as one item? Almost all programs like spreadsheets that export tables in CSV format have two options that you can set: 1. You can use tab instead of comma as the value delimiter. 2. You can tell it not to use quotes around text and dates. So, export the tables in tab delimited format and without quotes. Then, when importing into Rev, *set itemdel to tab*. If your spreadsheet program insists on quotes, then *replace quote with empty in tImportedData* after importing the data into rev. Then you can use items and lines to work with the imported data in rev without necessity of any data manipulations. Aloha from Hawaii, Jim Bufalini ___ 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
Application graphics
Hello, Well, I've been working for so many years only on Windows development that I think I must relearn application design now that I'm multiplatform... What kind of graphics do you use for your applications? I mean, I know Rev is plenty of graphical objects, but in a real multiplatform user-application, do you use backgrounds, skinning, graphic buttons, perhaps a group of buttons to simulate a toolbar? Thanks in advance for sharing your experiences. Regards, Marcio Alexandroni ( (11) 9989-8316 Skype: marcioalexandroni -- ___ 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: Comma-delimited values
Hi, I'd do it something like this (since I love using set itemdel...): repeat for each line thisLine in dataTable set the itemdel to quote put the second item of thisLine tab into newLine -- should be the date put the third item of thisLine into thisLine -- should be the rest set the itemdel to comma repeat for each item thisItem in thisLine put thisItem tab after newLine end repeat -- more stuff here end repeat Cheers, Fredrik Gregory Lypny skrev 2010-03-08 18.44: Hello everyone, I'm creating an app that imports comma-delimited tables. A few lines might look like this, where there are 14 items per line. Mon, Jan 18 , 2010,9:14 AM,130557,4319,Trade,Buy,X,135,8.25,10,-82.5,1417.5,20,10 Mon, Jan 18 , 2010,9:14 AM,130558,4371,Accept,Your ASK,X,135,8.25,10,82.5,1582.5,0,10 My problem is that Rev treats each date in quotes as three items rather than one. I convert the comma delimiters to tab by setting the itemDelimiter to comma and then running the lines through nested repeat-for-each loops as repeat for each line thisLine in dataTable repeat for each item thisItem in thisLine put thisItem tab after newLine end repeat -- more stuff here end repeat I end up with Mon (as the first item) Jan 18 (as the second) 2010 (as the third) Any suggestions as how I might get the date treated as one item? Regards, Gregory ___ 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: Windows Portable???
On 08/03/2010 19:56, Lynn Fredricks wrote: I actually liked the U3 idea, because it let developers safely allow installs on removable media so they could be used anywhere. It's all about DRM. One can also do the same sort of thing with a Live Linux USB containing the 'normal' RunRev for Linux version on it. This has, to my mind, a significant advantage over the U3 - Windows idea, in that, RunRev Studio or Enterprise for Linux can spin off a Windows standalone, but the OS on the USB key will not be prone to Windows viruses. The silly thing is that Apple have been funny about a bootable USB version of Mac OS X. It should be comparatively easy to build a Mac OS 9 bootable CD with the last Mac OS Classic RunRev on it; but one rather wonders why one would bother. At Revcon II there was a guy from the company that gave a a half hour demonstration. Lynn, you were there. Yes, indeed - I invited them :-) I immediately lost interest when it was announced to be a windows only feature. Judging by the number of Power/Macbooks in the crowd, I wasn't alone. It was an odd moment of Rev promoting a platform-specific feature. Well (b*tchy moment coming up), as quite a few features that function better in the Mac and Win versions of the current RunRev version one could say the same thing vis-a-vis Mac/Win versus Linux. One could also point out (and I can tell you that I do NOT like Windows), that whatever Mac and Linux devotees feel, Windows IS the dominant OS at the moment; and as the folks at Runtime Revolution have to fill their fridges, pay bills, and so forth, it would be very odd indeed if they didn't take that into account. I merrily pump out Windows standalones of my Devawriter, and, surprise, surprise, that is the version that is downloaded most. Frankly I would be a 'silly prune' not to release a Windows build just because I don't like Windows - I want to empower and enable as many people as I can with my little thing. I DO SO WISH I could release a Linux version, but, until the font problem is sorted out that is out of the question. Most unfortunate. That's true - but consider also that it wouldn't be in Runtime's interest to narrow all promotion to the cross-platform message. Cross platform is a key product feature of Revolution, and it does it so very well. But if you are also developing only for one platform that isnt the Mac, it shouldn't be dismissed either as a solution. There are Windows focused developers out there that have a negative gut reaction (still) with products tightly associated with Mac. Whatever your feelings about them, they still use the same type of currency as other OS users :-) Yup, Bulgaria is full of them. One of the things I am very pleased about with releases after Revolution 3 was that Rev wasn't so tightly associated with the Mac. The more units that sell, the better funded all Revolution development is. It really doesn't do RunRev's claim to be cross-platform much good to be tightly associated with any particular operating system . . . This is why I believe that a spot more work on the Linux version would also send a useful message :) ___ 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: Application graphics
Marcio, I advise you to use PNG for everything. It has an alpha channel and it is better than GIF. :D Cheers andre On Mon, Mar 8, 2010 at 3:14 PM, Marcio Alexandroni mar...@cialogica.com.brwrote: Hello, Well, I've been working for so many years only on Windows development that I think I must relearn application design now that I'm multiplatform... What kind of graphics do you use for your applications? I mean, I know Rev is plenty of graphical objects, but in a real multiplatform user-application, do you use backgrounds, skinning, graphic buttons, perhaps a group of buttons to simulate a toolbar? Thanks in advance for sharing your experiences. Regards, Marcio Alexandroni ( (11) 9989-8316 Skype: marcioalexandroni -- ___ 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.andregarzia.com All We Do Is Code. ___ 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: Comma-delimited values
Here is an easy way: on mouseUp put yourdata into temp repeat for each line tLine in yourdata replace comma with tab in item 3 to 50 of tLine end repeat put yourdata into whereEverYouWant end mouseUp This should be pretty readable. Craig Newman In a message dated 3/8/10 12:44:39 PM, gregory.ly...@videotron.ca writes: Mon, Jan 18 , 2010,9:14 AM,130557,4319,Trade,Buy,X,135,8.25,10,-82.5,1417.5,20,10 ___ 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: Application graphics
On 08/03/2010 20:14, Marcio Alexandroni wrote: Hello, Well, I've been working for so many years only on Windows development that I think I must relearn application design now that I'm multiplatform... What kind of graphics do you use for your applications? I mean, I know Rev is plenty of graphical objects, but in a real multiplatform user-application, do you use backgrounds, skinning, graphic buttons, perhaps a group of buttons to simulate a toolbar? Thanks in advance for sharing your experiences. Dear Marcio, I think you may be over-complicating things. I am the author of a user-application that is available for Windows and Macintosh: http://andregarzia.on-rev.com/richmond/dwriter.html and I use graphics (images made in GIMP) as buttons throughout; this way I can be sure they look the same on either operating system. If you want to have your buttons looking different after they have been used, or when a pointer is over them, the images can be easily manipulated using the Graphic Effects available through the Preferences palette. ___ 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: Application graphics
On 08/03/2010 20:16, Andre Garzia wrote: Marcio, I advise you to use PNG for everything. It has an alpha channel and it is better than GIF. Seconded! Richmond. :D Cheers andre On Mon, Mar 8, 2010 at 3:14 PM, Marcio Alexandroni mar...@cialogica.com.brwrote: Hello, Well, I've been working for so many years only on Windows development that I think I must relearn application design now that I'm multiplatform... What kind of graphics do you use for your applications? I mean, I know Rev is plenty of graphical objects, but in a real multiplatform user-application, do you use backgrounds, skinning, graphic buttons, perhaps a group of buttons to simulate a toolbar? Thanks in advance for sharing your experiences. Regards, Marcio Alexandroni ( (11) 9989-8316 Skype: marcioalexandroni -- ___ 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: missing field in aplication browser
Peter Haworth wrote: Grouping and ungrouping objects by selecting them on a card works great in simple situations but when you have multiple levels of nested groups or hidden fields or even hidden groups (as recommended for tab controls for example), it can be a nightmare to add or delete an object. I'm wondering if I'm missing something and perhaps there's another way to add an object to a field without ungrouping and regrouping? When I have that situation, I bypass the IDE entirely and just use the message box. It's way faster. If the control already exists, you can do this: copy btn myNewButton to grp myDeeplyNestedGroup Then just delete the original from the card. If instead you want to make a new control: create btn newButton in grp myDeeplyNestedGroup After that, you can select the new control and set properties normally if selectGroupedControls is true. Or alternately you can set the templateButton, or templateField, or whatever, with all the properties first and then issue the create command. -- Jacqueline Landman Gay | jac...@hyperactivesw.com 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
Re: Customizing Error Reporting Dialog
Ray Horsley wrote: This is a wonderful option in the Bug Reports tab of the Stand Alone Application Settings. Anybody know how to customize this window which comes up? For example, I'd like to solicit the user's return email address. That dialog launches the user's email client with a pre-addressed email. When they send it you'll have their address. -- Richard Gaskin Fourth World Rev training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com revJournal blog: http://revjournal.com/blog.irv ___ 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: missing field in aplication browser
J. Landman Gay wrote: Peter Haworth wrote: Grouping and ungrouping objects by selecting them on a card works great in simple situations but when you have multiple levels of nested groups or hidden fields or even hidden groups (as recommended for tab controls for example), it can be a nightmare to add or delete an object. I'm wondering if I'm missing something and perhaps there's another way to add an object to a field without ungrouping and regrouping? When I have that situation, I bypass the IDE entirely... Forgot to mention this one: delete btn myButton of grp myDeeplyNestedGroup -- Jacqueline Landman Gay | jac...@hyperactivesw.com 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
Re: Comma-delimited values
Paul D. DeRocco wrote: Add an inQuotes flag, with an initial value of false. For each item, if it has a quote in it, toggle the inQuotes flag. Then, if inQuotes is set, append a comma instead of a tab, to put the item back together again. Roger that. CSV elements may contain returns within quoted portions, and escaping uses a wide range of conventions differing from program to program (within the Microsoft family I've seen it differ from version to version of the same program). The flag method, while notoriously slow, is the only reliable method I've found for handling all the many variants of CSV. rant A plea for sanity in the software development world: While we need to write CSV importers from time to time, please never write CSV exporters. CSV must die. The problem with CSV is that the comma is very commonly used in data, making it a uniquely stupid choice as a delimiter. That stupidity could be countered with consistent escaping, but no true standard has emerged since the many decades of this productivity-abuse began. Making a stupid decision even more stupid, most CSV files quote non-numeric values, as though the programmers did not realize the quote character is commonly used in our language and therefore may likely be part of the data. So using quote as an escape means that you must escape the escape. Jeeminy who thinks up that merde?!?! Sometimes the escape for in-data double-quotes is a double double-quote, which sometimes makes it hard to know what to do with empty values shown as , esp. given that in some formats the empty value abuts the adjacent commas and in others, like MySQL dumps, it abuts only the trailing comma but has a space before the leading comma. Other times double-quotes are escaped with \, meaning you'll need to escape any in-data backslashes too. For thinking people, about the time you realize that you're escaping the escape that you've escaped to handle your data, it would occur to you to go back and check your original premise. But not so for the creators of CSV. As Jim Bufalini pointed out, tab-delimited or even (in fewer cases) pipe-delimited make much saner options. For my own delimited exports I've adopted the convention used in FileMaker Pro and others, with escapes that are unlikely to be in the data: - records are delimited with returns - fields delimited with tabs - quotes are never added and are included only when they are part of the data - any in-data returns are escaped with ASCII 11 - any in-data tabs escaped with ASCII 4 Simple to write, lightning-fast to parse. When you add up all the programmer- and end-user-hours lost to dealing with the uniquely stupid collection of mish-mashed ad-hoc formats that is CSV, it amounts to nothing less than a crime against humanity. Several hundred if not thousands of human lifetimes have been lost either dealing with bugs related to CSV parsers, or simply waiting for the inherently slow parsing of CSV that could have taken mere milliseconds if done in any saner format. CSV must die. Please help it die: never write CSV exporters. /rant -- Richard Gaskin Fourth World Rev training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com revJournal blog: http://revjournal.com/blog.irv ___ 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: Comma-delimited values
sigh sending again due to the email too big problem. I think the operative word in the original post was might as in, might look like this. I gather that it might also not. Is the question, how do you blindly detect a date format? In that case, you are going to need a function that analyzes a string to determine if any of the data between quotes is a date. I might suggest: (as always watch for line wraps) on mouseUp pMouseBtnNo put quote Mon, Jan 18 , 2010 quote ,9:14 AM,130557,4319,Trade,Buy,X,135,8.25,10,-82.5,1417.5,20,10 into myVar set the itemdelimiter to quote repeat for each item theString in myVar if theString is a date then put true -- or whatever else you want to do at this point. end repeat end mouseUp Two very obvious problems will immediately present themselves: First, in the example text given, nothing is a date! Why you ask? Because there is a space in the date after the day number, which is enough to convince Rev that the string is not, in fact, a date. But that may be a typo, and the actual data may correct this anomaly. The second thing is, what if the text has no quotes? All this underscores the fact that you need to understand the nature of the information before you can provide a solution. If it is going to be true CSV, then the dates and all non-numeric data will (or should) be enclosed in quotes. One last caution: When using this form of repeat, remember that you cannot alter the contents of myVar while the loop is running because of the way the repeat command handles the variable. So a revised function that does what you want could look like this: on mouseUp pMouseBtnNo breakpoint put quote Mon, Jan 18, 2010 quote ,9:14 AM,130557,4319,Trade,Buy,X,135,8.25,10,-82.5,1417.5,20,10 into myVar set the itemdelimiter to quote put myVar into tempVar repeat for each item theString in myVar if theString is a date then put the length of theString into theStrLength put offset(theString, tempVar) into charStart put charStart + theStrLength into charEnd replace comma with ** in char charStart to charEnd of tempVar end if end repeat replace comma with return in tempVar replace ** with comma in tempVar put tempVar into myVar end mouseUp resulting in data that looks like this: Mon, Jan 18, 2010 9:14 AM 130557 4319 Trade Buy X 135 8.25 10 -82.5 1417.5 20 10 Bob On Mar 8, 2010, at 9:44 AM, Gregory Lypny wrote: Hello everyone, I'm creating an app that imports comma-delimited tables. A few lines might look like this, where there are 14 items per line. Mon, Jan 18 , 2010,9:14 AM,130557,4319,Trade,Buy,X,135,8.25,10,-82.5,1417.5,20,10 Mon, Jan 18 , 2010,9:14 AM,130558,4371,Accept,Your ASK,X,135,8.25,10,82.5,1582.5,0,10 My problem is that Rev treats each date in quotes as three items rather than one. I convert the comma delimiters to tab by setting the itemDelimiter to comma and then running the lines through nested repeat-for-each loops as repeat for each line thisLine in dataTable repeat for each item thisItem in thisLine put thisItem tab after newLine end repeat -- more stuff here end repeat I end up with Mon (as the first item) Jan 18 (as the second) 2010(as the third) Any suggestions as how I might get the date treated as one item? Regards, Gregory ___ 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: missing field in aplication browser
Peter Haworth wrote: Grouping and ungrouping objects by selecting them on a card works great in simple situations but when you have multiple levels of nested groups or hidden fields or even hidden groups (as recommended for tab controls for example), it can be a nightmare to add or delete an object. I'm wondering if I'm missing something and perhaps there's another way to add an object to a field without ungrouping and regrouping? This is where a good object browser is worth its weight in gold (well, more so actually, since software has no weight g). The App Browser isn't bad, but I find it a bit cumbersome. Geoff Canyon's RevNavigator plugin is included in the Rev installation (see Development-Plugins-RevNavigator) and is a more nimble companion. It's modeled somewhat on the MC IDE's Control Browser, far simpler and faster than Rev's. Geoff's makes better use of space than MC's, and includes some handy options MC's doesn't have like changing the layer order of objects. I've written four object browsers over the years, and only recently started in on one I like. :) It's one of those things that seems deceptively simple, but there's a bit to it to be able to get around efficiently, esp. in layouts with lots of nested groups. When you're used to direct manipulation it's easy to overlook the value of an object browser, seeming as they do rather like building a ship in a bottle, where you can touch it only with tweezers. But a good object browser can make it easier to work with objects than even by direct manipulation. I think you'll find Geoff's delightful to work with. One thing about Geoff's though, which is a point in favor of Rev's App Browser: RevNavigator was written before groups had their own selectGroupedControls property, which is not only a useful way to shield the developer from accidentally altering a custom object like a DataGrid, but can also be used by an object browser to avoid having to list controls that you probably don't want to be mucking with anyway. A typical DataGrid can add hundreds of controls to your card, bringing an object browser to a crawl as it updates. But when written to exclude such things, an object browser can be quite nimble even with multiple DataGrids and other custom controls. As soon as mine gets debugged I'll roll it out with a new set of devolution tools. In the meantime, Rev's or Geoff's may help you get through the day well. Mention of the new property for groups also reminds me to ask if there is a single place where all the changes that have been made in a Rev release are documented? I haven't managed to find anything like that for 4.0 and seems like that's kinda basic doc for a new release. See the Engine Change Log and IDE Change Log files included with each Rev installation. -- Richard Gaskin Fourth World Rev training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com revJournal blog: http://revjournal.com/blog.irv ___ 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: Comma-delimited values
I agree with Richard's rant. CSV (Comma Separated Values) is a very, very old convention that was not well thought out from the beginning. Commas can exists within cells (values) as in the case of dates or text blocks or even formatted numbers ($1,000.00). So, to get around this, they added quotes around cells that could contain commas. The only problem with this, as Richard points out, is text blocks can also contain quotes. ;-) This is why I said, whether you are exporting to import into Rev or any other program, use tab as the value separator and get rid of the arbitrary quotes that they only put in there because commas can exist in the cell. Tab is very safe to use as a value separator from a spreadsheet export because if you press tab when editing a cell, in all spreadsheets I am aware of, the tab is not inserted into the cell, but instead jumps you to editing the next cell. Aloha from Hawaii, Jim Bufalini -Original Message- From: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- boun...@lists.runrev.com] On Behalf Of Richard Gaskin Sent: Monday, March 08, 2010 8:55 AM To: How to use Revolution Subject: Re: Comma-delimited values Paul D. DeRocco wrote: Add an inQuotes flag, with an initial value of false. For each item, if it has a quote in it, toggle the inQuotes flag. Then, if inQuotes is set, append a comma instead of a tab, to put the item back together again. Roger that. CSV elements may contain returns within quoted portions, and escaping uses a wide range of conventions differing from program to program (within the Microsoft family I've seen it differ from version to version of the same program). The flag method, while notoriously slow, is the only reliable method I've found for handling all the many variants of CSV. rant A plea for sanity in the software development world: While we need to write CSV importers from time to time, please never write CSV exporters. CSV must die. The problem with CSV is that the comma is very commonly used in data, making it a uniquely stupid choice as a delimiter. That stupidity could be countered with consistent escaping, but no true standard has emerged since the many decades of this productivity-abuse began. Making a stupid decision even more stupid, most CSV files quote non-numeric values, as though the programmers did not realize the quote character is commonly used in our language and therefore may likely be part of the data. So using quote as an escape means that you must escape the escape. Jeeminy who thinks up that merde?!?! Sometimes the escape for in-data double-quotes is a double double- quote, which sometimes makes it hard to know what to do with empty values shown as , esp. given that in some formats the empty value abuts the adjacent commas and in others, like MySQL dumps, it abuts only the trailing comma but has a space before the leading comma. Other times double-quotes are escaped with \, meaning you'll need to escape any in-data backslashes too. For thinking people, about the time you realize that you're escaping the escape that you've escaped to handle your data, it would occur to you to go back and check your original premise. But not so for the creators of CSV. As Jim Bufalini pointed out, tab-delimited or even (in fewer cases) pipe-delimited make much saner options. For my own delimited exports I've adopted the convention used in FileMaker Pro and others, with escapes that are unlikely to be in the data: - records are delimited with returns - fields delimited with tabs - quotes are never added and are included only when they are part of the data - any in-data returns are escaped with ASCII 11 - any in-data tabs escaped with ASCII 4 Simple to write, lightning-fast to parse. When you add up all the programmer- and end-user-hours lost to dealing with the uniquely stupid collection of mish-mashed ad-hoc formats that is CSV, it amounts to nothing less than a crime against humanity. Several hundred if not thousands of human lifetimes have been lost either dealing with bugs related to CSV parsers, or simply waiting for the inherently slow parsing of CSV that could have taken mere milliseconds if done in any saner format. CSV must die. Please help it die: never write CSV exporters. /rant -- Richard Gaskin Fourth World Rev training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com revJournal blog: http://revjournal.com/blog.irv ___ 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
Re: Comma-delimited values
Not to add fuel to the fire, but I have seen spreadsheet data containing tabs in cells before. Usually it's when importing from another program. Also, let's not forget that sometimes a cell can contain carriage returns too. This is the same problem that plagues SQL programmers, forcing them to escape their values before submitting a query. As it is the responsibility of SQL developers to take this precaution, it is also the responsibility of developers to properly format their exported data so that things like quotes, commas and carriage returns (delimiters) are escaped or converted to something else. Now Software used to do this pretty well, converting their notes fields containing commas and carriage returns to other special characters before exporting them. But eventually, you will hit this problem where the data is going to contain things you didn't expect, and you are going to have to deal with it, as in the case of the space after the day number in the original example. Bob On Mar 8, 2010, at 11:19 AM, Jim Bufalini wrote: I agree with Richard's rant. CSV (Comma Separated Values) is a very, very old convention that was not well thought out from the beginning. Commas can exists within cells (values) as in the case of dates or text blocks or even formatted numbers ($1,000.00). So, to get around this, they added quotes around cells that could contain commas. The only problem with this, as Richard points out, is text blocks can also contain quotes. ;-) This is why I said, whether you are exporting to import into Rev or any other program, use tab as the value separator and get rid of the arbitrary quotes that they only put in there because commas can exist in the cell. Tab is very safe to use as a value separator from a spreadsheet export because if you press tab when editing a cell, in all spreadsheets I am aware of, the tab is not inserted into the cell, but instead jumps you to editing the next cell. Aloha from Hawaii, Jim Bufalini -Original Message- From: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- boun...@lists.runrev.com] On Behalf Of Richard Gaskin Sent: Monday, March 08, 2010 8:55 AM To: How to use Revolution Subject: Re: Comma-delimited values Paul D. DeRocco wrote: Add an inQuotes flag, with an initial value of false. For each item, if it has a quote in it, toggle the inQuotes flag. Then, if inQuotes is set, append a comma instead of a tab, to put the item back together again. Roger that. CSV elements may contain returns within quoted portions, and escaping uses a wide range of conventions differing from program to program (within the Microsoft family I've seen it differ from version to version of the same program). The flag method, while notoriously slow, is the only reliable method I've found for handling all the many variants of CSV. rant A plea for sanity in the software development world: While we need to write CSV importers from time to time, please never write CSV exporters. CSV must die. The problem with CSV is that the comma is very commonly used in data, making it a uniquely stupid choice as a delimiter. That stupidity could be countered with consistent escaping, but no true standard has emerged since the many decades of this productivity-abuse began. Making a stupid decision even more stupid, most CSV files quote non-numeric values, as though the programmers did not realize the quote character is commonly used in our language and therefore may likely be part of the data. So using quote as an escape means that you must escape the escape. Jeeminy who thinks up that merde?!?! Sometimes the escape for in-data double-quotes is a double double- quote, which sometimes makes it hard to know what to do with empty values shown as , esp. given that in some formats the empty value abuts the adjacent commas and in others, like MySQL dumps, it abuts only the trailing comma but has a space before the leading comma. Other times double-quotes are escaped with \, meaning you'll need to escape any in-data backslashes too. For thinking people, about the time you realize that you're escaping the escape that you've escaped to handle your data, it would occur to you to go back and check your original premise. But not so for the creators of CSV. As Jim Bufalini pointed out, tab-delimited or even (in fewer cases) pipe-delimited make much saner options. For my own delimited exports I've adopted the convention used in FileMaker Pro and others, with escapes that are unlikely to be in the data: - records are delimited with returns - fields delimited with tabs - quotes are never added and are included only when they are part of the data - any in-data returns are escaped with ASCII 11 - any in-data tabs escaped with ASCII 4 Simple to write, lightning-fast to parse. When you add up all the programmer- and end-user-hours lost to dealing with the
Re: missing field in aplication browser
Is that like doubling the salary of my volunteers? ;-) Bob On Mar 8, 2010, at 11:16 AM, Richard Gaskin wrote: This is where a good object browser is worth its weight in gold (well, more so actually, since software has no weight g). ___ 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: Comma-delimited values
On Mon, Mar 8, 2010 at 12:55 PM, Richard Gaskin ambassa...@fourthworld.com wrote: rant CSV must die. Please help it die: never write CSV exporters. /rant After my last foray into the world of CSV and the *many* problems I ran into, I decided to take Richard's little rant a step further... ...Not only will I not ever write a CSV exporter, but I will no longer attempt to support CSV, even as an import option for anything I build. That policy may make a few folks unhappy and/or possibly cost me a few sales should I go that route, but with certainty, it will not perpetuate the problem from either end in the future. I think I'd prefer the competition (if any), to have all of those support issues they want. ;-) Regards, David C. ___ 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: Comma-delimited values
Thank you, Richmond. Good stuff. That would work here where only the first to-be item of each line is quoted because it has commas within it. But if other files have quoted items in other locations (e.g., the fifth and ninth items), it would mean first identifying which chunks are quoted before I start converting from commas to tabs. Gregory On Mon, Mar 8 , 2010, at 1:00 PM, Richmond Mathewson wrote: On 08/03/2010 19:44, Gregory Lypny wrote: Hello everyone, I'm creating an app that imports comma-delimited tables. A few lines might look like this, where there are 14 items per line. Mon, Jan 18 , 2010,9:14 AM,130557,4319,Trade,Buy,X,135,8.25,10,-82.5,1417.5,20,10 Mon, Jan 18 , 2010,9:14 AM,130558,4371,Accept,Your ASK,X,135,8.25,10,82.5,1582.5,0,10 My problem is that Rev treats each date in quotes as three items rather than one. I convert the comma delimiters to tab by setting the itemDelimiter to comma and then running the lines through nested repeat-for-each loops as repeat for each line thisLine in dataTable repeat for each item thisItem in thisLine put thisItem tab after newLine end repeat -- more stuff here end repeat I end up with Mon (as the first item) Jan 18 (as the second) 2010(as the third) Any suggestions as how I might get the date treated as one item? Yes, although it is so goofily obvious you have probably thought about this one and rejected it: Change the commas for the bits inside the quotes to something else ( ^ * %) - dunno, any old thing that isn't a comma . . . :) ___ 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: Windows Portable???
I wrote: In the RunRev User Guide there is this: Compatible Build your application for the U3 smart platform. For more information on U3 see http://www.u3.com. For more documentation on building U3 applications using Revolution, see the Resources/Examples/U3 Documentation.pdf file within your Revolution distribution folder. That URL turns out to be a dud; which would seem to suggest that U3 is 'past its sell by date', or that it has moved 'elsewhere'. ___ 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: Windows Portable???
Hey, this is getting badly nested . . . :) I wrote: In the RunRev User Guide there is this: Compatible Build your application for the U3 smart platform. For more information on U3 see http://www.u3.com. For more documentation on building U3 applications using Revolution, see the Resources/Examples/U3 Documentation.pdf file within your Revolution distribution folder. That URL turns out to be a dud; which would seem to suggest that U3 is 'past its sell by date', or that it has moved 'elsewhere'. The URL is http://www.u3.com/ - I just quoted the RunRev PDF without actually checking the URL - silly Richmond (or, perhaps . . . ). ___ 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: missing field in aplication browser
Thanks for the hints in using the message box (why do I always forget about that?) and the plugin, sounds like they'll make my life lots easier. Pete Haworth ___ 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: Comma-delimited values
Hi David, Richard et al. I hear your pain on the CSV issue. However, wishing it would die I think deserves a more careful reflection. Sometimes the devil you know is worse than the alternative... I use RunRev almost exclusively for parsing and processing datasets for active traders. CSV is one of the few remaining source formats that can be easily resolved. I use the flag method to handle quotes in the dataset... The other alternatives my clients can provide are far more problematic ([XML parsing - in theory good, in practice on large datasets there is almost always some breakage in the dataset or the time to handle a large dataset is exponentially greater than plain CSV ] [Excel - now virtually impossible to deal with without a manual intervention and conversion]) So yes, CSV has it's problems. Pipe delimited would suit me better. But a simple line based ordered dataset has proven in practice to be much more usable and quicker to handle than fancier solutions... Don't wish a CSV death on me please :) Wayne On Mon, Mar 8, 2010 at 2:51 PM, David Coker davidoco...@gmail.com wrote: On Mon, Mar 8, 2010 at 12:55 PM, Richard Gaskin ambassa...@fourthworld.com wrote: rant CSV must die. Please help it die: never write CSV exporters. /rant After my last foray into the world of CSV and the *many* problems I ran into, I decided to take Richard's little rant a step further... ...Not only will I not ever write a CSV exporter, but I will no longer attempt to support CSV, even as an import option for anything I build. That policy may make a few folks unhappy and/or possibly cost me a few sales should I go that route, but with certainty, it will not perpetuate the problem from either end in the future. I think I'd prefer the competition (if any), to have all of those support issues they want. ;-) Regards, David C. ___ 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: Comma-delimited values
If you are stuck with trying to import from CSV format, here's a function that will convert any commas within quotes to another delimiter character. function fixQuotedItems tText -- first make sure that you choose an escape char -- not contained in your data repeat for each item escapeChar in §,•,ª,∞,™,º -- or whatever list of odd characters you want if escapeChar is in tText then next repeat exit repeat end repeat put empty into adjText set the itemdelimiter to quote repeat for each line tLine in tText put 0 into counter put empty into adjustedLine repeat for each item i in tLine add 1 to counter if counter mod 2 = 1 then put i after adjustedLine else put i into temp replace comma with escapeChar in temp put temp after adjustedLine end if end repeat if char -1 of adjustedLine = comma then delete char -1 \ of adjustedLine put adjustedLine cr after adjText end repeat if char -1 of adjText = cr then delete char -1 of adjText return adjText end fixQuotedItems this will take something like: a,b,c,1,2,3,4,d,e 11,12,13,g,h,i j,k,22,23 and return: a,b,c,1§2§3§4,d,e 11§12§13,g,h,i j,k,22§23 You can then parse your data and replace the escapeChar with comma after you're done. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Mar 8, 2010, at 2:55 PM, Gregory Lypny wrote: Thank you, Richmond. Good stuff. That would work here where only the first to-be item of each line is quoted because it has commas within it. But if other files have quoted items in other locations (e.g., the fifth and ninth items), it would mean first identifying which chunks are quoted before I start converting from commas to tabs. Gregory On Mon, Mar 8 , 2010, at 1:00 PM, Richmond Mathewson wrote: On 08/03/2010 19:44, Gregory Lypny wrote: Hello everyone, I'm creating an app that imports comma-delimited tables. A few lines might look like this, where there are 14 items per line. Mon, Jan 18 , 2010,9:14 AM,130557,4319,Trade,Buy,X, 135,8.25,10,-82.5,1417.5,20,10 Mon, Jan 18 , 2010,9:14 AM,130558,4371,Accept,Your ASK,X, 135,8.25,10,82.5,1582.5,0,10 My problem is that Rev treats each date in quotes as three items rather than one. I convert the comma delimiters to tab by setting the itemDelimiter to comma and then running the lines through nested repeat-for-each loops as repeat for each line thisLine in dataTable repeat for each item thisItem in thisLine put thisItem tab after newLine end repeat -- more stuff here end repeat I end up with Mon (as the first item) Jan 18 (as the second) 2010 (as the third) Any suggestions as how I might get the date treated as one item? Yes, although it is so goofily obvious you have probably thought about this one and rejected it: Change the commas for the bits inside the quotes to something else ( ^ * %) - dunno, any old thing that isn't a comma . . . :) ___ 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: Application graphics
I advise you to use PNG for everything. It has an alpha channel and it is better than GIF. How about animations? -- Nicolas Cueto ___ 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: Comma-delimited values
Richard Gaskin wrote: CSV must die. Oh come on, Richard, tell us what you really think. :) -- Jacqueline Landman Gay | jac...@hyperactivesw.com 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
Re: Application graphics
Animated pngs have been specified, but don't run in all browsers (yet). http://en.wikipedia.org/wiki/Animated_PNG - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev On 8 March 2010 13:53, Nicolas Cueto nicon...@gmail.com wrote: I advise you to use PNG for everything. It has an alpha channel and it is better than GIF. How about animations? -- Nicolas Cueto ___ 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: Comma-delimited values
We could have a funeral like IE6. - Stephen Barncard San Francisco On 8 March 2010 13:53, J. Landman Gay jac...@hyperactivesw.com wrote: Richard Gaskin wrote: CSV must die. Oh come on, Richard, tell us what you really think. :) -- Jacqueline Landman Gay | jac...@hyperactivesw.com 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
RE: Comma-delimited values
From: wayne durden I hear your pain on the CSV issue. However, wishing it would die I think deserves a more careful reflection. Sometimes the devil you know is worse than the alternative... It's only difficult to deal with CSV if you want to make a totally general importer, with no foreknowledge of the type of data the files will contain. But in most real-life situations, you'll never need to deal with a double quote or newline in the data, so using newlines to separate records, and double quotes to escape commas within records, is a perfectly workable definition of the CSV format. It would never occur to anyone to use CSV to represent records containing binary data, so it isn't much more of a restriction to rule out control characters and double quotes. Your application is a typical example; so is using CSV as an interchange format for GPS logs. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.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: Comma-delimited values
I wrote a CSV import library a while back, let me dig it out and post it.. I ran it against some test CSV files and it seems to handle all the weird little quirks in CSV (double quotes, newlines, etc).. ___ 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: Application graphics
Recently, Nicolas Cueto wrote: I advise you to use PNG for everything. It has an alpha channel and it is better than GIF. How about animations? PNG may not be as convenient for animation as something like animated GIF, but you can create animations by showing PNGs sequentially in an image object (set the text of image viewer to the text of image frame1.png...), or by sequentially setting the icon of a button to the IDs of PNGs. Regards, Scott Rossi Creative Director Tactile Media, UX Design ___ 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: Windows Portable???
No they are not the same. Here is a link for Windows Portable. http://msdn.microsoft.com/en-us/library/dd388998(VS.85).aspx U3 is a standard that is Windows only and is designed to provide a better application launch experience for applications on USB drives. It works by presenting the USB drive as both a USB drive and CD. The CD does the auto-start and launches a catalog interface where the applications have been loaded. One of the big problems for non-Windows computers in that there are two drives that have to be ejected when finished. There was some talk of a U4 standard which would include other platforms but I haven't heard anything about that in some time. Even for Windows, U3 has not taken off and it diminishing in popularity. I chose not to support U3 with InfoWallet (where it would appear to be a perfect fit) because of the problems with Macs and Linux. It looks like the rest of the industry is losing interest as well. Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Mar 7, 2010, at 11:59 AM, Richmond Mathewson wrote: Subtitled: Naive Question 108. Is 'U3' the same thing as Windows Portable? ___ 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
[ANN] CSV Parser Library 1.0.0
This is something I put together a while back and with the recent discussion on the use-list I figured I would make it available for those that could use it.. This library will parse a CSV file into a multi-dimensional array (I included a simple CSV file).. On large data sets the library might take a while as it does basically crawl through the data character by character in some instances.. Syntax: parseCSV( data ) parseCSV( data, true ) If the second parameter is true, the library will use the first row of the data as names for the column headers (like the data grid).. The data is returned in a multi-dimensional array where the first element is the row number and the second element is the column number (or name).. returnedDataArray[1][1] -- first row, first column returnedDataArray[10][3] -- tenth row, third column returnedDataArray[3][file name] - third row, column named file name This is released into the public domain but if you can help speed it up or know a slightly better way of doing some code in the library, please help out :-) -Sean http://shaosean.tk/ ___ 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: Application graphics
On 09/03/2010 00:24, stephen barncard wrote: Animated pngs have been specified, but don't run in all browsers (yet). Charmed I'm sure: or I will be when there are some programs to make animated PNGs . . . :) ___ 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: Application graphics
On 09/03/2010 00:51, Scott Rossi wrote: Recently, Nicolas Cueto wrote: I advise you to use PNG for everything. It has an alpha channel and it is better than GIF. How about animations? PNG may not be as convenient for animation as something like animated GIF, but you can create animations by showing PNGs sequentially in an image object (set the text of image viewer to the text of image frame1.png...), or by sequentially setting the icon of a button to the IDs of PNGs. Well . . . you can do that with any format that RunRev can cope with, although it does seem terribly clunky, or, Heaven forfend that I should let the phrase pass out my gab: terribly Hypercardy. The advantage of this method is that it is easier to control things such as animation speed than with animated GIFs. ___ 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: Application graphics
Recently, Richmond Mathewson wrote: PNG may not be as convenient for animation as something like animated GIF, but you can create animations by showing PNGs sequentially in an image object (set the text of image viewer to the text of image frame1.png...), or by sequentially setting the icon of a button to the IDs of PNGs. Well . . . you can do that with any format that RunRev can cope with, although it does seem terribly clunky, or, Heaven forfend that I should let the phrase pass out my gab: terribly Hypercardy. The advantage of this method is that it is easier to control things such as animation speed than with animated GIFs. Clunky or not, PNG is better for several reasons: - GIF is capable of only 256 colors, PNG = much more - GIF supports only 1 bit mask (1 level of transparency), PNG supports 8 bit mask (256 levels of transparency) Besides, animated GIF format is simply the data of a bunch of GIF frames in a single file. If you want this same thing in Rev, import a bunch of PNGs as custom properties of an image. Presto. A single object with multiple frames, sans the clunkyness. Regards, Scott Rossi Creative Director Tactile Media, UX Design ___ 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: Application graphics
On 09/03/2010 08:18, Scott Rossi wrote: Recently, Richmond Mathewson wrote: PNG may not be as convenient for animation as something like animated GIF, but you can create animations by showing PNGs sequentially in an image object (set the text of image viewer to the text of image frame1.png...), or by sequentially setting the icon of a button to the IDs of PNGs. Well . . . you can do that with any format that RunRev can cope with, although it does seem terribly clunky, or, Heaven forfend that I should let the phrase pass out my gab: terribly Hypercardy. The advantage of this method is that it is easier to control things such as animation speed than with animated GIFs. Clunky or not, PNG is better for several reasons: - GIF is capable of only 256 colors, PNG = much more - GIF supports only 1 bit mask (1 level of transparency), PNG supports 8 bit mask (256 levels of transparency) Besides, animated GIF format is simply the data of a bunch of GIF frames in a single file. If you want this same thing in Rev, import a bunch of PNGs as custom properties of an image. Presto. A single object with multiple frames, sans the clunkyness. I was not advocating animated GIFs over the other method: animated GIFs are fairly awful! What I was doing was being anti showing sequences of images as it seems rather resource hungry. ___ 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: Application graphics
Recently, Richmond Mathewson wrote: I was not advocating animated GIFs over the other method: animated GIFs are fairly awful! What I was doing was being anti showing sequences of images as it seems rather resource hungry. Nicolas Cueto's original question was whether PNG is suitable for doing animation. Regards, Scott Rossi Creative Director Tactile Media, UX Design ___ 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: Application graphics
On 09/03/2010 08:36, Scott Rossi wrote: Recently, Richmond Mathewson wrote: I was not advocating animated GIFs over the other method: animated GIFs are fairly awful! What I was doing was being anti showing sequences of images as it seems rather resource hungry. Nicolas Cueto's original question was whether PNG is suitable for doing animation. I know, and I was off topic. The 'problem' of animated images has been discussed inconclusively before; I don't see much wrong with continuing to explore the topic. ___ 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: Windows Portable???
Here's a chart showing some portable app creators. The ones not included in the chart make an interesting list also. HIMhttp://virtualfuture.info/wp-content/uploads/2009/08/ApplicationVirtCompChart2009.pdf This stuff is proliferating. Sooner or later there are going to be multiple decent free versions, and for other platforms than Windows. Peter -- View this message in context: http://n4.nabble.com/Windows-Portable-tp1583835p1585598.html Sent from the Revolution - User mailing list archive at Nabble.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
Open HTML code with Revbrowser
How can I open the Html code with revRrowser ? I mean, I have the Html Using... revBrowserOpen(tWinID,http://www.google.com;) I can open a Web page using an URL. What about opening a web page providing the Html code from the program? Kind of (but unfortunately it does not work this way) put htmlbodyHello people/body/html into MYHTMLCODE revBrowserOpen(tWinID,MYHTMLCODE) Thanks a lot Paolo Mazza ___ 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