Re: remove html tags from text

2006-09-08 Thread Jim Ault
On 9/8/06 7:57 PM, "Richard Gaskin" <[EMAIL PROTECTED]> wrote: > Jim Ault wrote: > >> Cubist is correct. Any well-formed page will have balanced tags and only >> use the < and > chars to mean tag markers. > > But can one deliver a product which assumes all the html thrown at it > will be well

Re: remove html tags from text

2006-09-08 Thread J. Landman Gay
[EMAIL PROTECTED] wrote: In a message dated 9/8/06 11:40:31 AM, Mark Wieder <[EMAIL PROTECTED]> writes: Friday, September 8, 2006, 6:10:53 AM, you wrote: barely tested, but maybe a starting point: function striptags tHtml replace cr with empty in tHtml -- in case of multi-line tags replac

Re: Age calculation script

2006-09-08 Thread Peter Brigham
Weighing in a little late here (I get the digest version, so there's some lag time)... Here's what I use in a patient notes stack in my practice. I tried using routines based on seconds but always ran into errors when the today was close to the birthday. The leap year thing is a bear to get

Re: remove html tags from text

2006-09-08 Thread Richard Gaskin
Jim Ault wrote: Cubist is correct. Any well-formed page will have balanced tags and only use the < and > chars to mean tag markers. But can one deliver a product which assumes all the html thrown at it will be well-formed? So I have two questions about the sort of variable-based methods f

Re: remove html tags from text

2006-09-08 Thread Jim Ault
Cubist is correct. Any well-formed page will have balanced tags and only use the < and > chars to mean tag markers. If the data is critical to you, then beware of exceptions. There could be incomplete downloads and less-than-professional html code that is received by Rev which could contain con

Re: remove html tags from text

2006-09-08 Thread Cubist
In a message dated 9/8/06 11:40:31 AM, Mark Wieder <[EMAIL PROTECTED]> writes: >Friday, September 8, 2006, 6:10:53 AM, you wrote: >> barely tested, but maybe a starting point: >> function striptags tHtml >>replace cr with empty in tHtml -- in case of multi-line tags >>replace "<" with cr &

Re: remove html tags from text

2006-09-08 Thread Jim Ault
> I did not know replaceText command could use wildcard as an argument ... > it is fantastic. The replaceText function actually uses RegEx, not wildcards. There is a major difference. Filter command -- uses wild cards ReplaceText, MatchText, MatchChunk functions -- use RegEx Jim Ault Las Veg

Re: remove html tags from text

2006-09-08 Thread paolo mazza
You are great ... so many solutions. I wuold go for ... (I did not know replaceText command could use wildcard) ... it is fantastic. I have to say documentation does not mention this. function stsStripHTML what put replaceText(what,"<.*?>","") into noHTML return noHTML end stsStripHTML I did

Re: the keys of myArray

2006-09-08 Thread jbv
Richard > > > I wonder if an optimal solution might be to find a graceful way to add > the sort params as optional arguments to the repeat statement, maybe > something like: > >repeat for each key tKey of tArray sorted numeric ascending > yes, that's "graceful" because very english-like, bu

Re: REv 2.5.0

2006-09-08 Thread simplsol
Steve, I would not recommend using anything older than 2.6.1 - the current version is 2.7.3 Paul Looney -Original Message- From: [EMAIL PROTECTED] To: use-revolution@lists.runrev.com Sent: Fri, 8 Sep 2006 12:16 PM Subject: REv 2.5.0 Does anyone have any preliminary impressions about

Re: Animated GIF Problem

2006-09-08 Thread Chipp Walters
On 9/8/06, John Miller <[EMAIL PROTECTED]> wrote: Scott, I am using Photoshop to create a web animation. Does ImageReady have features beyond Photoshop? I believe what Scott means is that Photoshop by itself cannot save a file in the animated GIF format. That is what ImageReady does. You can

Animated GIF Problem

2006-09-08 Thread John Miller
Scott, I am using Photoshop to create a web animation. Does ImageReady have features beyond Photoshop? I tried your suggestion, but it really doesn'y address my issue. Only 1 or 2 frames of the 24 are being loaded. If you have any other ideas, I would be interested in hearing them. Tha

Re: the keys of myArray

2006-09-08 Thread jbv
Richard Gaskin : > > and have always found that if I can use an array I can speed things up > by several orders of magnitude. > 200% agreed with that... I remember a few months ago I was struggling with a very complex Rev cgi script that was selecting data in a mySQL DB and shaping them for a q

Re: RR Forums

2006-09-08 Thread Alejandro Tejada
on Thu, 7 Sep 2006 Dan Shafer wrote: > I love Wikis for collaboration, > but as places for people to share > thougths and ideas, they suck unless > used by pretty savvy folks and maintained > by even more savvy ones. when i had internet access from the place where i now live, i´ll participat

Re: Animated GIF Problem

2006-09-08 Thread Scott Rossi
Recently, John Miller wrote: > I have used Photoshop CS2 to create an animated GIF with 24 frames. > The finished file is about 50KB. When I import the file into > Revolution, it only imports 1 or 2 of the frames. > > I can load it in any number of web browsers and it appears and acts > normal.

Re: translating a color name to RGB triplet

2006-09-08 Thread Ken Ray
On 9/8/06 2:29 PM, "Stephen Barncard" <[EMAIL PROTECTED]> wrote: > somewhere within the bowels of Rev must be a way to convert this directly. > > I know you can input colornames to 'Answer Color' > > answer color with "AliceBlue" > put it into fld "output2" > > (it contains 239,247,25

Re: REv 2.5.0

2006-09-08 Thread Ken Ray
On 9/8/06 2:16 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Does anyone have any preliminary impressions about the reliability of > Revolution 2.5.0? 2.5.0? The latest version is 2.7.3... Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] __

Animated GIF Problem

2006-09-08 Thread John Miller
Greetings All, I have used Photoshop CS2 to create an animated GIF with 24 frames. The finished file is about 50KB. When I import the file into Revolution, it only imports 1 or 2 of the frames. I can load it in any number of web browsers and it appears and acts normal. Does anybody ha

Re: translating a color name to RGB triplet

2006-09-08 Thread Stephen Barncard
somewhere within the bowels of Rev must be a way to convert this directly. I know you can input colornames to 'Answer Color' answer color with "AliceBlue" put it into fld "output2" (it contains 239,247,255) and of course this works - set the backgroundcolor of btn "toadMeat" to

Re: remove html tags from text

2006-09-08 Thread Mark Smith
A little more research suggests that ">" will be ">" (greater than) and "<" will be "<" (less than). So I'm guessing that "<" and ">" in quoted strings won't be a problem. What will be a problem is turning ">" back into ">", and all the other de-escaping that the htmlText approach takes car

REv 2.5.0

2006-09-08 Thread Stgoldberg
Does anyone have any preliminary impressions about the reliability of Revolution 2.5.0? I received this update, but I've been reluctant to install it and apply it to all my stacks without getting some feedback first from the group as to whether or not there are any problems. Any thoughts? T

Re: remove html tags from text

2006-09-08 Thread Mark Smith
To reveal yet more of my ignorance, is it likely (certain?) that "<" and ">" that are not tag-ends will be urlEncoded (%3C and %3E, I think)? Best, Mark On 8 Sep 2006, at 18:18, Richard Gaskin wrote: For example, how does it account for "<" and ">" which may appear in quoted strings or com

EuroRevCon Early pricing ends soon

2006-09-08 Thread sims
The last day of early bird pricing for the EuroRevCon is 13 September! If you are interested in coming you can reserve that lower price by getting in touch with us and letting us know that you are interested in attending. Simple as that - actual payment can be arranged later, so get your name in

Re: translating a color name to RGB triplet

2006-09-08 Thread Dom
KALANGI Vijay BABU <[EMAIL PROTECTED]> wrote: > Can somebody suggest me a way to "translate a color name to RGB triplet" you may also peek at "Color Names Reference" under "Help/Quick Reference Guides" and see how they translate... ___ use-revolution

Re: the keys of myArray

2006-09-08 Thread sims
At 12:57 PM -0500 9/8/06, J. Landman Gay wrote: Richard Gaskin wrote: You feed your kids every day? You'll spoil 'em!. When I was a kid my pop handed us a piece of string and told us to go out into the woods and make our own deadfall. :) You had string? I bet jacque grew up like I did, w

