Re: command enableScrollbarIfNeeded pFldName

2009-11-05 Thread Jim Sims


On Nov 6, 2009, at 7:11 AM, Richard Gaskin wrote:

Thanks... I was wondering if I was missing out on some new script   
goodies there.  ;-)


Possibly one:  have you started using the new "private" keyword?


In fact, the Most Excellent & Powerful Sarah  ;-)   has written an  
article about these topics:



http://www.revjournal.com/tutorials/command-and-private.html


Bet you've heard of that web site Richard.


sims

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: command enableScrollbarIfNeeded pFldName

2009-11-05 Thread Richard Gaskin

sims wrote:


On Nov 6, 2009, at 6:30 AM, Richard Gaskin wrote:


sims wrote:
In the dictionary user notes for formattedheight, the word  
"command"  is used where "function" might be used.
Can someone please explain the significance of that to me? Is it   
different from a function?


Functionally (all puns intended), "command" is synonymous with "on".

"Command" was added to distinguish between message handlers and  
commands, though that distinction is stylistic; AFAIK they can be  
usdd interchangeably.


Thanks... I was wondering if I was missing out on some new script  
goodies there.  ;-)


Possibly one:  have you started using the new "private" keyword?

E.g.:

private function EmpName
  return fld "FirstName" && fld "LastName"
end EmpName

By specifying a command or function as "private" means it can only be 
accessed by other handers in the same script.


This has two benefits:

1. It helps keep some handlers from being called, things like internal 
utility functions in a library stack.


2. Speed:  being available only to the local handler, they trim a fair 
bit of the message-passing overhead.  While the time to call both a 
private and public handler is too small to be noticeable in a single 
call, access time to private handlers benchmark about 30% faster, so for 
frequently-accessed handlers it can be useful.


--
 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: command enableScrollbarIfNeeded pFldName

2009-11-05 Thread Jim Sims


On Nov 6, 2009, at 6:30 AM, Richard Gaskin wrote:


sims wrote:
In the dictionary user notes for formattedheight, the word  
"command"  is used where "function" might be used.
Can someone please explain the significance of that to me? Is it   
different from a function?


Functionally (all puns intended), "command" is synonymous with "on".

"Command" was added to distinguish between message handlers and  
commands, though that distinction is stylistic; AFAIK they can be  
usdd interchangeably.


Thanks... I was wondering if I was missing out on some new script  
goodies there.  ;-)


sims




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: command enableScrollbarIfNeeded pFldName

2009-11-05 Thread Richard Gaskin

sims wrote:
In the dictionary user notes for formattedheight, the word "command"  
is used where "function" might be used.


Can someone please explain the significance of that to me? Is it  
different from a function?


Functionally (all puns intended), "command" is synonymous with "on".

"Command" was added to distinguish between message handlers and 
commands, though that distinction is stylistic; AFAIK they can be usdd 
interchangeably.


--
 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


Limit Photo Size on Upload

2009-11-05 Thread Sivakatirswami

Thanks to Sarah's wonderful example I'm building a little photo uploader.
( I don't understand all the parsing of the multipart form data, 
exactly, but enough to customize

for my needs...)

I'm worried about abuse... maybe too paranoid... I don't know, but I 
would like to limit file size of uploads to 2.5 MB photos.


When do we do that?  I don't think a file browser
(  ) knows how big the file 
is to actually stop the upload...


so you have to handle it *after* receiving the post, right?

if $_POST_RAW is not empty then
# includes headers and filename and caption of course but no need be too 
precise


 if len($_POST_RAW) > 2636822 then

 # exit out of processing the post
 # and return some response to the user "File Too Big."

have I got this right?




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


command enableScrollbarIfNeeded pFldName

2009-11-05 Thread jim sims
In the dictionary user notes for formattedheight, the word "command"  
is used where "function" might be used.


Can someone please explain the significance of that to me? Is it  
different from a function?


---
I use the formattedHeight property in a handy routine to turn on/off  
scrollbars as needed. Just call it every time you change the content  
of a field.



command enableScrollbarIfNeeded pFldName
   if the formattedHeight of fld pFldName > the height of fld  
pFldName then

  set the vScrollbar of fld pFldName to true
   else
  set the vScrollbar of fld pFldName to false
   end if
