Re: Text in imageSource

2006-01-25 Thread Sarah Reichelt
> I had a field that would allow users to record their voices when they pressed 
> on a "0" and play their recording when the pressed on a ">" [I did this 
> because there were varying numbers of lines...long story]
>
> Later I wanted to put an image there to make it more understandable to the 
> user--I set the imagesource of that character.
>
> Here's the part that's interesting for you. When I moved my cursor over the 
> image, the script reacted as though the characters were still there.
>
> So... for your ranking field, put numbers for rank and then run a script that 
> sets the imagedata of those characters. You should still be able to sort the 
> field because the numbers still exist.
>

If I do it that way, the sort works perfectly, but it is too slow for
the initial display. It takes about 20 seconds to do 700 lines this
way, where using the htmlText method on a variable and then putting it
all in the field takes less than 1 second.

I am currently using the hidden column method, but I'll try Jacque's
custom sort. I always forget about those but they can be really
powerful.

Thanks,
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: nested ifs

2006-01-25 Thread Brian Yennie

Dave, Chipp, et al.

Consider that the following snippet is actually ambiguous. Notice two 
different formatting passes at exactly the same code. Now, of course, 
the first formatting actually resolves to valid code, while the second 
one is one "end if" short -- but who is the compiler to say which one 
you intended?


Well, that's my theory anyway - you can't actually determine which "if" 
matches matches which "else" and  "end if".


1)
If x > y then
doSomething1
if a = be then doSomething2 ##problem here
else
doSomethng3
end if

2)
If x > y then
doSomething1
if a = be then doSomething2 ##problem here
else
doSomethng3
end if

___
use-revolution mailing list
use-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: Synching Calendar Events Between Rev and Outlook

2006-01-25 Thread Ken Ray
On 1/25/06 7:54 PM, "Jim Carwardine" <[EMAIL PROTECTED]>
wrote:

> I'm building an app that has it's own calendar in it.  Is there a way to
> access the Outlook database and synchronize events between my calendar and
> Outlook?  Jim

Yes, you can use VB Script to communicate to Outlook; I have an example that
works with Excel that you can adapt:

  http://www.sonsothunder.com/devres/revolution/tips/iac001.htm

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

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


Re: Text in imageSource

2006-01-25 Thread J. Landman Gay

Thomas McCarthy wrote:


So... for your ranking field, put numbers for rank and then run a
script that sets the imagedata of those characters. You should still
be able to sort the field because the numbers still exist.


Oooh, I like this one. It is more elegant than mine.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text in imageSource

2006-01-25 Thread Chipp Walters
Coming late to the party, but did you know you can set the htmlText of a 
single line in a field? Might help.


-Chipp

___
use-revolution mailing list
use-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: Text in imageSource

2006-01-25 Thread J. Landman Gay

Sarah Reichelt wrote:


The second method produces a column that can be sorted, but setting
the html directly does not. Checking the htmlText for each method,
they appear to be identical.

It's as if Rev is storing the original character somewhere hidden and
it doesn't appear in the htmlText although it is available to the sort
command.


I'm pretty sure that's what it's doing. The character has to be stored 
somewhere, because if you remove the imagesource, the original character 
comes back.




I've tried setting the "alt" of the img but that doesn't help.

I have to use the direct HTML method for the initial display as
setting the imageSource of each line on the field takes far too long,
but it has to be sortable. Does anyone have any ideas?


Custom sort functions are made for this stuff. I'd test for the column 
the user wants to sort on, and sort normally unless it is the ratings 
column. In that case, use a custom function:


sort lines of fld  by customSort(each)

function customSort pRatingHTML
  put 0 into tSkip
  put 0 into tNum
  repeat
put offset("star",pRatingHTML,tSkip) into tOffset
if tOffset = 0 then exit repeat
add 1 to tNum
add tOffset to tSkip
  end repeat
  return tNum
end customSort


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Synching Calendar Events Between Rev and Outlook

2006-01-25 Thread Scott Kane

> Hi Scott... What is COM?... Jim

Can't remember what it stands for, but it's a
methodology (and interface) to Microsoft programs
(usually - though you can write your own COM applications,
though I have never done so).  Kind of like ODBC but not
just databases'.  With COM you can drive and import Outook,
Word, Excel, Powerpoint, Access etc.

Scott


___
use-revolution mailing list
use-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: Synching Calendar Events Between Rev and Outlook

2006-01-25 Thread Jim Carwardine
Hi Scott... What is COM?... Jim

on 1/25/06 9:56 PM, Scott Kane wrote:

> 
>> I'm building an app that has it's own calendar in it.  Is
>> there a way to access the Outlook database and synchronize
>> events between my calendar and Outlook?  Jim
> 
> It can be accessed through COM.  I can do it in Delphi,
> but, as far as I know, Rev' isn't able to access COM,
> unless an external was written...
> 
> Scott
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

-- 

OYF is... Highly resourceful people working together.


Own Your Future Consulting Services Limited,
1959 Lower Water Street, Suite 1700, Halifax, Nova Scotia. B3J 3N2
Phone: 902-823-2339. Fax: 902-823-2139

What¹s New...

* Have you ever hired an employee who didn¹t work out?

* Did you do that on purpose?

Probably not...

If you want to greatly improve your hiring process,
 check out our new hiring process... www.HiringSmart.ca/ns

  and...
www.KeepingTheBest.ca/ns 





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


Text in imageSource

2006-01-25 Thread Thomas McCarthy

Sarah, I just glanced at this, so if it's resolved already, forgive me.

I had a field that would allow users to record their voices when they pressed 
on a "0" and play their recording when the pressed on a ">" [I did this because 
there were varying numbers of lines...long story]

Later I wanted to put an image there to make it more understandable to the 
user--I set the imagesource of that character.

Here's the part that's interesting for you. When I moved my cursor over the 
image, the script reacted as though the characters were still there.

So... for your ranking field, put numbers for rank and then run a script that 
sets the imagedata of those characters. You should still be able to sort the 
field because the numbers still exist.

hope that helps
tm

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


___
use-revolution mailing list
use-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: Synching Calendar Events Between Rev and Outlook

2006-01-25 Thread Scott Kane

> I'm building an app that has it's own calendar in it.  Is 
> there a way to access the Outlook database and synchronize 
> events between my calendar and Outlook?  Jim

It can be accessed through COM.  I can do it in Delphi,
but, as far as I know, Rev' isn't able to access COM,
unless an external was written...

Scott


___
use-revolution mailing list
use-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: Text in imageSource

2006-01-25 Thread Sarah Reichelt
On 1/26/06, Jim Ault <[EMAIL PROTECTED]> wrote:
> I put this in my message box and smmmoked it :-)
>
> put " ">" into item 1 of line 1 of tHTML
> put " ">" into item 2 of line 1 of tHTML
> put " ">" into item 3 of line 1 of tHTML
>
> get replaceText( tHTML , "(?Ui)","A")
> put tHTML && cr & it
>
> ---result ---  line 2 
> AAA,AAA,AAA
>
> so you may be able to adjust the format and the substitution to do what you
> need.
>

Jim,

You're a genius. I'll need to do some tests and work out exactly what
is going on (since I am a complete regex dummy), but it looks like I
will be able to make it do what I want.

Many thanks,
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: Rev CGIs and Secure Forms

2006-01-25 Thread kee nethery
if you get an answer, let me know too. It's not a rev thing, it's  
more of an OS thing.

Kee Nethery


On Jan 25, 2006, at 9:43 AM, Gregory Lypny wrote:


Hi Everyone,

	I posted this a few days ago but didn't see any replies or perhaps  
missed them.  I'm taking another kick at the cat just in case.


Regards,

Gregory


Hello Everyone,

Does anyone know of Revolution documents or examples that explain
how to implement security for a web site run on Revolution CGIs?  I'm
working in Tiger, and I'd like to include some secure forms in my
site, you know, that https stuff.






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


Synching Calendar Events Between Rev and Outlook

2006-01-25 Thread Jim Carwardine
I'm building an app that has it's own calendar in it.  Is there a way to
access the Outlook database and synchronize events between my calendar and
Outlook?  Jim


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


Re: Text in imageSource

2006-01-25 Thread Jim Ault
I put this in my message box and smmmoked it :-)

put "" into item 1 of line 1 of tHTML
put "" into item 2 of line 1 of tHTML
put "" into item 3 of line 1 of tHTML

get replaceText( tHTML , "(?Ui)","A")
put tHTML && cr & it

---result ---  line 2 
AAA,AAA,AAA

so you may be able to adjust the format and the substitution to do what you
need.

Jim  Ault
Las Vegas

On 1/25/06 4:57 PM, "Sarah Reichelt" <[EMAIL PROTECTED]> wrote:

> Hi All,
> 
> I have a list field which I want to use to show ratings in a way
> similar to how iTunes does it i.e. a column with stars or dashes to
> indicate the current rating which can be clicked to change them.
> 
> I have done it OK and it works fine except for sorting. In the initial
> setup, I set the htmlText of the field directly and use "img src" to
> set the correct icon in place. The line below gives a 1 star rating:
> 
> put " ">" into
> item 5 of line x of tHTML
> 
> 
> When the rating is changed by clicking, I use this:
> 
> put pRating & ".." into item 5 of line pLineNum of fld "PictureList"
> repeat with x = 1 to 3
> if x > pRating then
> put "Dash.png" into tImage
> else
> put "Star.png" into tImage
> end if
> set the imageSource of char x of item 5 of line pLineNum of
> fld "PictureList" to tImage
> end repeat
> 
> The second method produces a column that can be sorted, but setting
> the html directly does not. Checking the htmlText for each method,
> they appear to be identical.
> 
> It's as if Rev is storing the original character somewhere hidden and
> it doesn't appear in the htmlText although it is available to the sort
> command.
> 
> I've tried setting the "alt" of the img but that doesn't help.
> 
> I have to use the direct HTML method for the initial display as
> setting the imageSource of each line on the field takes far too long,
> but it has to be sortable. Does anyone have any ideas?
> 
> TIA,
> 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: Stack to Flash

2006-01-25 Thread Takaaki Furukawa

Why not have a dreamcard/RR player as a browser plug-in instead?


That would be good too, but there's a popularity hurdle.
Besides, stacks wouldn't run on computers in internet-cafes
without a dreamcard/RR plug-in.

--
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE PARTNER
http://pr.mail.yahoo.co.jp/ganbare-nippon/
___
use-revolution mailing list
use-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: Text in imageSource

2006-01-25 Thread Sarah Reichelt
> > I have to use the direct HTML method for the initial display
> > as setting the imageSource of each line on the field takes
> > far too long, but it has to be sortable. Does anyone have any ideas?
>
> Chipp has a sortable list field substutute on
> his website. In the Rev section of the site...
>

Thanks Scott, but it isn't the sorting that's the problem, it's the
fact that when I set the img src directly, there is nothing to sort
by.

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: Text in imageSource

2006-01-25 Thread Sarah Reichelt
> > I have to use the direct HTML method for the initial display as
> > setting the imageSource of each line on the field takes far too long,
> > but it has to be sortable. Does anyone have any ideas?
>
> Maybe just store the integer equivalent of the rating in an offscreen
> column and sort by that?
>
>
Hi Trevor,

Yes, that's what I've gone with for the moment, but it seems weird
that I can't replicate exactly what setting the imageSource does by
setting the htmlText :-(

Thanks,
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: Stack to Flash

2006-01-25 Thread Robert J. Lawrence

Why not have a dreamcard/RR player as a browser plug-in instead?


Robert

On Jan 25, 2006, at 7:02 PM, Takaaki Furukawa wrote:

Why would you want to do that to a perfectly good stack or  
standalone?


 To publish stacks onto the web, of course.




Wouldn't it be great if we could convert stacks (RR projects)
into Flash movies? Flash supports buttons and fields,
and the file format of Flash is open I believe. So I guess
it's not an infinitely difficult task. What do you say?

--
GANBARE! NIPPON!


--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

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



--
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE PARTNER
http://pr.mail.yahoo.co.jp/ganbare-nippon/
___
use-revolution mailing list
use-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: Text in imageSource

2006-01-25 Thread Scott Kane
Sorry, the URL should have been:

http://www.altuit.com/webs/altuit2/altPluginDownload/Downloads.htm

Scott


___
use-revolution mailing list
use-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: Text in imageSource

2006-01-25 Thread Scott Kane
Hi Sarah,

> I have to use the direct HTML method for the initial display 
> as setting the imageSource of each line on the field takes 
> far too long, but it has to be sortable. Does anyone have any ideas?

Chipp has a sortable list field substutute on
his website. In the Rev section of the site...

http://www.altuit.com/webs/altuit2/altSQLiteCover/default.htm

Scott


___
use-revolution mailing list
use-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: Text in imageSource

2006-01-25 Thread Trevor DeVore

On Jan 25, 2006, at 4:57 PM, Sarah Reichelt wrote:


I have to use the direct HTML method for the initial display as
setting the imageSource of each line on the field takes far too long,
but it has to be sortable. Does anyone have any ideas?


Maybe just store the integer equivalent of the rating in an offscreen  
column and sort by that?



--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]


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


Re: Stack to Flash

2006-01-25 Thread Takaaki Furukawa

Why would you want to do that to a perfectly good stack or standalone?


 To publish stacks onto the web, of course.




Wouldn't it be great if we could convert stacks (RR projects)
into Flash movies? Flash supports buttons and fields,
and the file format of Flash is open I believe. So I guess
it's not an infinitely difficult task. What do you say?

--
GANBARE! NIPPON!


--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

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



--
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE PARTNER
http://pr.mail.yahoo.co.jp/ganbare-nippon/
___
use-revolution mailing list
use-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: Stack to Flash

2006-01-25 Thread Stephen Barncard

Why would you want to do that to a perfectly good stack or standalone?


Wouldn't it be great if we could convert stacks (RR projects)
into Flash movies? Flash supports buttons and fields,
and the file format of Flash is open I believe. So I guess
it's not an infinitely difficult task. What do you say?

--
GANBARE! NIPPON!


--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-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: Stack to Flash

2006-01-25 Thread Jim Ault



On 1/25/06 4:40 PM, "Takaaki Furukawa" <[EMAIL PROTECTED]> wrote:

> Wouldn't it be great if we could convert stacks (RR projects)
> into Flash movies? Flash supports buttons and fields,
> and the file format of Flash is open I believe. So I guess
> it's not an infinitely difficult task. What do you say?
> 
Off the top of my head, a sizeable hurdle is the object models of the two
programs are substantially different.  Flash is based on timelines, frames,
movie clips and many multimedia constructs, such as codecs for audio and
video.  Its purpose is to publish a file or set of files that its own Flash
Player can render on various platforms.

I doubt that Rev would be a very good tool for building, then porting to
Flash.  I will defer to anyone who really knows the answer or has tried
this.

In my experience, buttons and fields are very easy to create using the mouse
or with Flash ActionScript language procedures and functions.

What I have done is use Revolution to write a complex text file that
instructs ActionScript to create fields and buttons, give them attributes
and functions so that I direct what Flash Player does.  This takes advantage
of the 'loadVars' capability of Flash to read variables and values
on-the-fly and process them accordingly.

It would be interesting to find out kind of movie would work directly from
Rev.

Jim Ault
Las Vegas


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


Text in imageSource

2006-01-25 Thread Sarah Reichelt
Hi All,

I have a list field which I want to use to show ratings in a way
similar to how iTunes does it i.e. a column with stars or dashes to
indicate the current rating which can be clicked to change them.

I have done it OK and it works fine except for sorting. In the initial
setup, I set the htmlText of the field directly and use "img src" to
set the correct icon in place. The line below gives a 1 star rating:

put "" into
item 5 of line x of tHTML


When the rating is changed by clicking, I use this:

put pRating & ".." into item 5 of line pLineNum of fld "PictureList"
repeat with x = 1 to 3
if x > pRating then
put "Dash.png" into tImage
else
put "Star.png" into tImage
end if
set the imageSource of char x of item 5 of line pLineNum of
fld "PictureList" to tImage
end repeat

The second method produces a column that can be sorted, but setting
the html directly does not. Checking the htmlText for each method,
they appear to be identical.

It's as if Rev is storing the original character somewhere hidden and
it doesn't appear in the htmlText although it is available to the sort
command.

I've tried setting the "alt" of the img but that doesn't help.

I have to use the direct HTML method for the initial display as
setting the imageSource of each line on the field takes far too long,
but it has to be sortable. Does anyone have any ideas?

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


Stack to Flash

2006-01-25 Thread Takaaki Furukawa

Wouldn't it be great if we could convert stacks (RR projects)
into Flash movies? Flash supports buttons and fields,
and the file format of Flash is open I believe. So I guess
it's not an infinitely difficult task. What do you say?

--
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE PARTNER
http://pr.mail.yahoo.co.jp/ganbare-nippon/
___
use-revolution mailing list
use-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: Addition-Elementary Style

2006-01-25 Thread Gordon Tillman

Michael you can do something like this:

Let's suppose your 8 fields are named "f1" through "f8" and you want  
the sum in a field named "f9".  You can say


put (field "f1" + field "f2" + ... + field "f8") into field "f9"

--gordy


On Jan 25, 2006, at 15:03, Michael Mandaville wrote:


Revolution brothers and sisters,
On the basis that the most stupid question is the one left unasked,  
I throw

myself on the pyre with this question:

I have eight multiple text fields.  Numbers will go into these  
fields.  I

want all the numbers to add up and go into the Ninth field.


Add field1+field2+field3 [etc.,} and put into field Total

Add field Timeneed + Effort + People [etc.,] and put into field Total


I have searched the documentation and tried a dozen syntaxes but  
can't seem

to get something as fundamental to work.

Thank you.


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

2006-01-25 Thread Sarah Reichelt
 > set itemdel to tab