RE: translating a color name to RGB triplet

2006-09-08 Thread [EMAIL PROTECTED]
Vijay, Just type COLORPICKER into the Google Search window on your web browser and take your PICK. Barry Barber ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscripti

Re: the keys of myArray

2006-09-08 Thread J. Landman Gay
Richard Gaskin wrote: You feed your kids every day? You'll spoil 'em!. When I was a kid my pop handed us a piece of string and told us to go out into the woods and make our own deadfall. :) You had string? -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software

Runtime Revolution Announces D&M Galaxy 1.0.3

2006-09-08 Thread Lynn Fredricks
Runtime Revolution Announces D&M Galaxy 1.0.3 FREE UPDATE ADDS NUMEROUS FEATURES, ENHANCEMENTS, FIXES September 8, 2006. Edinburgh, Scotland. Runtime Revolution Ltd, the leader in multi-platform rich media and application development tools and Austin, Texas-based Daniels & Mara announce the immed

delay setting up record sound ?

2006-09-08 Thread Peter T. Evensen
I'm trying to use record sound file "file.wav" to record a sound. There is a 2 second delay before the recording starts. Is there a way to eliminate this delay? There is also a 2-3 second delay when I stop recording, which is annoying. This is happening on Windows XP. I haven't tried it on

Re: translating a color name to RGB triplet