end enableScrollbarIfNeeded



TIA,
sims

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Progress Bar Updates

2009-11-05 Thread Josh Mellicker
Although not at all as comprehensive as Sarah's, this code updates a  
human-readable time left and download speed status text under the bar:


http://revcoders.org/calctimeremaining/


On Nov 5, 2009, at 2:49 PM, Sarah Reichelt wrote:


On Fri, Nov 6, 2009 at 4:31 AM, Bill Vlahos  wrote:
I've successfully used libURLSetStatusCallback for getting the  
status when
downloading from a web server and updating a progress bar. However,  
when I

try it for opening a file from a file server it doesn't work.



Have a look at this revLesson:



Cheers,
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: Re-2: [OT] Anyone using an ebook reader with the RunrevDictionary PDF?

2009-11-05 Thread J. Landman Gay

runrev260...@m-r-d.de wrote:

I searched for calibre after reading your previous email. I already
was afraid, that it just supports OS X, but it runs under windows
also.


And Linux. And it works with the command line on any OS, which gives you 
even more features, things that he can't squeeze into the GUI.



I have already created a pdf to epub to read it on my iphone with
Stanza.

Really AMAZING. Thanks for sharing this with us.


He doesn't beg for money either, so I gave him some. :)

--
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-2: [OT] Anyone using an ebook reader with the RunrevDictionary PDF?

2009-11-05 Thread runrev260805
I searched for calibre after reading your previous email. I already was afraid, 
that it just supports OS X, but it runs under windows also. 

I have already created a pdf to epub to read it on my iphone with Stanza.

Really AMAZING. Thanks for sharing this with us.

Matthias



 Original Message 
Subject: Re: [OT] Anyone using an ebook reader with the RunrevDictionary PDF? 
(06-Nov-2009 0:55)
From:J. Landman Gay 
To:  runrev260...@m-r-d.de

> Actually, since we're off-topic, anyone using any ebook reader should 
> check out Calibre. It's really a marvel. Ditch your native software, 
> Calibre does it all and is fully cross platform. It also has a built-in 
> Stanza server for those who can't load books except via a wireless 
> connection. My husband uses Calibre to load ebooks onto his iPod Touch.
> 
> I'm not connected with them, I'm just a very enthusiastic user.
> 
> 
> -- 
> 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
> 
> 
> 
> 
> To: use-revolution@lists.runrev.com


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] Anyone using an ebook reader with the RunrevDictionary PDF?

2009-11-05 Thread J. Landman Gay
Actually, since we're off-topic, anyone using any ebook reader should 
check out Calibre. It's really a marvel. Ditch your native software, 
Calibre does it all and is fully cross platform. It also has a built-in 
Stanza server for those who can't load books except via a wireless 
connection. My husband uses Calibre to load ebooks onto his iPod Touch.


I'm not connected with them, I'm just a very enthusiastic user.


--
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: [OT] Anyone using an ebook reader with the RunrevDictionary PDF?

2009-11-05 Thread J. Landman Gay

runrev260...@m-r-d.de wrote:

Hi,

i am thinking of buying an ebook reader, either Sony PRS505, Sony
PRS600 or Amazon Kindle. The main use would be, reading pdf documents
with it.

Now i heard that there  could be problems with Pdfs on ebook readers.


Does anyone on this list know, if there are problems with the pdf
dictionary of Revolution on ebook readers.


I have a Sony 700 and it reads PDFs. If the PDF is an image, you can 
resize it to any scale and then scroll it by moving the image around the 
screen. If the PDF has flowable text, then the text will display as 
pages on the screen without having to resize it. You can search and 
annotate with the Sony 700. You can also set the text size to your 
preference. The Sony eReader does not have an internet connection, but 
I've never missed it. I load all my books from my Mac using the free 
software Calibre, which will convert almost any format to any other 
format, including Sony's. It will also convert PDFs to native text 
documentation.


I chose the 700 because I wanted a backlight, but the 505 is good if you 
read mostly in daylight. I don't know if the 505 accepts PDFs directly 
but Calibre supports the 505, so it can convert PDFs if you need to.


I just tried converting the Rev User Guide from PDF to Sony's "lrf" 
format, and it worked fine. It would also have worked on the Sony 
without conversion.