>select the clickLine
>put the item 1 of the clickLine into tuserID
>put tuserID into fld "field"
>
> which returns say
>
> line 6 of field 1
>
> I want to find line 6 of field 2
>

It depends on the properties of the field. If it is a list field, you
can get the selectedText as the whole line will have been selected
when you clicked.

Otherwise, I think you can get the value of line 6 of field 2 and
possibly the text of line 6 of field 2

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


clickLine

2006-01-25 Thread liamlambert

I got this to work is this the best Way

 set itemdel to tab
  select the clickLine
  put the item 1 of the clickLine into tuserID
  set itemdel to space
  get item 2 of tuserID
  put it into tlineNO
  select line tlineNo of field "bookinglist"

Liam Lambert
[EMAIL PROTECTED]
IRELAND


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


clickLine

2006-01-25 Thread liamlambert

I have a pice of code

set itemdel to tab
  select the clickLine
  put the item 1 of the clickLine into tuserID
  put tuserID into fld "field"

which returns say

line 6 of field 1

I want to find line 6 of field 2

how


thanks

Liam Lambert
[EMAIL PROTECTED]
IRELAND


___
use-revolution mailing list
use-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: Addition-Elementary Style

2006-01-25 Thread J. Landman Gay

Michael Mandaville wrote:

Revolution brothers and sisters,
On the basis that the most stupid question is the one left unasked,


You bet, and I wish more people would ask the basic stuff. Good going.


I throw
myself on the pyre with this question:

I have eight multiple text fields.  Numbers will go into these fields.  I
want all the numbers to add up and go into the Ninth field.


Transcript being as flexible as it is, there are about a gazillion ways 
to do this. Here are three, from longest to shortest:


1. Use "add" sequentially:

put fld 1 into myTotal -- put in the initial value
add fld 2 to myTotal
add fld 3 to myTotal
... etc
put myTotal into fld 9


2. Use "add" in a repeat loop:

repeat with x = 1 to 8
  add fld x to myTotal
end repeat
put myTotal into fld 9

3. Use the built-in "sum" function:

  put sum(fld 1,fld 2,fld 3,fld 4,fld 5,fld 6,fld 7,fld 8) into fld 9


You can substitute the field's name for the number in any of these. 
I.e.: add fld "effort" to mytotal, etc.



--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Addition-Elementary Style

2006-01-25 Thread Eric Chatonet

Hi Michael,

Assuming that your fields are, for instance , field number 1 to 8 and  
are ensured to be numbers:


local tTotal
-
put 0 into tTotal
repeat with i = 1 to 8
  add fld i to tTotal
end repeat
put tTotal into fld "Total"

For a better security (but you have to care when creating the fields)  
you can use the IDS instead of the numbers:

For instance with 8 fields ID 1256 to 1293:

local tTotal
-
put 0 into tTotal
repeat with i = 1 to 8
  add fld ID (1255 + i)  to tTotal
end repeat
put tTotal into fld "Total"

Le 25 janv. 06 à 22:03, Michael Mandaville a écrit :


Revolution brothers and sisters,
On the basis that the most stupid question is the one left unasked,  
I throw

myself on the pyre with this question:

I have eight multiple text fields.  Numbers will go into these  
fields.  I

want all the numbers to add up and go into the Ninth field.


Add field1+field2+field3 [etc.,} and put into field Total

Add field Timeneed + Effort + People [etc.,] and put into field Total


I have searched the documentation and tried a dozen syntaxes but  
can't seem

to get something as fundamental to work.


Best Regards from Paris,
Eric Chatonet
 
--

http://www.sosmartsoftware.com/[EMAIL PROTECTED]/


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


Re: Playing Quicktime movies from a server...

2006-01-25 Thread Mark Talluto


On Jan 25, 2006, at 10:40 AM, David Bovill wrote:


Does anyone have any experience of how to do this?

QuickTime video can be encoded to stream off of a video server, or  
it can be encoded to stream off of any standard web server like  
you're already using to host your current web site. This second  
method of streaming is the most popular and is commonly referred  
to as http streaming, or QuickTime progressive download (a.k.a  
fast start).
Ideally I'd like to be able to play then without having to download  
the movie first - and then have the data locally.



If you specify a URL for a streaming QuickTime movie file,  
Revolution displays the movie sequentially as it downloads.  
Otherwise, Revolution must download the entire file before you can  
play it. To pre-fetch a file from the Internet in order to speed  
up access to it, use the load command before visiting the card  
that holds the player or image that references the file's URL.


OK - but in either case where is the downloaded QuickTime file and  
how can I copy it to a permanent store?


A final question is which is a faster or more reliable method to  
use (given that I can access the files either by ftp or http:


load url

or

libURLDownloadToFile

And is there a way to resume a download after pausing it for some  
reason?




You should probably be aware of bug:   when it comes to streaming media.



Mark Talluto
--
CANELA Software
http://www.canelasoftware.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: Addition-Elementary Style

2006-01-25 Thread Jim Ault
On 1/25/06 1:03 PM, "Michael Mandaville" <[EMAIL PROTECTED]> wrote:
> Revolution brothers and sisters,
> On the basis that the most stupid question is the one left unasked, I throw
> myself on the pyre with this question:
>  I have eight multiple text fields.  Numbers will go into these fields.  I
> want all the numbers to add up and go into the Ninth field.
>  Add field1+field2+field3 [etc.,} and put into field Total
> Add field Timeneed + Effort + People [etc.,] and put into field Total
> I have searched the documentation and tried a dozen syntaxes but can't seem
> to get something as fundamental to work.
> 
One way is to 
put field 1 + field 2 + field 3 --msg box shows the answer
put (field 1 + field 2 + field 3) into field sumOfFields

another is
add field 1 to field sumOfFields
add field 2 to field sumOfFields

Are you sure there is not more than one line in these fields?
put (line 1 of field 1)+(line 1 of field 2)

try
put (field 1)*1
which should show you if it is considered a number.

Hope this helps, bro.
Jim Ault
Las Vegas


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


Addition-Elementary Style

2006-01-25 Thread Michael Mandaville
Revolution brothers and sisters,
On the basis that the most stupid question is the one left unasked, I throw
myself on the pyre with this question:

I have eight multiple text fields.  Numbers will go into these fields.  I
want all the numbers to add up and go into the Ninth field.


Add field1+field2+field3 [etc.,} and put into field Total

Add field Timeneed + Effort + People [etc.,] and put into field Total


I have searched the documentation and tried a dozen syntaxes but can't seem
to get something as fundamental to work.

Thank you.


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


Re: How to allow only single line into text field (instead of mutliple line)

2006-01-25 Thread Jonathan Lynch
You also need to bear in mind the danger of a user pasting in text that
includes a linefeed.

I accomplish this with a rawkeydown handler that blocks the return and enter
keys, and that checks for ctrl-C and the insert key, and if it detects them,
replaces linefeed with empty before inserting the text to be pasted.

An easier approach (if acceptable for your app) is to also check after the
fact:

on Closefield
  replace linefeed with empty in me
end Closefield

on exitfield
  closefield
end exitfield


The exitfield handler in this case is necessary to cover for situations
where the user pastes text, then gets out of the field without typing
anything.



On 1/25/06, MITTAL Pradeep Kumar <[EMAIL PROTECTED]> wrote:
>
> Here is how you can achive this.
>
> on enterinfield
> put line 1 of me into me
> end enterinfield
>
> on returninfield
> put line 1 of me into me
> end returninfield
>
> bye
> pradeep
>
>
>
>-Original Message-
>From: MITTAL Pradeep Kumar
>Sent: Wednesday, January 25, 2006 8:12 PM
>To: 'use-revolution@lists.runrev.com'
>Cc: DAHIYA Nitesh; JAMKAR Kapil
>Subject: How to allow only single line into text field (instead
> of mutliple line)
>
>
>Hello,
>
>When I create a text field in the rev, then one can enter the
> mutliple lines in the text field by using enter key.
>
>Can anyone tell me what to configure so that text filed allow
> only one line of text ?
>
>Thanks for your help
>
>Best Regards
>Pradeep
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Checking legality of a string

2006-01-25 Thread Martin Baxter

Ken Ray wrote:

Looks good, Martin, but if the original intention is "isValid", not
"isNotValid", I'd personally remove the "double-negatives":

 function isvalid mystring
return (matchtext(mystring,"^[a-zA-Z0-9_]+$"))
 end isvalid



Yes Ken,

I'm not uncertain that you're not wrong :-)

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


Re: nested ifs

2006-01-25 Thread Dave Cragg


On 25 Jan 2006, at 18:14, [EMAIL PROTECTED] wrote:



if (long statement)
then (long response)


It's this form I was referring to. To me it lacks clarity and is  
easily lost amongst the other statements in a handler.


I find the notion of  one "thing" per line to be clear and simple.   
But when we use control structures that span more than one line, then  
it's clearer to mark the end of that structure (end if, end repeat,  
etc.)


So, I find these clear:

1.
if  then 

2.
if  then
  
end if

3.
if 
then
  
end if

But the following I find difficult to read:

4.

if 
then 

and especially

if 
then 
else 

But as you say, it's a matter of personal taste. :-)

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


Copyright issues with RevGoURL commands

2006-01-25 Thread Stgoldberg
In writing a Rev command such as:

RevGoURL "http://www.google.com/search?q=dogs"; (for literature)

or

RevGoURL "http://www.images.google.com/images?svnum=10&hl=en&lr=&; 
ie=ISO-8859-1&q=dogs" (for images)

it seems to me that what one is really doing is the equivalent of 
automatically typing in the searchword "dogs" into Google's search field on the 
Google 
home page and then pressing Return.   

Since Google does not have any advertising on its home page www.google.com or 
www.images.google.com, it would seem that Google should not lose any 
advertising by doing the automation.   Any advertising should appear as it 
usually 
does going through Google's home page.   So I am wondering if there would be a 
copyright restriction in the case where no advertising money is lost by Google. 
 
 I'm planning to consult with a copyright attorney for more information, but 
if anyone has any more thoughts, I'd certainly like to hear. Thanks to Richard 
Gaskin and Peter Evensen for the helpful comments.
Steve Goldberg



> [EMAIL PROTECTED] wrote:
> > Does anyone know if there is a copyright issue with using the powerful
> > RevGoURL command to access websites using known Internet search engines?   
> For
> > instance, if one is interested in dogs one can access Google simply by 
> writing:
> 

> 
> It's not so much a copyright concern as one of lost revenue.  Search
> engine sites make their money from advertising, and automated searches
> nullify the value of such advertising.
> 

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

2006-01-25 Thread Chipp Walters

Stephen,

Yeah, me too. I don't like _THAT_ notation either.

Stephen Barncard wrote:
Chipp, I use that form all the time ("if it is empty then exit to top") 
- I just had a problem regarding dangling THENs..


IF  THEN

IF  THEN



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


Re: How to allow only single line into text field (instead of mutliple line)

2006-01-25 Thread Jeff Hudson
I just ran into this.  In basic properties I turned on TAB on  
return.  This made both the return and the enter more to the next  
text field.



Jeff



On Jan 25, 2006, at 1:12 PM, MITTAL Pradeep Kumar wrote:


Hello,

When I create a text field in the rev, then one can enter the mutliple
lines in the text field by using enter key.

Can anyone tell me what to configure so that text filed allow only one
line of text ?

Thanks for your help

Best Regards
Pradeep

___
use-revolution mailing list
use-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: How to allow only single line into text field (instead of mutliple line)

2006-01-25 Thread Pierre Sahores

Hi Pradeep,

Don't forget to set the "don't wrap" property of the field to true.

Best,

Le 25 janv. 06 à 20:38, MITTAL Pradeep Kumar a écrit :


Here is how you can achive this.

on enterinfield
put line 1 of me into me
end enterinfield

on returninfield
put line 1 of me into me
end returninfield

bye
pradeep



-Original Message-
From: MITTAL Pradeep Kumar
Sent: Wednesday, January 25, 2006 8:12 PM
To: 'use-revolution@lists.runrev.com'
Cc: DAHIYA Nitesh; JAMKAR Kapil
Subject: How to allow only single line into text field (instead
of mutliple line)


Hello,

When I create a text field in the rev, then one can enter the
mutliple lines in the text field by using enter key.

Can anyone tell me what to configure so that text filed allow
only one line of text ?

Thanks for your help

Best Regards
Pradeep


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

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



--
Bien cordialement, Pierre Sahores

100, rue de Paris
F - 77140 Nemours

[EMAIL PROTECTED]
[EMAIL PROTECTED]

Mobile  :   +33 6 03 95 77 70
Tel/Fax :   +33 1 64 45 05 33



WEB/VoD/ACID-DB services over IP
"Mutualiser les deltas de productivité"


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

2006-01-25 Thread Stephen Barncard
Chipp, I use that form all the time ("if it is empty then exit to 
top") - I just had a problem regarding dangling THENs..


IF  THEN

IF  THEN


Does one execute after the other, or is the second executed only 
after the first condition is met? THIS is not clear, so I tend to be 
quite explicit or use a CASE statement. Kinda like using parentheses, 
might as well give the compiler succinct instructions!




It's a matter of preference I suppose. For me, "if it is empty then 
exit to top" is much easier to read than 3 lines taking up the same 
space.


Thanks to Eric for Mark Waddingham's explanation. It helps to 
understand the why.


-Chipp


--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: How to allow only single line into text field (instead of mutliple line)

2006-01-25 Thread MITTAL Pradeep Kumar
Here is how you can achive this.

on enterinfield
put line 1 of me into me
end enterinfield
 
on returninfield
put line 1 of me into me
end returninfield
 
bye
pradeep

 

-Original Message-
From: MITTAL Pradeep Kumar 
Sent: Wednesday, January 25, 2006 8:12 PM
To: 'use-revolution@lists.runrev.com'
Cc: DAHIYA Nitesh; JAMKAR Kapil
Subject: How to allow only single line into text field (instead
of mutliple line)


Hello,
 
When I create a text field in the rev, then one can enter the
mutliple lines in the text field by using enter key.
 
Can anyone tell me what to configure so that text filed allow
only one line of text ?
 
Thanks for your help
 
Best Regards
Pradeep
 

___
use-revolution mailing list
use-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: Copyright issue with RevGoURL commands?

2006-01-25 Thread Eric Chatonet

Hi Richard,

Le 25 janv. 06 à 19:30, Richard Gaskin a écrit :

It's not so much a copyright concern as one of lost revenue.   
Search engine sites make their money from advertising, and  
automated searches nullify the value of such advertising.


As you know it, I was concerned by this possible issue with my  
Resources Picker plugin and, now, with the future Rev Search Engine.
All you say is right but I don't think that using revGoUrl (that  
displays the Google pages in your browser) should be a problem.
As soon as you pop-up a browser and don't distort its contents,  
actually it's all benefice for Google :-)
You can type in the entry box; why would you not be able to use any  
convenient process to paste an url in your browser entry box?
The problem comes when you use *internally* the Google search engine  
and display only what you want into your own app.

And this, I do understand it.

Best Regards from Paris,
Eric Chatonet
 
--

http://www.sosmartsoftware.com/[EMAIL PROTECTED]/


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


Re: Edit menu

2006-01-25 Thread Marty Knapp

Hey Jacque,

Thanks for the idea, but sorry to say it doesn't fix it.

Marty Knapp




So we have a bug? I've never submitted a bug - not sure I can. I'm on 
2.2.1 (and in the trial period with the latest).


Anybody know of a work-around, other than not using the "as sheet" 
option? I've tried issuing enable commands to the menuitems with no 
luck.



How about this as a work-around:

  lock menus
  enable menu item 
  unlock menus

Didn't test it, but worth a try.


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


How to allow only single line into text field (instead of mutliple line)

2006-01-25 Thread MITTAL Pradeep Kumar
Hello,
 
When I create a text field in the rev, then one can enter the mutliple
lines in the text field by using enter key.
 
Can anyone tell me what to configure so that text filed allow only one
line of text ?
 
Thanks for your help
 
Best Regards
Pradeep
 
___
use-revolution mailing list
use-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: nested ifs

2006-01-25 Thread Chipp Walters



Stephen Barncard wrote:
Why? If one uses the 'classic' full IF-THEN_ELSE-ENDIF with all KEYWORDS 
on separate lines, it always works, and it is not ambiguous as with 
dangling THENs.


We certainly don't have this kind of problem with CASE statements, do 
we? They are what they are - there's a form, and one follows it - it's 
an element of syntax!!


am I old-fashioned, dumb or what?


It's a matter of preference I suppose. For me, "if it is empty then exit 
to top" is much easier to read than 3 lines taking up the same space.


Thanks to Eric for Mark Waddingham's explanation. It helps to understand 
the why.


-Chipp

___
use-revolution mailing list
use-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: Playing Quicktime movies from a server...

2006-01-25 Thread Trevor DeVore

On Jan 25, 2006, at 10:40 AM, David Bovill wrote:


Does anyone have any experience of how to do this?

QuickTime video can be encoded to stream off of a video server, or  
it can be encoded to stream off of any standard web server like  
you're already using to host your current web site. This second  
method of streaming is the most popular and is commonly referred  
to as http streaming, or QuickTime progressive download (a.k.a  
fast start).
Ideally I'd like to be able to play then without having to download  
the movie first - and then have the data locally.



If you specify a URL for a streaming QuickTime movie file,  
Revolution displays the movie sequentially as it downloads.  
Otherwise, Revolution must download the entire file before you can  
play it. To pre-fetch a file from the Internet in order to speed  
up access to it, use the load command before visiting the card  
that holds the player or image that references the file's URL.


OK - but in either case where is the downloaded QuickTime file and  
how can I copy it to a permanent store?


David,

If I understand correctly, you can use the EnhancedQT external to  
accomplish this.  I do this in my apps by doing this:


1) If the movie does not already exist locally then set the filename  
of the player to the http url.
2) QuickTime begins downloading the file progressively.  This means  
the video will playback while it downloads but you can't skip ahead  
to a point that isn't downloaded yet like you could with a streaming  
file.
3) When it comes time to unload the movie from the player you can  
save it locally.  First use qtGetMovieLoadState to make sure the  
movie has downloaded entirely.  If it has then use qtSaveAs to save  
the movie file locally.


This works really well in that the user can start viewing the movie  
instantly but you can still cache it for later viewing with no wait.


You can look at the enhancedQT external here: http:// 
mangomultimedia.com/developer/revolution/index.html


You should use the 1.x version which is marked as beta but everything  
works fine and it is the version I use in my projects.


--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]


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


Re: Playing Quicktime movies from a server...

2006-01-25 Thread Pierre Sahores

Hi David,

Visit <[EMAIL PROTECTED]> to get all the  
backgrounds in about Quicktime streaming. Low traffic list but always  
the best place about QT.


Best,

Le 25 janv. 06 à 19:40, David Bovill a écrit :


Does anyone have any experience of how to do this?

QuickTime video can be encoded to stream off of a video server, or  
it can be encoded to stream off of any standard web server like  
you're already using to host your current web site. This second  
method of streaming is the most popular and is commonly referred  
to as http streaming, or QuickTime progressive download (a.k.a  
fast start).
Ideally I'd like to be able to play then without having to download  
the movie first - and then have the data locally.



If you specify a URL for a streaming QuickTime movie file,  
Revolution displays the movie sequentially as it downloads.  
Otherwise, Revolution must download the entire file before you can  
play it. To pre-fetch a file from the Internet in order to speed  
up access to it, use the load command before visiting the card  
that holds the player or image that references the file's URL.


OK - but in either case where is the downloaded QuickTime file and  
how can I copy it to a permanent store?


A final question is which is a faster or more reliable method to  
use (given that I can access the files either by ftp or http:


load url

or

libURLDownloadToFile

And is there a way to resume a download after pausing it for some  
reason?


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

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



--
Bien cordialement, Pierre Sahores

100, rue de Paris
F - 77140 Nemours

[EMAIL PROTECTED]
[EMAIL PROTECTED]

Mobile  :   +33 6 03 95 77 70
Tel/Fax :   +33 1 64 45 05 33



WEB/VoD/ACID-DB services over IP
"Mutualiser les deltas de productivité"


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


Playing Quicktime movies from a server...

2006-01-25 Thread David Bovill

Does anyone have any experience of how to do this?

QuickTime video can be encoded to stream off of a video server, or  
it can be encoded to stream off of any standard web server like  
you're already using to host your current web site. This second  
method of streaming is the most popular and is commonly referred to  
as http streaming, or QuickTime progressive download (a.k.a fast  
start).
Ideally I'd like to be able to play then without having to download  
the movie first - and then have the data locally.



If you specify a URL for a streaming QuickTime movie file,  
Revolution displays the movie sequentially as it downloads.  
Otherwise, Revolution must download the entire file before you can  
play it. To pre-fetch a file from the Internet in order to speed up  
access to it, use the load command before visiting the card that  
holds the player or image that references the file's URL.


OK - but in either case where is the downloaded QuickTime file and  
how can I copy it to a permanent store?


A final question is which is a faster or more reliable method to use  
(given that I can access the files either by ftp or http:


load url

or

libURLDownloadToFile

And is there a way to resume a download after pausing it for some  
reason?


 
   
___

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


Re: Checking legality of a string

2006-01-25 Thread Ken Ray
On 1/25/06 11:20 AM, "Martin Baxter" <[EMAIL PROTECTED]> wrote:

> function isvalid mystring
>return not (matchtext(mystring,"[^a-zA-Z0-9_]+?"))
> end isvalid
> 
> # there is a match if any character other than a-z A-Z 0-9 or _ is found
> # in mystring
> # using not inverts the result so that the function returns true
> # if the string is valid.

Looks good, Martin, but if the original intention is "isValid", not
"isNotValid", I'd personally remove the "double-negatives":

 function isvalid mystring
return (matchtext(mystring,"^[a-zA-Z0-9_]+$"))
 end isvalid

The other possibility, if you want to depend on what PCRE's character
matching table says, is to use the "any 'word' character" option \w:

 function isvalid mystring
return (matchtext(mystring,"^\w+$"))
 end isvalid

The docs (at http://www.pcre.org/man.txt) says this about \w:

   A "word" character is any letter or digit or the underscore
   character, that is, any character which can be part of a Perl
   "word". The definition of letters and digits is controlled by
   PCRE's character tables, and may vary if local-specific
   matching is taking place. For exaemple, in the "fr" (French)
   locale, some character codes greater than 128 are used for
   accented characters and there are matched by \w.


Anyway, my 2 cents...

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


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


Re: Edit menu

2006-01-25 Thread J. Landman Gay

Marty Knapp wrote:

Thanks Mark & Björnke,

So we have a bug? I've never submitted a bug - not sure I can. I'm on 
2.2.1 (and in the trial period with the latest).


Anybody know of a work-around, other than not using the "as sheet" 
option? I've tried issuing enable commands to the menuitems with no luck.


How about this as a work-around:

  lock menus
  enable menu item 
  unlock menus

Didn't test it, but worth a try.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Copyright issue with RevGoURL commands?

2006-01-25 Thread Richard Gaskin

[EMAIL PROTECTED] wrote:
Does anyone know if there is a copyright issue with using the powerful 
RevGoURL command to access websites using known Internet search engines?   For 
instance, if one is interested in dogs one can access Google simply by writing:


It's not so much a copyright concern as one of lost revenue.  Search 
engine sites make their money from advertising, and automated searches 
nullify the value of such advertising.


Google, for example, states their position on this in their Terms of 
Service at :


No Automated Querying

You may not send automated queries of any sort to Google's
system without express permission in advance from Google.
Note that "sending automated queries" includes, among other
things:

* using any software which sends queries to Google to
  determine how a website or webpage "ranks" on Google
  for various queries;
* "meta-searching" Google; and
* performing "offline" searches on Google.

Please do not write to Google to request permission to
"meta-search" Google for a research project, as such
requests will not be granted.


On the upside, Google does provide an API for developers to use for such 
purposes:





--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Edit menu

2006-01-25 Thread Marty Knapp

Thanks Mark & Björnke,

So we have a bug? I've never submitted a bug - not sure I can. I'm on 
2.2.1 (and in the trial period with the latest).


Anybody know of a work-around, other than not using the "as sheet" 
option? I've tried issuing enable commands to the menuitems with no luck.


Thanks,
Marty Knapp


me too, just tried it :-)

Björnke von Gierke wrote:


I can reproduce this

On Jan 25 2006, at 16:19, Marty Knapp wrote:


Does anybody else get this --

create a new stack
insert a menubar with the default items (with Mac menubar option)
issue an "ask file" command
close dialog
check Edit menus - all menu items are enabled

But. . .
issue an "ask file" as sheet command
close dialog
check the Edit menus - Cut and Copy are disabled



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

2006-01-25 Thread Marty Knapp

Hey Devin,

ShaoSean also has an excellent one, objCalendar, that I've used. His  
web site is http://www.shaosean.tk/ , but I couldn't find it there.  
Anyone have a link to objCalendar?



I'm pretty sire it's the same one as you can find here:

Dan Shaefer has a really nice one that goes with his
book.  I belive you can download the source code here:

http://www.altuit.com/webs/dshafer/RevolutionPros/MyStuff.htm

Marty Knapp
___
use-revolution mailing list
use-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: nested ifs

2006-01-25 Thread Stephen Barncard
Why? If one uses the 'classic' full IF-THEN_ELSE-ENDIF with all 
KEYWORDS on separate lines, it always works, and it is not ambiguous 
as with dangling THENs.


We certainly don't have this kind of problem with CASE statements, do 
we? They are what they are - there's a form, and one follows it - 
it's an element of syntax!!


am I old-fashioned, dumb or what?

there are MANY other issues with Rev that need attention before this one!

sqb



On 25 Jan 2006, at 11:32, Chipp Walters wrote:

Anyone know why the compiler does this? I can't seem to figure out 
under what circumstances this seems to happen.


No - but it is annoying!


--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-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: nested ifs

2006-01-25 Thread simplsol

Dave,
 The location of "then" is mostly personal preference. To me, this is 
more logical, consistent and easier to read:


ifthen... (for short statement, short response)

if (long statement)
then (long response)

if
then
(lots of responses)
end if

if
then
1
2
3
else
1
2
end if

if
then
 if
 then
 else
 end if
else
 if
 then
 else
  if
  then
  end if
 end if
end if

 No matter how many subconditionals there are, it is easy to see which 
statements and responses go together.

Paul Looney

PS I hope that last example came over alright. Kind of meaningless if 
it is all flush left. If it got garbled, just paste it into a script 
and the script editor will align it properly.


-Original Message-
From: Dave Cragg <[EMAIL PROTECTED]>
 To: [EMAIL PROTECTED]; How to use Revolution 


Sent: Wed, 25 Jan 2006 17:21:06 +
Subject: Re: nested ifs

On 25 Jan 2006, at 10:32, Chipp Walters wrote: 
 
> I like to do the following: 
> 
> if tResult is "Error" then 
> answer "Go Ahead anyway" with "Cancel" or "OK" 
> if it is "Cancel" then exit to top 
> end if 
> 
 > Most of the time it compiles, but sometimes the single line if > 
statement in the middle throws and error and won't compile, so I'm > 
forced to do: 

 
The problem seems to occur before an "else" line. 
 
If x > y then 
  doSomething1 
  if a = be then doSomething2 ##problem here 
else 
  doSomethng3 
end if 
 
 I've always assumed (without any deep investigation) that it was a 
result of the engine's tolerance of various "if" constructions. For 
example the following compiles: 

 
 if 1 > 2 then put 2 
 else put 1 
 
 While we're on the subject, could someone who likes to use the "then 
on the following line" syntax please explain the advantages. I've 
always found it confusing when I come across it, but there must be a 
reason for using it that I haven't yet grasped. 

 
Cheers 
Dave 
___ 
use-revolution mailing list 
[EMAIL PROTECTED]
 Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences: 

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

 
___

use-revolution mailing list
use-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: click at btn

2006-01-25 Thread sims

At 11:34 AM -0500 1/25/06, Jonathan Lynch wrote:

yes...

I just tested a method on my windows machine, and it works. Here is the
script:



Thanks Jonathan, but I think there is a difference between Mac & Windows
machines. I've tried several variations of what you describe.

ciao,
sims

European Rev Conference  2006
www.techietours.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: nested ifs

2006-01-25 Thread David Bovill

On 25 Jan 2006, at 11:32, Chipp Walters wrote:

Anyone know why the compiler does this? I can't seem to figure out  
under what circumstances this seems to happen.


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


Rev CGIs and Secure Forms

2006-01-25 Thread Gregory Lypny

Hi Everyone,

	I posted this a few days ago but didn't see any replies or perhaps  
missed them.  I'm taking another kick at the cat just in case.


Regards,

Gregory


Hello Everyone,

Does anyone know of Revolution documents or examples that explain
how to implement security for a web site run on Revolution CGIs?  I'm
working in Tiger, and I'd like to include some secure forms in my
site, you know, that https stuff.

Regards,


Gregory Lypny

Associate Professor of Finance
John Molson School of Business
Concordia University
Montreal, Canada


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

2006-01-25 Thread Devin Asay
ShaoSean also has an excellent one, objCalendar, that I've used. His  
web site is http://www.shaosean.tk/ , but I couldn't find it there.  
Anyone have a link to objCalendar?


Devin

On Jan 25, 2006, at 4:01 AM, Alex Tweedly wrote:


Josh Mellicker wrote:


Does anyone know of a calendar widget for Revolution?

No-one yet has mentioned Sarah Reichelt's excellent Calendar  
widget, at http://www.troz.net/Rev/libraries.html



Calendar.rev 
This project file contains a calendar sub-stack that you can  
insert into any project. It allows users to enter a date  
graphically, thereby ensuring that any date will be in a valid  
format. The new version handles international systems, allows  
weeks starting on Monday or Sunday, has large and small calendars,  
includes an installer and can hilite set dates either once or  
annually.



--
Alex Tweedly   http://www.tweedly.net

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.22/239 - Release Date:  
24/01/2006


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

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


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
use-revolution mailing list
use-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: Copyright issue with RevGoURL commands?

2006-01-25 Thread Peter T. Evensen
I'm not a lawyer, but I don't see how one could copyright a URL, which is 
what one would have to do for you to get into problems.


I believe Google is licensing an SDK so people can use there services.  At 
the very worst, you'd have to license the SDK so you could "legitimately" 
generate search URL, but I don't think you would even need to do that.


At 11:33 AM 1/25/2006, you wrote:

Does anyone know if there is a copyright issue with using the powerful
RevGoURL command to access websites using known Internet search 
engines?   For
instance, if one is interested in dogs one can access Google simply by 
writing:


RevGoURL "http://www.google.com"; or
RevGoURL "http://www.images.google.com"; (to see pictures)

and then typing in "dogs" in Google's search field.   I don't imagine there
is any difficulty with that.   However, what if one extended it to actually
incorporate Google's search script in the RevGoURL command, namely:

RevGoURL "http://www.images.google.com/images?svnum=10&hl=en&lr=&;
ie=ISO-8859-1&q=dogs"

It doesn't download anything, just using Google's search engine from within
Rev.   Does anyone have any information as to whether or not there are any
copyright issues?   Thanks.
Steve Goldberg


Peter T. Evensen
http://www.PetersRoadToHealth.com
314-629-5248 or 888-628-4588 


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


Re: nested ifs

2006-01-25 Thread Stephen Barncard
Chipp, I think the compiler doesn't like dangling THEN's in any case, 
and in fact would be much happier with END IF when the statement gets 
long. Using this form always works (and for me easier to read 
anyway...) - it takes up more space though.



IF 
THEN
  -- statements
ELSE
  -- statements
END IF


I like to do the following:

if tResult is "Error" then
  answer "Go Ahead anyway" with "Cancel" or "OK"
  if it is "Cancel" then exit to top
end if

Most of the time it compiles, but sometimes the single line if 
statement in the middle throws and error and won't compile, so I'm 
forced to do:


if tResult is "Error" then
  answer "Go Ahead anyway" with "Cancel" or "OK"
  if it is "Cancel" then
exit to top
  end if
end if

Anyone know why the compiler does this? I can't seem to figure out 
under what circumstances this seems to happen.


best,

Chipp


--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Copyright issue with RevGoURL commands?

2006-01-25 Thread Stgoldberg
Does anyone know if there is a copyright issue with using the powerful 
RevGoURL command to access websites using known Internet search engines?   For 
instance, if one is interested in dogs one can access Google simply by writing:

RevGoURL "http://www.google.com"; or 
RevGoURL "http://www.images.google.com"; (to see pictures) 

and then typing in "dogs" in Google's search field.   I don't imagine there 
is any difficulty with that.   However, what if one extended it to actually 
incorporate Google's search script in the RevGoURL command, namely:

RevGoURL "http://www.images.google.com/images?svnum=10&hl=en&lr=&;
ie=ISO-8859-1&q=dogs"

It doesn't download anything, just using Google's search engine from within 
Rev.   Does anyone have any information as to whether or not there are any 
copyright issues?   Thanks.
Steve Goldberg
___
use-revolution mailing list
use-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: nested ifs

2006-01-25 Thread Dave Cragg


On 25 Jan 2006, at 10:32, Chipp Walters wrote:


I like to do the following:

if tResult is "Error" then
  answer "Go Ahead anyway" with "Cancel" or "OK"
  if it is "Cancel" then exit to top
end if

Most of the time it compiles, but sometimes the single line if  
statement in the middle throws and error and won't compile, so I'm  
forced to do:


The problem seems to occur before an "else" line.

If x > y then
  doSomething1
  if a = be then doSomething2 ##problem here
else
  doSomethng3
end if


I've always assumed (without any deep investigation) that it was a  
result of the engine's tolerance of various "if" constructions. For  
example the following compiles:


 if 1 > 2 then put 2
 else put 1

While we're on the subject, could someone who likes to use the "then  
on the following line" syntax please explain the advantages. I've  
always found it confusing when I come across it, but  there must be a  
reason for using it that I haven't yet grasped.


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


Re: Checking legality of a string

2006-01-25 Thread Martin Baxter

Eric Chatonet wrote:

Hi Graham,



I think that there should be also a solution using matchText :-)



Le 25 janv. 06 à 16:25, graham samuel a écrit :

What's the most economical way of checking that a string contains  
only certain characters? I'm just trying to check if a string  
contains letters, digits and underscores, and nothing else. The  ways 
I've thought of doing it seem clunky. Basically I want to script


or try...

function isvalid mystring
  return not (matchtext(mystring,"[^a-zA-Z0-9_]+?"))
end isvalid

# there is a match if any character other than a-z A-Z 0-9 or _ is found
# in mystring
# using not inverts the result so that the function returns true
# if the string is valid.

Martin Baxter


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


Re: Checking legality of a string

2006-01-25 Thread Scott Rossi
> What's the most economical way of checking that a string contains
> only certain characters? I'm just trying to check if a string
> contains letters, digits and underscores, and nothing else.

One way:

function stringCheck pString
  repeat for each char C in pString
if C is not in "abcdefghijklmnopqrstuvwxyz1234567890_" then \
return false
  end repeat
  return true
end stringCheck


Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

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


Ask & Answer

2006-01-25 Thread Mathewson
Sorry - my brain was full of problematic Bulgarian Personal
Pronouns yesterday and as a result I forgot that gaps and +
signs are bad things on the internet.

http://members.maclaunch.com/richmond/URLANSWER2.rev.zip

works!

sincerely, Richmond Mathewson

__
See Mathewson's software at:

http://members.maclaunch.com/richmond/default.html
___
---
The Think Different Store
http://www.thinkdifferentstore.com/
For All Your Mac Gear
---
___
use-revolution mailing list
use-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: click at btn

2006-01-25 Thread Jonathan Lynch
yes...

I just tested a method on my windows machine, and it works. Here is the
script:


on mouseUp

send "reclick" to me in 1 second

click at the loc of button "my menu"

end mouseUp



on reclick

click at the loc of button "my menu"

end reclick



On 1/25/06, Eric Chatonet <[EMAIL PROTECTED]> wrote:
>
> Hi Sims,
>
> > Anyone have any suggestions?
>
> Unfortunately no :-(
> When a menu is popped, Rev is hanging on until a choice is made (or a
> click elsewhere) and then sends the menuPick message if appropriate.
> Follow the messages in the message watcher: its stays hopelessly
> empty...
> May be a fake menu made with an image just for the demo... could
> solve the problem :-)
>
> Le 25 janv. 06 à 15:55, sims a écrit :
>
> >  I'm making a tutorial for an application, using the move command
> > to send a faux cursor through the different elements of the app.
> >
> >
> > When I use the following with an option button
> > click button 1 at the loc of card button "long_day"
> >
> > the button will display the menu.
> >
> > My problem is that I cannot get the script to continue on from there.
> >
> > IOW  the menu of the option btn stays open and no matter what
> > I try, I cannot get the option btn to close so my tutorial can
> > continue to other objects.
> >
> > Anyone have any suggestions?
>
> Best Regards from Paris,
> Eric Chatonet
> 
> --
> http://www.sosmartsoftware.com/[EMAIL PROTECTED]/
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Checking legality of a string

2006-01-25 Thread Eric Chatonet

Hi Graham,

If your string is not 3000 chars long, you could just test the ASCII  
code of each char:


function RightStr pStr
  local tChar,tCharToNum
  -
  repeat for each char tChar in pStr
put charToNum(tChar) into tCharToNum
if not (tCharToNum = 95 \
or (tCharToNum >= 48 and tCharToNum <= 57) \
or (tCharToNum >= 65 and tCharToNum <= 90) \
or (tCharToNum >= 97 and tCharToNum <= 122)) then return false
  end repeat
  return true
end RightStr

Then

if not RightStr() then  -- not a right string
else 

I think that there should be also a solution using matchText :-)
If you are interested in ASCCI code, look at charToNum and numToChar  
functions.
On the other hand, ASCII Picker, an utility you will find on my  
website might help you.


Le 25 janv. 06 à 16:25, graham samuel a écrit :

What's the most economical way of checking that a string contains  
only certain characters? I'm just trying to check if a string  
contains letters, digits and underscores, and nothing else. The  
ways I've thought of doing it seem clunky. Basically I want to script


if myString contains only  then...

Just can't see the slick way of doing it. Maybe I should go outside  
and check for mole damage instead...


Best Regards from Paris,
Eric Chatonet
 
--

http://www.sosmartsoftware.com/[EMAIL PROTECTED]/


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


Re: click at btn

2006-01-25 Thread sims

At 4:43 PM +0100 1/25/06, Eric Chatonet wrote:

Unfortunately no :-(
When a menu is popped, Rev is hanging on until a choice is made (or 
a click elsewhere) and then sends the menuPick message if 
appropriate.

Follow the messages in the message watcher: its stays hopelessly empty...
May be a fake menu made with an image just for the demo... could 
solve the problem :-)


Thanks Eric...that's what I guessed.
Thanks for the reply!

ciao,
sims

European Rev Conference  2006
www.techietours.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: click at btn

2006-01-25 Thread Eric Chatonet

Hi Sims,


Anyone have any suggestions?


Unfortunately no :-(
When a menu is popped, Rev is hanging on until a choice is made (or a  
click elsewhere) and then sends the menuPick message if appropriate.
Follow the messages in the message watcher: its stays hopelessly  
empty...
May be a fake menu made with an image just for the demo... could  
solve the problem :-)


Le 25 janv. 06 à 15:55, sims a écrit :


 I'm making a tutorial for an application, using the move command
to send a faux cursor through the different elements of the app.


When I use the following with an option button
click button 1 at the loc of card button "long_day"

the button will display the menu.

My problem is that I cannot get the script to continue on from there.

IOW  the menu of the option btn stays open and no matter what
I try, I cannot get the option btn to close so my tutorial can  
continue to other objects.


Anyone have any suggestions?


Best Regards from Paris,
Eric Chatonet
 
--

http://www.sosmartsoftware.com/[EMAIL PROTECTED]/


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


Dangling else (was: nested ifs)

2006-01-25 Thread Eric Chatonet

Hi Paul,

Here is the copy of a mail I exchanged with Chipp off-list that might  
interest you (and all):


Le 25 janv. 06 à 13:29, Eric Chatonet a écrit :

Found the following in Bugzilla with an interesting comment from Mark:

Bugzilla 2694 by [EMAIL PROTECTED] (Scott Slaugh)



--- Additional Comment
  #1 From
  Mark Waddingham
  2005-03-17 05:10 ---

This isn't a bug, but just a classic parsing ambiguity (it's called the
'dangling else' problem)

If-Then-Else constructs in Revolution come in several flavours:

  1) if  then  else 

  2) if  then 
 else 

  3) if  then 
 else
   
 end if

  4) if  then
   
 else 

  5) if  then
else 

  6) if  then
   
  else

  end if

  7) if  then
   
 end if

  8) if  then 

If you take a look at your code, then the last command before the  
else is what
you want to be of form (8), however Revolution notices the next token  
is an
'else' followed by a newline so assumes it to be of form (6) - thus  
it expects

an extra 'end if'.

Basically, you have an 'else' dangling after an 'if' that could  
belong to either

the outer 'if' or the inner 'if'. As is standard practice in all other
languages, Revolution binds the else to the innermost 'if' statment.

You can get around this, however, by putting a new line after the  
final if

statement:
  if ... then
if  then ...

  else
  end if


Le 25 janv. 06 à 15:54, [EMAIL PROTECTED] a écrit :


Chipp,
I have the same experience with nested conditionals. I have found  
the following format (with the "then" below the "if") helps.


if tResult is "Error"
then
 answer "Go Ahead anyway" with "Cancel" or "OK"
 if it is "Cancel" then exit to top
end if

There is sometimes still a problem, especially if the nested  
conditional contains an "else" - so I always close these with an  
"end if":


if tResult is "Error"
then
 answer "Go Ahead anyway" with "Cancel" or "OK"
 if it is "Cancel"
 then
 exit to top
 else
 doElseStuff
 end if
end if

It takes more space but I find it is easier to read - and it always  
compiles.

Paul Looney


Best Regards from Paris,
Eric Chatonet
 
--

http://www.sosmartsoftware.com/[EMAIL PROTECTED]/


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


Re: Edit menu

2006-01-25 Thread Mark Schonewille

me too, just tried it :-)

Björnke von Gierke wrote:

I can reproduce this

On Jan 25 2006, at 16:19, Marty Knapp wrote:


Does anybody else get this --

create a new stack
insert a menubar with the default items (with Mac menubar option)
issue an "ask file" command
close dialog
check Edit menus - all menu items are enabled

But. . .
issue an "ask file" as sheet command
close dialog
check the Edit menus - Cut and Copy are disabled

??? (Hope I'm not being a total dope here . . .)


Marty Knapp



--

eHUG coordinator
mailto:[EMAIL PROTECTED]
http://www.ehug.info
http://home.wanadoo.nl/mark.sch
http://www.economy-x-talk.com

Please inform me about vacancies in the field of
general economics at your institute. I am also looking
for new freelance programming projects.

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


Checking legality of a string

2006-01-25 Thread graham samuel
What's the most economical way of checking that a string contains  
only certain characters? I'm just trying to check if a string  
contains letters, digits and underscores, and nothing else. The ways  
I've thought of doing it seem clunky. Basically I want to script


if myString contains only  then...

Just can't see the slick way of doing it. Maybe I should go outside  
and check for mole damage instead...


Graham



Graham Samuel / The Living Fossil Co. / UK and France


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

2006-01-25 Thread Björnke von Gierke

I can reproduce this

On Jan 25 2006, at 16:19, Marty Knapp wrote:


Does anybody else get this --

create a new stack
insert a menubar with the default items (with Mac menubar option)
issue an "ask file" command
close dialog
check Edit menus - all menu items are enabled

But. . .
issue an "ask file" as sheet command
close dialog
check the Edit menus - Cut and Copy are disabled

??? (Hope I'm not being a total dope here . . .)


Marty Knapp

As an addedum to this, it happens consistently after an ask file 
command has been issued that Cut and Copy are disabled. Placing the 
cursor into an editable field does not reset it. And it only seems to 
manifest itself on the Mac version. I tried inserting  "enable 
menuitem 1 of menu "Edit"" at the end of my handler invoking the ask 
file command, but no go.



Hello,

My standalone has a standard Edit menu, with Cut, Copy Paste 
menuitems. In none of my scripts do I ever enable or disable them, 
yet they are getting disabled some of the time. The keyboard 
shortcuts always seem to work,  but I can't figure out what the 
issue is here. Any clues for me?


Thanks,

Marty Knapp




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

2006-01-25 Thread Marty Knapp

Does anybody else get this --

create a new stack
insert a menubar with the default items (with Mac menubar option)
issue an "ask file" command
close dialog
check Edit menus - all menu items are enabled

But. . .
issue an "ask file" as sheet command
close dialog
check the Edit menus - Cut and Copy are disabled

??? (Hope I'm not being a total dope here . . .)


Marty Knapp

As an addedum to this, it happens consistently after an ask file 
command has been issued that Cut and Copy are disabled. Placing the 
cursor into an editable field does not reset it. And it only seems to 
manifest itself on the Mac version. I tried inserting  "enable 
menuitem 1 of menu "Edit"" at the end of my handler invoking the ask 
file command, but no go.



Hello,

My standalone has a standard Edit menu, with Cut, Copy Paste 
menuitems. In none of my scripts do I ever enable or disable them, 
yet they are getting disabled some of the time. The keyboard 
shortcuts always seem to work,  but I can't figure out what the issue 
is here. Any clues for me?


Thanks,

Marty Knapp




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


click at btn

2006-01-25 Thread sims

 I'm making a tutorial for an application, using the move command
to send a faux cursor through the different elements of the app.


When I use the following with an option button
click button 1 at the loc of card button "long_day"

the button will display the menu.

My problem is that I cannot get the script to continue on from there.

IOW  the menu of the option btn stays open and no matter what
I try, I cannot get the option btn to close so my tutorial can 
continue to other objects.


Anyone have any suggestions?

ciao,
sims

European Rev Conference  2006
www.techietours.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: nested ifs

2006-01-25 Thread simplsol

Chipp,
I have the same experience with nested conditionals. I have found the 
following format (with the "then" below the "if") helps.


if tResult is "Error"
then
 answer "Go Ahead anyway" with "Cancel" or "OK"
 if it is "Cancel" then exit to top
end if

There is sometimes still a problem, especially if the nested 
conditional contains an "else" - so I always close these with an "end 
if":


if tResult is "Error"
then
 answer "Go Ahead anyway" with "Cancel" or "OK"
 if it is "Cancel"
 then
 exit to top
 else
 doElseStuff
 end if
end if

It takes more space but I find it is easier to read - and it always 
compiles.

Paul Looney

-Original Message-
From: Chipp Walters <[EMAIL PROTECTED]>
To: Use-Revolution 
Sent: Wed, 25 Jan 2006 04:32:53 -0600
Subject: nested ifs

  I like to do the following: 
 
if tResult is "Error" then 
  answer "Go Ahead anyway" with "Cancel" or "OK" 
  if it is "Cancel" then exit to top 
end if 
 
 Most of the time it compiles, but sometimes the single line if 
statement in the middle throws and error and won't compile, so I'm 
forced to do: 

 
if tResult is "Error" then 
  answer "Go Ahead anyway" with "Cancel" or "OK" 
  if it is "Cancel" then 
  exit to top 
  end if 
end if 
 
 Anyone know why the compiler does this? I can't seem to figure out 
under what circumstances this seems to happen. 

 
best, 
 
Chipp 
 
___ 
use-revolution mailing list 
[EMAIL PROTECTED]
 Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences: 

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

   
___

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


Calendar widget&[EMAIL PROTECTED]

2006-01-25 Thread Kresten Bjerg
Hi
Concerning calendars: We have tried to convert the old hypercard calendar to rev
. It works OK with the "Weekly" part, which plays a central role in our 
freeware diary "Phenomenalog",
which is approaching publication. But the SixMonthly part (which is central to 
the production of new weekcards)
did we not suceed in converting rightly. Maybe somebody on the list has done 
this job with succes, - or could
help repair all the outcommented parts in our "SixMonthly.rev".
I have uploadet both substacks seperately to the user-site (where their partly 
functioning in "Phenomenalog.16.1.8.1"
also can be inspected.  You find them under the username "Kresten".
Maybe the set if optimized could be useful for others. The advantage: that you 
get a chance to enter more than an X or a single word into
the days.
But maybe the term " Widget" then should not fit ?
 
Greetings from Copenhagen
Kresten
www.psy.ku.dk/bjerg

___
use-revolution mailing list
use-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: Creating items on a card that isn't the current card.

2006-01-25 Thread Eric Chatonet
The copied image in the group "Mystery Phrase" has an id of 0 if  
this card

isn't the current card.


An image the ID of which is 0 is the template image that should  
always stay virtual...

You succeeded to display it ;-)
Kudos!

Best Regards from Paris,
Eric Chatonet
 
--

http://www.sosmartsoftware.com/[EMAIL PROTECTED]/


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


Re: Calendar widget

2006-01-25 Thread Alex Tweedly

Josh Mellicker wrote:


Does anyone know of a calendar widget for Revolution?

No-one yet has mentioned Sarah Reichelt's excellent Calendar widget, at 
http://www.troz.net/Rev/libraries.html



Calendar.rev 
This project file contains a calendar sub-stack that you can insert 
into any project. It allows users to enter a date graphically, thereby 
ensuring that any date will be in a valid format. The new version 
handles international systems, allows weeks starting on Monday or 
Sunday, has large and small calendars, includes an installer and can 
hilite set dates either once or annually.



--
Alex Tweedly   http://www.tweedly.net

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.22/239 - Release Date: 24/01/2006

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

2006-01-25 Thread Eric Chatonet

Hi Josh,

Sarah offers a very good one: http://www.troz.net/Rev/libraries.html

Le 25 janv. 06 à 05:20, Josh Mellicker a écrit :


Does anyone know of a calendar widget for Revolution?


Best Regards from Paris,
Eric Chatonet
 
--

http://www.sosmartsoftware.com/[EMAIL PROTECTED]/


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


Re: nested ifs

2006-01-25 Thread Eric Chatonet

Hi Chipp,

I noticed that too. The compiler seems to be confused but should not...
Systematically, I never use a single line conditional statement  
before an "else" or an "end if" to avoid problems.

Adding a line between (even a blank one) makes the problem vanish :-)

Best Regards from Paris,
Eric Chatonet

Le 25 janv. 06 à 11:32, Chipp Walters a écrit :


I like to do the following:

if tResult is "Error" then
  answer "Go Ahead anyway" with "Cancel" or "OK"
  if it is "Cancel" then exit to top
end if

Most of the time it compiles, but sometimes the single line if  
statement in the middle throws and error and won't compile, so I'm  
forced to do:


if tResult is "Error" then
  answer "Go Ahead anyway" with "Cancel" or "OK"
  if it is "Cancel" then
exit to top
  end if
end if

Anyone know why the compiler does this? I can't seem to figure out  
under what circumstances this seems to happen.


 
--

http://www.sosmartsoftware.com/[EMAIL PROTECTED]/


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


Re: Ask & Answer

2006-01-25 Thread alex wu
Hello,

Could you please post the link again. I tried:

http://members.maclaunch.com/richmond/URL + ANSWER
2.rev.zip

and

http://members.maclaunch.com/richmond/URL+ANSWER
2.rev.zip

and

http://members.maclaunch.com/richmond/URL+ANSWER2.rev.zip

But they all did not work.

Thanks and best regards

Alex

--- Mathewson <[EMAIL PROTECTED]> wrote:

> I have just prepared a silly stack with a 'fake'
> answer
> palette that gives the impression of allowing the
> end-user
> to click on a hypertext link to a website:
> 
> http://members.maclaunch.com/richmond/URL + ANSWER
> 2.rev.zip
> 
> it's the "quick and dirty" way!
> 
> sincerely, Richmond Mathewson
> __
> See Mathewson's software at:
> 
> http://members.maclaunch.com/richmond/default.html
> ___
>
---
> The Think Different Store
> http://www.thinkdifferentstore.com/
> For All Your Mac Gear
>
---
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and
> manage your subscription preferences:
>
http://lists.runrev.com/mailman/listinfo/use-revolution
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


nested ifs

2006-01-25 Thread Chipp Walters

I like to do the following:

if tResult is "Error" then
  answer "Go Ahead anyway" with "Cancel" or "OK"
  if it is "Cancel" then exit to top
end if

Most of the time it compiles, but sometimes the single line if statement 
in the middle throws and error and won't compile, so I'm forced to do:


if tResult is "Error" then
  answer "Go Ahead anyway" with "Cancel" or "OK"
  if it is "Cancel" then
exit to top
  end if
end if

Anyone know why the compiler does this? I can't seem to figure out under 
what circumstances this seems to happen.


best,

Chipp

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