2006-09-08 Thread Ken Ray
On 9/8/06 7:32 AM, "KALANGI Vijay BABU" <[EMAIL PROTECTED]> wrote: > Hi All, > > > > Can somebody suggest me a way to "translate a color name to RGB triplet" Well you need to have a graphic object (like a square) and then execute this (I called my graphic "ColorHolder"): function getRGB pCol

Re: remove html tags from text

2006-09-08 Thread Ken Ray
On 9/8/06 7:52 AM, "paolo mazza" <[EMAIL PROTECTED]> wrote: > just a simple task for Revolution! > How can I remove html tags from text? > > i.e. > from: try solve this < quiz > to: try solve this quiz > > I should use a wildcard but > > filter TEXT with "<*>" does not work. It

Re: remove html tags from text

2006-09-08 Thread Richard Gaskin
Mark Wieder wrote: function striptags tHtml replace cr with empty in tHtml -- in case of multi-line tags replace "<" with cr & "<" in tHtml replace ">" with ">" & cr in tHtml filter tHtml without "*<*" filter tHtml without "*>*" return tHtml end striptags Clever... b

Re: the keys of myArray

2006-09-08 Thread Richard Gaskin
Dar Scott wrote: I think Richard described it. He seems to have some "inside" knowledge that a hash table is used. The above data is consistent with that. No inside info, other than discussions with Scott Raney on other issues which suggest he's very good with hashes and likes them a lot.

Re: the keys of myArray

2006-09-08 Thread Richard Gaskin
jbv wrote: your suggestion for asking the list for help to optimize speed of a script is wise, but really, I don't have any such problem right now... the only thing that just crossed my mind is : what if you want to output the keys of an array in the same order as you created them ? so far the o

Re: remove html tags from text

2006-09-08 Thread Mark Wieder
Mark- Friday, September 8, 2006, 6:10:53 AM, you wrote: > barely tested, but maybe a starting point: > function striptags tHtml >replace cr with empty in tHtml -- in case of multi-line tags >replace "<" with cr & "<" in tHtml >replace ">" with ">" & cr in tHtml >filter tHtml wi

Re: the keys of myArray

2006-09-08 Thread Dar Scott
On Sep 8, 2006, at 10:23 AM, jbv wrote: I created keys in an array in the following order : 1 4 5 11 52 500 555 "the keys of myArray" outputs this : 1 11 4 500 5 555 52 then I created the same keys but in reverse order : 555 500 52 11 5 4 1 and "the keys of myArray" outputs this : 1 11 4 5 5

Re: the keys of myArray

2006-09-08 Thread jbv
Richard, your suggestion for asking the list for help to optimize speed of a script is wise, but really, I don't have any such problem right now... the only thing that just crossed my mind is : what if you want to output the keys of an array in the same order as you created them ? so far the on

Re: the keys of myArray

2006-09-08 Thread Dave Cragg
On 8 Sep 2006, at 16:07, Richard Gaskin wrote: Dave Cragg wrote: On 8 Sep 2006, at 14:48, jbv wrote: Thanks for the reply, but actually I was wondering about any logic behind that "internal order"... Sorry. My answer was a bit cold. Not intentional. I looked up the docs to confirm what I

Re: the keys of myArray

2006-09-08 Thread Richard Gaskin
jbv wrote: There may be other ways to handle this, although if using the built-in sort command will do what you need it's reasonably efficient. It's only one line of code -- was it causing a problem in your script? it's not causing any problem in my script. again, I was just wondering about

Re: the keys of myArray