I've been using ebook readers for years, and I love them. My last one 
was worn down to the metal before I gave it up, I'd worn off all its 
skin. I'm a strong advocate for saving trees, and I like the convenience 
of being able to carry around hundreds of books in a device that is only 
a few ounces.

___
use-revolution mailing list
use-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: Re-2: [OT] Anyone using an ebook reader with the RunrevDictionary PDF?

2009-11-05 Thread Marian Petrides

Matthias,
I have heard rumors (on the Kindle boards)  that at an international  
Kindle DX will be announced soon--can't remember exactly when.


Yes, I believe keyword searching is also not possible.  I KNEW there  
was a reason I had my Rev Dox on the DX but wasn't using them much.   
Or maybe that's just  because I haven't had time to use Rev at all  
lately. :-)


Marian


On Nov 5, 2009, at 4:54 PM, runrev260...@m-r-d.de wrote:


Hi Marian,

thanks for the feedback.

Long story short, the only thing that does this adequately at present
is the Kindle DX.  The only downside to reading PDFs on the DX is  
that

the page is displayed as a graphic not as reflowing text, so can not
be highlighted or annotated.


So searching is also not possible, right?

But anyway, Amazon only offers the Kindle2 with International  
wireless coverage.

So the DX is not recommended for use in germany.

Regards,

Matthias




Marian

On Nov 5, 2009, at 4:27 PM, runrev260...@m-r-d.de wrote:


Hi,

i am thinking of buying an ebook reader, either Sony PRS505, Sony
PRS600 or Amazon Kindle. The main use would be, reading pdf
documents with it.

Now i heard that there  could be problems with Pdfs on ebook  
readers.


Does anyone on this list know, if there are problems with the pdf
dictionary of Revolution on ebook readers.

Regards,

Matthias


___
use-revolution mailing list
use-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




To: use-revolution@lists.runrev.com



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-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: Re-2: [OT] Anyone using an ebook reader with the RunrevDictionary PDF?

2009-11-05 Thread Colin Holgate


On Nov 5, 2009, at 5:54 PM, runrev260...@m-r-d.de wrote:



which model of the Kindle are you using?



The first one. I have sent PDFs to it before, and it worked out ok.


___
use-revolution mailing list
use-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-2: [OT] Anyone using an ebook reader with the RunrevDictionary PDF?

2009-11-05 Thread runrev260805
Colin,

which model of the Kindle are you using? 

 Original Message 
Subject: Re: [OT] Anyone using an ebook reader with the RunrevDictionary PDF? 
(05-Nov-2009 23:39)
From:Colin Holgate 
To:  runrev260...@m-r-d.de

> I just emailed the PDF to my Kindle account (that's how you get PDFs  
> onto the device). I'll let you know later on how it works out.
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> 
> 
> To: use-revolution@lists.runrev.com


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re-2: [OT] Anyone using an ebook reader with the RunrevDictionary PDF?

2009-11-05 Thread runrev260805
Hi Marian,

thanks for the feedback.
> Long story short, the only thing that does this adequately at present  
> is the Kindle DX.  The only downside to reading PDFs on the DX is that  
> the page is displayed as a graphic not as reflowing text, so can not  
> be highlighted or annotated.

So searching is also not possible, right?

But anyway, Amazon only offers the Kindle2 with International wireless coverage.
So the DX is not recommended for use in germany.

Regards,

Matthias


> 
> Marian
> 
> On Nov 5, 2009, at 4:27 PM, runrev260...@m-r-d.de wrote:
> 
> > Hi,
> >
> > i am thinking of buying an ebook reader, either Sony PRS505, Sony  
> > PRS600 or Amazon Kindle. The main use would be, reading pdf  
> > documents with it.
> >
> > Now i heard that there  could be problems with Pdfs on ebook readers.
> >
> > Does anyone on this list know, if there are problems with the pdf  
> > dictionary of Revolution on ebook readers.
> >
> > Regards,
> >
> > Matthias
> >
> >
> > ___
> > use-revolution mailing list
> > use-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
> 
> 
> 
> 
> To: use-revolution@lists.runrev.com


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Progress Bar Updates

2009-11-05 Thread Sarah Reichelt
On Fri, Nov 6, 2009 at 4:31 AM, Bill Vlahos  wrote:
> I've successfully used libURLSetStatusCallback for getting the status when
> downloading from a web server and updating a progress bar. However, when I
> try it for opening a file from a file server it doesn't work.


Have a look at this revLesson:


Cheers,
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


Re: [OT] Anyone using an ebook reader with the RunrevDictionary PDF?

2009-11-05 Thread Marian Petrides

Matthias

I have the Kindle 2, Kindle DX and used to have a Sony 505.

I would recommend using the Kindle DX, since it will give you nearly  
full size display of your PDF (albeit as a graphic PDF, not a reflowed  
text PDF).  I've tried the Sony 505 (same size screen as 600) but PDFs  
were so small I couldn't read them.  Same problem would be present if  
the Kindle 2 were capable of native display of PDFs (without  
conversion to AZW)--and I can't recall offhand if it even can.


Long story short, the only thing that does this adequately at present  
is the Kindle DX.  The only downside to reading PDFs on the DX is that  
the page is displayed as a graphic not as reflowing text, so can not  
be highlighted or annotated.


Marian

On Nov 5, 2009, at 4:27 PM, runrev260...@m-r-d.de wrote:


Hi,

i am thinking of buying an ebook reader, either Sony PRS505, Sony  
PRS600 or Amazon Kindle. The main use would be, reading pdf  
documents with it.


Now i heard that there  could be problems with Pdfs on ebook readers.

Does anyone on this list know, if there are problems with the pdf  
dictionary of Revolution on ebook readers.


Regards,

Matthias


___
use-revolution mailing list
use-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: [OT] Anyone using an ebook reader with the RunrevDictionary PDF?

2009-11-05 Thread Colin Holgate
I just emailed the PDF to my Kindle account (that's how you get PDFs  
onto the device). I'll let you know later on how it works out.



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


[OT] Anyone using an ebook reader with the RunrevDictionary PDF?

2009-11-05 Thread runrev260805
Hi,

i am thinking of buying an ebook reader, either Sony PRS505, Sony PRS600 or 
Amazon Kindle. The main use would be, reading pdf documents with it. 

Now i heard that there  could be problems with Pdfs on ebook readers.

Does anyone on this list know, if there are problems with the pdf dictionary of 
Revolution on ebook readers.

Regards,

Matthias


___
use-revolution mailing list
use-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-2: search for regular expression in text and put the results into an array

2009-11-05 Thread runrev260805
Hi,

first thanks to all for the suggestions. As i am unfamiliar with the offset 
function and i was a little in a hurry i used Jim´s script and extended it to 
my needs.

@Jim

Line 8 of your example should be

filter xmlBlock without "*"

shouldn´t it. 

Thanks again.

Matthias



 Original Message 
Subject: Re: search for regular expression in text and put the results into an 
array (05-Nov-2009 6:41)
From:Jim Ault 
To:  runrev260...@m-r-d.de