2006-09-08 Thread Richard Gaskin
Dave Cragg wrote: On 8 Sep 2006, at 14:48, jbv wrote: Thanks for the reply, but actually I was wondering about any logic behind that "internal order"... Sorry. My answer was a bit cold. Not intentional. I looked up the docs to confirm what I thought, and got lazy and just quoted what was

Re: remove html tags from text

2006-09-08 Thread Jim Ault
I would add a loop to clean up the formatting of the returned text, since html formatting is usually done for the convenience of the programmer, not the viewer. On 9/8/06 6:10 AM, "Mark Smith" <[EMAIL PROTECTED]> wrote: > barely tested, but maybe a starting point: > > function striptags tHtml >

Re: the keys of myArray

2006-09-08 Thread Dave Cragg
On 8 Sep 2006, at 14:48, jbv wrote: Thanks for the reply, but actually I was wondering about any logic behind that "internal order"... Sorry. My answer was a bit cold. Not intentional. I looked up the docs to confirm what I thought, and got lazy and just quoted what was there. As a pena

Re: the keys of myArray

2006-09-08 Thread jbv
Hi Richard, > > There may be other ways to handle this, although if using the built-in > sort command will do what you need it's reasonably efficient. It's only > one line of code -- was it causing a problem in your script? it's not causing any problem in my script. again, I was just wonderin

Re: Changing date order?

2006-09-08 Thread Mark Smith
Alvaro - you may need to use 'the short system date', rather than just 'the short date' - depending on what your system is. Here in the UK, using a UK-localised mac OS X, the short system date gives dd/mm/yy. As far as I know, 'the short date' or 'the date' will always use the US convention

Re: Float above everything

2006-09-08 Thread Ian Wood
Doh! I always read "On Mac OS systems, the systemWindow property has no effect." in the docs and forgot that it just meant OS9 and earlier... that opens up a few mini apps that I'd given up on! Ian On 8 Sep 2006, at 14:15, David Bovill wrote: No - also works on OSX (Panther and Tiger) - at

Changing date order?

2006-09-08 Thread Alvaro Abril - Tecnologia
Dear Sirs.. Is it possible to change the order of the date? Now we have mm/dd/yy but I need dd/mm/yy .. is it possible? Cordialmente, Alvaro Abril Tecnología Divertia S.A. www.fantasticguatemala.com Tel. 502 2410 4600 Fax.502 2410 4646 Guatemala ___

Re: Age calculation script

2006-09-08 Thread Mark Smith
On 8 Sep 2006, at 15:07, Mark Smith wrote: This is to do with where the centuryCutoff is - if you set it to 5, you should get the expected answer (100 yrs, 0 months), I think. I should have added that 9/1/1906 is not really a valid short date, I don't think - I think the engine simply take

Re: cRevTable[currentxcell]

2006-09-08 Thread Viktoras Didziulis
Whoops, I solved it. The problem was in handler. Using on mouseUp instead of on SelectionChanged produces correct result. Viktoras ---Original Message--- From: Viktoras Didziulis Date: 09/08/06 16:58:58 To: How to use Revolution Subject: cRevTable[currentxcell] Hi, I am us

Re: Age calculation script

2006-09-08 Thread Mark Smith
This is to do with where the centuryCutoff is - if you set it to 5, you should get the expected answer (100 yrs, 0 months), I think. best Mark On 8 Sep 2006, at 14:55, [EMAIL PROTECTED] wrote: 2006/9/8, Mark Smith <[EMAIL PROTECTED]>: function getAge bDay put 60 * 60 * 24 * 365 into sec

Re: Float above everything

2006-09-08 Thread Hershel Fisch
On 9/8/06 12:32 AM, "Ian Wood" <[EMAIL PROTECTED]> wrote: > >> Delivered as an app. > > Do you want it to float above all other stacks in your app, or over > ALL windows system-wide? Last time I looked, system-wide floating > windows in Rev are only possible on Windows. I want it to float above

cRevTable[currentxcell]

2006-09-08 Thread Viktoras Didziulis
Hi, I am using currentxcell property to get number of column of a cell in a table. But when I click different column currentcell gives the value of old column. I have to click same column again to get the correct value of the selected cell. How can I make cRevTable[currentxcell] work "in real

Re: the keys of myArray

2006-09-08 Thread Richard Gaskin
jbv wrote: > I was just wondering if there was a way to avoid putting the > keys into a variable and having to sort that variable... any > clue about the order in which keys are stored (and output) > could help bypass that sorting step... My limited understanding is that the order is related to t

Re: Re: Age calculation script

2006-09-08 Thread Roger . E . Eller
2006/9/8, Mark Smith <[EMAIL PROTECTED]>: > function getAge bDay >put 60 * 60 * 24 * 365 into secsPerYear >put secsPerYear / 12 into secsPerMonth > >put the seconds into tDay > >-- assuming date of birth is given in short system date format >convert bDay from short system date t

Re: Age calculation script

2006-09-08 Thread Mark Smith
replacing put 60 * 60 * 24 * 365 into secsPerYear with put (60 * 60 * 24 * 365) + (60 * 60 * 6) into secsPerYear ie. adding a quarter of a days seconds to sescPerYear seems to fix it, at least for age < 30ish. Best, Mark On 8 Sep 2006, at 14:36, Mark Smith wrote: Actually, the other way

Re: Age calculation script

2006-09-08 Thread Mark Smith
Great! Actually, the other way it is likely to be wrong is when today's date is very close to the persons birthday - eg if a persons age is really 16 yrs 11 months, and their birthday is a couple of days from now, it may give 17 yrs 0 months. These date/period things can be tricky, so you h

Re: translating a color name to RGB triplet

2006-09-08 Thread David Bovill
There is no direct way. So you either have to set some objects color and retrieve it (locking the screen). Or you have to construct an array or lookup table in advance and store this somewhere. The former works fine even if "ugly". ___ use-revolution ma

Re: the keys of myArray

2006-09-08 Thread jbv
Hi Dave, Thanks for the reply, but actually I was wondering about any logic behind that "internal order"... it's not really important... I was just wondering if there was a way to avoid putting the keys into a variable and having to sort that variable... any clue about the order in which keys ar

Re: the keys of myArray

2006-09-08 Thread Dave Cragg
On 8 Sep 2006, at 14:27, jbv wrote: Hi list, Just curious : is there any logic in the order in which Rev outputs the keys of an array ? I thought it would be in the order of creation of those keys, but it seems to be complete random... From the docs: "The order of the keys is not alphabetic

Re: Re: Age calculation script

2006-09-08 Thread William de Smet
Thanks Mark, It works! Like I said it's an educational stack so the pupils/students are not older than 20 so leap years are not important. greetings, William de Smet 2006/9/8, Mark Smith <[EMAIL PROTECTED]>: function getAge bDay put 60 * 60 * 24 * 365 into secsPerYear put secsPerYear

Re: Float above everything

2006-09-08 Thread David Bovill
No - also works on OSX (Panther and Tiger) - at least here :) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listi

Re: remove html tags from text

2006-09-08 Thread Mark Smith
barely tested, but maybe a starting point: function striptags tHtml replace cr with empty in tHtml -- in case of multi-line tags replace "<" with cr & "<" in tHtml replace ">" with ">" & cr in tHtml filter tHtml without "*<*" filter tHtml without "*>*" return tHtml end striptags b

the keys of myArray

2006-09-08 Thread jbv
Hi list, Just curious : is there any logic in the order in which Rev outputs the keys of an array ? I thought it would be in the order of creation of those keys, but it seems to be complete random... for instance, I've just created an array using keys in the following order : 1 31 59 249 251 326

remove html tags from text

2006-09-08 Thread paolo mazza
just a simple task for Revolution! How can I remove html tags from text? i.e. from: try solve this < quiz to: try solve this quiz I should use a wildcard but filter TEXT with "<*>" does not work. It is only for a list. I do not want to put the Text in a field and use the HtmlTe

Re: Age calculation script

2006-09-08 Thread Mark Smith
function getAge bDay put 60 * 60 * 24 * 365 into secsPerYear put secsPerYear / 12 into secsPerMonth put the seconds into tDay -- assuming date of birth is given in short system date format convert bDay from short system date to seconds put tDay - bDay into tAgeInSecs put tAgeInSe

translating a color name to RGB triplet

2006-09-08 Thread KALANGI Vijay BABU
Hi All, Can somebody suggest me a way to "translate a color name to RGB triplet" Thanks in advance Bubye Vijay. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Age calculation script

2006-09-08 Thread William de Smet
Hi there, For an educational app I want to calculate someone's age based on date of birth and todays date but I don't know how to start! I made a field in which the user puts its 'date of birth' (dd/mm/yy) and a button that needs to compare 'todays date' and the 'date of birth'. The output needs