> I don't use the xml library to do the simple tag processing for three  
> types of tags
> Chunk expressions are so fast that I get better speed and control of  
> the data parsing.
> 
> --- Use these steps to get started
> 
> on test
> replace cr with empty in xmlBlock
> replace quote with "'" in xmlBlock  --(apostrophe ' char)
> --now you can use quote expressions without worries
> --   such as in the next line
> replace "" with (cr & " type='array'>") in xmlBlock
> filter xmlBlock with "*"
> 
> put 0 into statusCount
> repeat for each line statusArrLine in xmlBlock
>replace "" with (cr & "") in statusArrLine
>replace "" with ("" & cr) in statusArrLine
>filter statusArrLine with "*"
> 
>repeat for each line statusTag in statusArrLine
>   replace "" with empty in statusTag
>   replace "" with empty in statusTag
>   --now we have the data only, and on a single line
>   add 1 to statusCount
>   put statusTag into storArray[statusCount]
> 
>end repeat
> end repeat
> 
> --> statusCount = total
> --> storArray[num] = strings storage
> end test
> 
> Hope this helps.
> 
> Jim Ault
> Las Vegas
> 
> On Nov 4, 2009, at 4:06 PM, runrev260...@m-r-d.de wrote:
> 
> > Hi,
> >
> > I am absolutely new to XML, so please forgive me for this question.
> >
> > I have an XML file which looks similar like this.
> >
> > 
> > 
> > blah blah bla
> >   blah blah blah
> >  
> >
> >
> > The ... part is repeating many times, but with  
> > different content.
> >
> > i want to put the ...part  into an array. So i get  
> > to know how often this part is in the xml file. I then want to  
> > extract some text of each of this  section. My  
> > main problem is how to seperate each   section.  
> > Do i have to use the XML library? Or is there another way?
> >
> > Regards,
> >
> > Matthias
> 
> 
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> 
> 
> To: use-revolution@lists.runrev.com


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Progress Bar Updates

2009-11-05 Thread Alex Tweedly

Bill Vlahos wrote:
I've successfully used libURLSetStatusCallback for getting the status 
when downloading from a web server and updating a progress bar. 
However, when I try it for opening a file from a file server it 
doesn't work. Below is the code for the file server open in a button.


global vSyslogFile

on mouseUp
   answer file "Open Syslog File:"
   if it is not empty then
  libURLSetStatusCallback "myProgress",the long ID of me
  show sb 1 -- progress bar
  put URL ("file:" & it) into vSyslogFile
  hide sb 1
   end if
end mouseUp

on myProgress theURL,theStatus
  if "loading" is item 1 of theStatus then set the thumbpos of sb 1 to 
(item 2 of theStatus/item 3 of theStatus)*(the endvalue of sb 
1-startvalue of sb 1)

end myProgress

Does this not work for these kinds of put URL commands?


No, it doesn't. The docs for it say

Summary:
Sets up a callback message to be sent periodically during uploads and 
downloads.

When you do, e.g., put URL ("file:abc.txt") into temp
control doesn't return to you until the put is complete.

-- Alex.

___
use-revolution mailing list
use-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: search for regular expression in text and put the results into an array

2009-11-05 Thread Michael Kann
The first script that got away didn't count the frequency correctly. This one I 
hope does so. I also noticed that the other one referred to teams in the 
scripts and restaurants in the data. I guess I got hungry halfway through the 
project. I also changed fld "a" to fld "input" and fld "b" to fld "output"

I took out the part where it lists the restaurants as they appear in the raw 
data. Now you only get the frequency, which was the original intent. 

Sorry if I caused too much trouble with the last script. I'll be more careful 
in the future.


on mouseUp

put fld "input" into v
put empty into fld "output"

put "" into  aTag
put "" into bTag

replace return with "*" in v
replace aTag with return in v

replace bTag with "@" in v
filter v with "*...@*"

set the itemDelimiter to "@"

repeat for each line curLine in v
put item 1 of curLine into curRestaurant
add 1 to frequencyRes[curRestaurant]
end repeat

put "restaurants and frequency" & cr into h
combine frequencyRes with cr and space 
sort frequencyRes numeric descending by last word of each
put h & cr & frequencyRes & cr after fld "output"

end mouseUp


  
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Data Grid: How to size the group to fit number of lines? - dgFormattedHeight! never mind!

2009-11-05 Thread Josh Mellicker

dgFormattedHeight

Never mind!

On Nov 5, 2009, at 11:25 AM, Josh Mellicker wrote:

With a simple Table Data Grid that varies between 3 to 6 lines, how  
would one resize the group only to show the populated lines? So that  
empty lines were never shown?


Would you count the number of lines, multiply by row height, and use  
this as the "formatted grid height", and resize the height of the  
group to this number?

___
use-revolution mailing list
use-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


Data Grid: How to size the group to fit number of lines?

2009-11-05 Thread Josh Mellicker
With a simple Table Data Grid that varies between 3 to 6 lines, how  
would one resize the group only to show the populated lines? So that  
empty lines were never shown?


Would you count the number of lines, multiply by row height, and use  
this as the "formatted grid height", and resize the height of the  
group to this number?

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Revolution Media 4.x and Revolution Player 3.x

2009-11-05 Thread Dom
As a former user of Revolution Media 3.x, I used Revolution Player to
run stacks without launching the development environment...

I am wondering if I still can use the old Revolution Player (3.x) to run
stacks created with the new Revolution Media 4.x?


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution