RE: How to add a field to a stack of 50 cards

2003-11-17 Thread Phil Davis

> I have used a group as a background in my current project, but when
> adding another item to the group I get a warning that the group will be
> removed from any other cards which use it. Then I have to manually
> place the group back on the cards that Rev removed it from. Luckily,
> it's easy to do with a script from the message box, but is there a way
> to add items to a group without having Rev remove the group from the
> cards where it currently resides?


Jason -
Please be patient with me while I get real simple. I'm just trying to
understand what's going on.

When I add controls to a group, I select the group in the Application
Browser and click the "Edit Group" button in the Rev task bar (or whatever
it's called). This hides everything else on the current card and lets me do
what I want to the controls in the group, or add new ones. When I'm done I
'unclick' the "Edit Group" button and I'm back where I started. Is this
similar to your approach?

I've never had the results you've described here; how are you doing it?

Phil Davis

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Database - functionality for front end application

2003-11-17 Thread Jan Schenkel
--- Melvin Cox <[EMAIL PROTECTED]> wrote:
> Jan:
> 
> MANY THANKS for your prompt and very thorough
> response.
> 
> I have successfully implemented each of your
> examples.  The only 
> modification I needed to make was to add quotes
> around the value of the 
> "affiliation" field in Problem #1 (my database
> requires the use of quotes as 
> string delimiters).
> 
> My code for the group is therefore:
> 
>
---
> 
> on mouseUp
>put "SELECT * FROM Business WHERE Bid=" \
>into tSQLQuery
>put quote & field "affiliation" & quote after
> tSQLQuery
>revSetSQLOfQuery "AffiliatedBusiness", tSQLQuery
> end mouseUp
> 
>
---
> 
> After implementing your code for Problems One and
> Two, I noticed that the 
> desired functionalities worked flawlessly EXCEPT
> when making updates to the 
> affiliation field on the form.
> 
> I have worked around this by adding an on closeField
> statement on the 
> affiliation field which combines the code addressing
> Problems One and Two.
> 
> Am I correct in the assumption that the code for a
> field has prescedence 
> over the code for the form?
> 
>
---
> 
> on CloseField
>   put "SELECT * FROM Business WHERE Bid=" \
>   into tSQLQuery
>   put quote & field "affiliation" & quote after
> tSQLQuery
>   revSetSQLOfQuery "AffiliatedBusiness", tSQLQuery
> 
>   put the date && the long time into tDate
>   convert tDate to dateItems
>   put item 1 of tDate & "-" & \
>   item 2 of tDate & "-" & \
>   item 3 of tDate & " " & \
>   item 4 of tDate & ":" & \
>   item 5 of tDate & ":" & \
>   item 6 of tDate into field "last_update"
> end CloseField
> 
>
---
> 
> My sole remaining problem (for the moment) is how to
> force capitalization of 
> the affiliation field, while at the same time
> retaining the other 
> functionalities, as above.
> 
> Adding your on keyDown statement to the script for
> the affiliation field 
> results in data entry being CAPITALIZED, but the
> update of the timestamp and 
> display in the CompanyName field are not done.
> 
> What am I doing wrong?
> 
> 
> M.C.
> 

Hi Melvin,

Good to see you got a lot further already ; now let's
refine the earlier solution a bit.
Add the following handler to the card script :
--
on UpdateCompanyName
  put "SELECT * FROM Business WHERE Bid=" \
  into tSQLQuery
  put "'" & field "affiliation" & "' ;" after \
  tSQLQuery
  revSetSQLOfQuery "AffiliatedBusiness", tSQLQuery
end UpdateCompanyName
--
[Note that I've replaced the quotes surrounding the
field content with single quotes and ended with a
space and a semicolon, so that the query will also
work on FileMaker and other 'picky' databases.]

To somewhat clean up your scripts, you can now change
the script of the navigation group to :
--
on mouseUp
  UpdateCompanyName
end mouseUp
--

Now change the closeField handler in the script of the
field "Affilitation" to :
--
on closeField
  UpdateCompanyName
  pass closeField
end closeField
--
The 'pass' command will allow the closeField message
to traverse the controls down the message path, so in
our case, the closeField in the card script will also
be invoked, and thus update the timestamp.

Hope this helped,

Jan Schenkel.

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Hilite bug in OS X appearance manager?

2003-11-17 Thread Sarah
I can confirm this. I had a similar problem when trying to make header 
buttons for sortable columns. In the end, I used a workaround which was 
to set the hilite to true and then immediately back to false in the 
mouseUp handler (or equivalent).

It does seem that this only happens when locking the screen.

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/
On 18 Nov 2003, at 11:39 am, Michael J. Lew wrote:

I have spent an hour chasing odd behaviour wherein a button will 
hilite itself wrongly and unlock the screen. Here is a recipe:

make a new button. Set its autohilite to false and set its script to
on mouseDown
  lock screen
end mouseDown
on mouseUp
  set the hilite of me to false
end mouseUp
on mouseStillDown
  put the hilite of me
end mouseStillDown
Now click and hold the mouse  button down over the button. On my 
machine (OS X.2.6) the button will become hilited after about a second 
if I have the view set to appearance manager but not Mac OS emulated, 
Linux or Windows. The button should not, of course get hilited at all. 
What's more, it reports its hilite as false even though it looks 
hilited.

From other behaviour in my stack it is apparent that the aberrant 
button hiliting is associated with an aberrant unlocking of the 
screen.

Can anyone confirm this apparent bug?

--
Michael J. Lew
Senior Lecturer
Department of Pharmacology
The University of Melbourne
Parkville 3010
Victoria
Australia
Phone +613 8344 8304

**
New email address: [EMAIL PROTECTED]
**
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Database - functionality for front end application

2003-11-17 Thread Jan Schenkel
--- Monte Goulding <[EMAIL PROTECTED]>
wrote:
> > People Table
> > -
> >
> > Pid  
> > FirstName
> > LastName
> > Affiliation
> > CompanyName < a display only field>
> > Last_update
> >
> >
> > Business Table
> > ---
> >
> > Bid 
> > Org_Name
> > Address
> > City
> > State
> > Zip
> > Last_update
> >
> > ===
> >
> >
> > Problem One: Posting of results from "lookup"
> query
> > ---
> >
> > Whenever a new row is displayed (via Query, Next
> or Previous calls), or
> > whenever an entry or modification is made to the
> form's
> > Affiliation field, I
> > wish to automatically populate the form's (display
> only)
> > CompanyName field
> > with the results of the following SQL query:
> >
> > select Org_Name from Business where Bid = " of the form's currently
> > displayed affiliation field>"
> >
> > How can this best be accomplished in Revolution?
> >
> With one properly formed SQL query instead of 2.
> Something like:
> 
> SELECT
> Pid,FirstName,LastName,Org_Name,People.Last_Update
> FROM
> People,Business WHERE Affiliation = Bid
> 
> Cheers
> 
> Monte
> 

Of course we can count on Monte to come up with the
more elegant solution -- on the other hand, the above
tactic will work fine as long as the number of related
records in Business is <= 1.
The tactic Melvin implemented on my advice, has the
advantage that it will also work for Master-Detail
views, where the number of related records might very
well be > 1.
Hmm, I still need to fix up that sample stack and post
it to the User Contributions...

Jan Schenkel.

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Couple of basic questions

2003-11-17 Thread Klaus Major
Hi David,

The first question relates to the lock screen command.  I'm using 
RR2.1.1
and OS 10.3.  I come from a HC background, and lock screen always did 
what
I expected--you saw nothing change until the script finished, which is 
what
the docs imply.  With my project (still in development) I want to lock 
the
screen between the splash screen and the substacks opening (3) so that 
the
user doesn't see the flickering between them.  However, except for a 
blank
card at one point and the splash screen not showing at all, there's 
little
difference.  Any ideas?
I'm not sure, but i think "lock screen" only applies to actions inside 
one stack...

Means:

...
lock screen
set the loc of btn 1 to 200,300
...
unlock screen
...
will work, but

...
lock screen
close stack "x"
toplevel "stack y"
...
will not.

Someone correct me please, if i'm wrong.

No. 2.  Don't global variables empty when a stack is removed from 
memory?
Yes, they do not empty.

If not,
;-)

where is the data stored?
In memory, but you can delete a global with:

delete global yourglobalvar

Hope that helps.

Dave
Regards

Klaus Major
[EMAIL PROTECTED]
www.major-k.de
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Couple of basic questions

2003-11-17 Thread David Squance
The first question relates to the lock screen command.  I'm using RR2.1.1
and OS 10.3.  I come from a HC background, and lock screen always did what
I expected--you saw nothing change until the script finished, which is what
the docs imply.  With my project (still in development) I want to lock the
screen between the splash screen and the substacks opening (3) so that the
user doesn't see the flickering between them.  However, except for a blank
card at one point and the splash screen not showing at all, there's little
difference.  Any ideas?

No. 2.  Don't global variables empty when a stack is removed from memory?
If not, where is the data stored?
Dave


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Database - functionality for front end application

2003-11-17 Thread Monte Goulding
> People Table
> -
>
> Pid  
> FirstName
> LastName
> Affiliation
> CompanyName < a display only field>
> Last_update
>
>
> Business Table
> ---
>
> Bid 
> Org_Name
> Address
> City
> State
> Zip
> Last_update
>
> ===
>
>
> Problem One: Posting of results from "lookup" query
> ---
>
> Whenever a new row is displayed (via Query, Next or Previous calls), or
> whenever an entry or modification is made to the form's
> Affiliation field, I
> wish to automatically populate the form's (display only)
> CompanyName field
> with the results of the following SQL query:
>
> select Org_Name from Business where Bid = " displayed affiliation field>"
>
> How can this best be accomplished in Revolution?
>
With one properly formed SQL query instead of 2. Something like:

SELECT Pid,FirstName,LastName,Org_Name,People.Last_Update FROM
People,Business WHERE Affiliation = Bid

Cheers

Monte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Error code - 10660

2003-11-17 Thread Revinfo1155
I was tranfering a rev stack from my pc to my imac and when I opened it I got 
an error code -10660
and the stack would not open. Any ideas on what that error code means?

JACK
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Windows Misery

2003-11-17 Thread Chipp Walters
Graham,

Probably a memory error playing all those GIF's. Win98 and ME were notrious
at mismanaging memory. My suggestion is to turn OFF the various animated
gifs (set the repeatcount of img "test.gif" to 0) and see if it doesn't
help.

Else, try and display as few anim gifs as possible at a time.

You should be able to view the stack memory (ctrl-alt-delete or
ctrl-shift-esc) and watch what happens when you open the card with all the
gifs on it.

If that didn't work, and you still needed the animation, I would suggest
scripting the animation into a handler using regular gifs or pngs. So that
your stack received a message every 30 milliseconds or so telling each
button to change to the next image.

Good luck,

Chipp

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Duplicate Substack

2003-11-17 Thread J. Landman Gay
> On Nov 17, 2003, at 12:19 PM, R. Hillen wrote:
>
> I want some slightly different substacks; to save work, I would like
> to duplicate one substack and to modify it afterwards.
>
> How can I do that?
You clone it. After cloning, the variable "it" contains a reference to 
the new object so that you can work with that new object. The clone is 
an independent stack that doesn't "belong" to any mainstack. It's name 
is generic. So next you set its name and mainstack properties (you must 
do these lines immediately, or the "it" variable may not hold the 
reference to the new stack):

clone stack "mySubstack"
set the name of it to "myNewClone" -- renames the stack
set the mainstack of it to "myMainStack" -- makes it a substack
Save the main stack file and you're done.

>>On 11/17/03 1:51 PM, Thomas J McGrath III wrote:

I wish this was possible for cards as well as stacks and substacks.
Same thing, basically, only you don't need to assign a mainstack because 
new cards are automatically created in the same stack as the original:

  clone this card
  set the name of it to "myNewCard"
Cloned cards are placed immediately after the original in the stack.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: How to add a field to a stack of 50 cards

2003-11-17 Thread Jason Rippetoe
On Monday, November 17, 2003, at 12:00  AM, Yves Coppe wrote:


Hello people

Thanks all for your contribution to my query.

Questions:
Does RR use more resources by putting a Field on 50 cards then if
you create that field to act as background on the 1st card
What about creating a invisible group on card 1 when 1st creating
the stack and make it act as background.  Then after 50 or a 1000
cards, if you decide you need another field, goto card 1 edit the
group and create yout field inside the group. Would that work?
Merely : YES


I have used a group as a background in my current project, but when 
adding another item to the group I get a warning that the group will be 
removed from any other cards which use it. Then I have to manually  
place the group back on the cards that Rev removed it from. Luckily, 
it's easy to do with a script from the message box, but is there a way 
to add items to a group without having Rev remove the group from the 
cards where it currently resides?

Curious,

-Jason

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Windows Misery

2003-11-17 Thread Cubist
sez [EMAIL PROTECTED]:
>For those that remember, I've been trying to find out what makes an app
>of mine work in Windows XP and Mac but not Windows 95,98 or ME. ...
>If you were following this story, the GIFs turned up on this particular
>card because they caused some other problem when on a different card to
>the main one, where they were displayed via transparent buttons... anyway,
>I don't know what all this is about and worse, I don't know how to get what
>I want (the animated buttons without the glitches I experienced before).
>I still think I need the RunRev team to tell me something about the Windows
>engine, but of course I would be more than grateful for suggestions from
>the list.
   If certain Win flavors can't deal with animated GIFs, you might try to do 
the animation "by hand", as it were.
   One: Make each frame of an animated GIF into a separate graphic image unto 
itself, these images named things like "Anim.one.0", "Anim.one,1", 
"Anim.one.2", etc etc.
   Two: Give the button that's going to 'play' your 'animation', a custom 
property called FrameNum which contains a non-negative integer.
   Three: Give this button the following handler:

on AnimateMe
  put ("Anim.one." & the FrameNum of me) into DisFrame
  set the icon of me to graphic DisFrame
  -- syntax may be invalid, but the idea should be clear, right?
  put (((the FrameNum of me) mod 15) + 1) into the FrameNum of me
  -- assumes a 15-frame animation; adjust the value "15" as desired
  send "AnimateMe" to me in 50 milliseconds
  -- this yields a 20/sec frame rate; adjust as desired if you need a 
different frame rate
end AnimateMe

   Do all three things, and when you send "AnimateMe" to the button, it will 
cheerfully go thru the 15-frame (or however many it is) animation forever and 
ever. If you want the frames to *not* be displayed at an absolutely constant 
rate, you can do that; the necessary modifications to AnimateMe are left as an 
exercise for the reader.

   Hope this helps...
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Save in Standalone

2003-11-17 Thread J. Landman Gay
On 11/17/03 1:38 PM, Graham Samuel wrote:

If anyone else is reading this, I'd like to know from a real expert if 
one can create a new stack from scratch by scripting - I don't see how 
myself, I think it has to be done by cloning a template.
No, you can do it with scripts.

  create stack "myExample"

From there, it is just a matter of setting all the properties you want: 
width, height, label, etc.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Do As applescript behaving different on 10.3?

2003-11-17 Thread [EMAIL PROTECTED]
Now I¹m starting to panic...

This script works on OS X 10.2 but doesn¹t on 10.3... Anyone care to
un-panic me? PLEASE

Put ³tell application ² & quote & ³InDesign 2.0.2² & quote & cr into vScript
Put ³close active document² & cr after vScript
Put ³end tell² after vScript
Do vScript as AppleScript

The result is always ³compiler error² when sending them from RR, when
executing the scripts in the script-editor they all work fine.
(Of course this is just a very simple script, the real ones are a lot
complexer...)


This one works fine:
Put ³tell application ² & quote & ³InDesign 2.0.2² & quote & cr into vScript
Put ³activate² & cr after vScript
Put ³end tell² after vScript
Do vScript as AppleScript

Anyone any clues?

Regards,

Ton Kuypers

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Faceless CGI: force output to be interpreted by Apache

2003-11-17 Thread Sannyasin Sivakatirswami
Ha! "SSI in a way that it was not intended"  .. what babes can do if 
they don't know any better ;-)

www.hinduismtoday.com  is presently completely dynamically generated 
using SSI, top to bottom.

Only later were we told by someone else "tisk, tisk... really that's 
not what SSI is for." But we can't find any hard logic behind not using 
it for this purpose... i.e. I suppose that making one's web site page 
generation depending on system wide resident httpd services over which 
you have no control, instead of completely under the control of one's 
own dBase or CGI's is considered "bad form." ??

But, FYI, it works just great and very fast to compared to other .asp 
or .js built sites. And no one yet has given a good reason not to do 
this, if it serves well, which it does.

But, Brian wrote: "It seems there's not much that SSI offers which 
couldn't be done by Rev itself in the first place" Agreed.. .much 
simpler than hacking Apache's config, over which we have no control 
anyway, since this is a virtual site on  a server where we can't touch 
Apache settings.

Sannyasin Sivakatirswami
Himalayan Academy Publications
at Kauai's Hindu Monastery
[EMAIL PROTECTED]
www.HimalayanAcademy.com,
www.HinduismToday.com
www.Gurudeva.org
www.Hindu.org
On Nov 17, 2003, at 10:25 AM, Alex Rice wrote:

This is what I would expect to happen. Not sure, but I think you are 
trying to use SSI in a way that it was not intended or cannot be used.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Slightly OT: Switching mySQL from win to Mac OSX

2003-11-17 Thread [EMAIL PROTECTED]
Alex,
Sorry for my late response, but thanks, this got me started and it worked
:-D

Ton Kuypers

> From: Alex Rice <[EMAIL PROTECTED]>
> Reply-To: How to use Revolution <[EMAIL PROTECTED]>
> Date: Fri, 14 Nov 2003 16:35:39 -0700
> To: How to use Revolution <[EMAIL PROTECTED]>
> Subject: Re: Slightly OT: Switching mySQL from win to Mac OSX
> 
> 
> On Nov 14, 2003, at 4:18 PM, [EMAIL PROTECTED] wrote:
>> Anyone any suggestions?
> 
> I would not move the raw data files between different servers. It might
> work but a lot could go wrong: different mysql table types, different
> architecture, different mysql servers versions, etc.
> 
> Mysql has command-line tools for creating, exporting and importing
> databases. That's what I would use. Use "mysqldump" to get a snapshot
> of the database, use "mysqladmin" to create the database on a new
> server, then do something like "mysql -u username dbname < dump.sql "
> to load the sql dump file.
> 
> Alex Rice <[EMAIL PROTECTED]> | Mindlube Software |
> 
> 
> what a waste of thumbs that are opposable
> to make machines that are disposable  -Ani DiFranco
> 
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Faceless CGI: force output to be interpreted by Apache

2003-11-17 Thread Alex Rice
On Nov 17, 2003, at 1:08 PM, Sannyasin Sivakatirswami wrote:

 i.e. the stndOut from the Rev CGI goes straight out port 80 without 
Apache's help (Apache doesn't parse it), as far as I can tell. Just 
guessing of course, all we know is the SSI's are not implemented.
This is what I would expect to happen. Not sure, but I think you are 
trying to use SSI in a way that it was not intended or cannot be used.

You can use SSI exec to get content from a CGI script. I think that is 
what you need to look into.

Alex Rice <[EMAIL PROTECTED]> | Mindlube Software | 


what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Windows Misery

2003-11-17 Thread Graham Samuel
For those that remember, I've been trying to find out what makes an app of 
mine work in Windows XP and Mac but not Windows 95,98 or ME. Well, I seem 
to have found it in rather general terms (after my attempts to pin the 
problem down to a single line of scripting failed) but I am none the wiser.

I have a card (the main display screen of the program) with 104 controls on 
it, of which 18 are small animated GIFs (embedded, not referenced). As 
files, the smallest of these is 19Kb and the largest 65Kb. The max number 
of frames is 30 - so they are tiny. Nevertheless if these GIFs are deleted, 
everything works normally - except of course I don't get my animations any 
more.

If you were following this story, the GIFs turned up on this particular 
card because they caused some other problem when on a different card to the 
main one, where they were displayed via transparent buttons... anyway, I 
don't know what all this is about and worse, I don't know how to get what I 
want (the animated buttons without the glitches I experienced before).

I still think I need the RunRev team to tell me something about the Windows 
engine, but of course I would be more than grateful for suggestions from 
the list.

TIA

Graham

---
Graham Samuel / The Living Fossil Co. / UK & France  

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Save in Standalone

2003-11-17 Thread Graham Samuel
On Sun, 16 Nov 2003 10:54:14 -0800, Roger Guay <[EMAIL PROTECTED]> 
wrote:


I'm sorry for being a bit slow on this, Graham, but I'm missing some
basic understanding:  If I use a substack as a data file,  doesn't that
require that the user have Revolution installed?  Otherwise they are
necessarily standalones and therefor can't save data.  Isn't that
right?
No, it's your program (standalone) that will be reading the data stack, and 
of course your program **does** contain Revolution, in the sense that the 
'engine' that runs your script is present within the distribution you've 
created. So all the functionality required to manipulate stacks is in fact 
delivered to your user, packaged up in your standalone. All you need to do 
is to make sure that the stack file containing the data is separated from 
the stack(s) that get included in the standalone by being processed by 
RunRev's Distribution Builder. This can be done in two ways - the 
standalone itself can create a new stack by cloning and save that (see my 
earlier message), or you can create the extra stack file yourself during 
the development process, save it separately from your application stacks, 
and **not** include it in the stacks processed by the Distribution Builder.

If this isn't clear, don't hesitate to ask again. I'm sure I could cook up 
an example, or there may already be one somewhere on the RunRev web site.

If anyone else is reading this, I'd like to know from a real expert if one 
can create a new stack from scratch by scripting - I don't see how myself, 
I think it has to be done by cloning a template.

HTH

Graham

---
Graham Samuel / The Living Fossil Co. / UK & France  

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Faceless CGI: force output to be interpreted by Apache

2003-11-17 Thread Sannyasin Sivakatirswami
Alex: thanks for focusing on this a bit...

Whether the SSI is" include" or "exec" seems not to be the issue. The 
issue seems to be that Apache doesn't parse (and trigger the associated 
module) anything that is sent out the pipe to stnOut by the Rev CGI.

If we put into a browser:

www.himalayanacademy.com/forms/dynamicallyBuiltwSSI.html

where "dynamicallyBuiltwSSI.html"

has both includes and exec's, (for header's and footers, side bar links 
chunks etc) Apache will parse and run those SSI's as expected and send 
the document back to the browser with the expected chunks inserted.

on the other hand

on startUp   ## highly simplified for this email

put url "file:forms/dynamicallyBuiltwSSI.html" into tResponseToUserFile

## do stuff here, replace strings with the users's name,
## insert his choices from a shopping cart form etc.
 put "Content-Type: text/html" & cr
put "Content-Length:" && the length of tResponseToUserFile & cr & cr
put tResponseToUserFile
end startUp

the user will see all the raw strings

<-- exec virtual "/cgi-bin/whatever.cgi" --!>

in his browser. i.e. the stndOut from the Rev CGI goes straight out 
port 80 without Apache's help (Apache doesn't parse it), as far as I 
can tell. Just guessing of course, all we know is the SSI's are not 
implemented.

Sannyasin Sivakatirswami
Himalayan Academy Publications
at Kauai's Hindu Monastery
[EMAIL PROTECTED]
www.HimalayanAcademy.com,
www.HinduismToday.com
www.Gurudeva.org
www.Hindu.org
On Nov 16, 2003, at 6:59 PM, Alex Rice wrote:

On Nov 16, 2003, at 8:11 PM, Sannyasin Sivakatirswami wrote:

Problem: stnOut from an xTalk CGI script is not parsed by apache.. 
there or the SSI calls to apache's "include" module are not 
triggered.
How have you come to this determination, and what are the SSI calls 
you are making? I think the SSI exec command is what you want, not SSI 
include command.

I've never used SSI and CGI together, but my old O'Reilly CGI 
programming book has an example showing this form of the command: 


There is no reason it wouldn't work with a Rev script instead of a 
Perl script.

BTW I seem to remember SSI exec might often be disabled in web server 
configurations for security reasons. Not sure about that though.

Alex Rice <[EMAIL PROTECTED]> | Mindlube Software | 


what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Print a Report

2003-11-17 Thread Klaus Major
Hi Thomas J McGrath III,

Throughout REV I have seen negative results with cancel buttons,
I don't know why.
Tom
On Nov 17, 2003, at 12:19 PM, R. Hillen wrote:

Hello list,
with the help of the report-builder I made a report.
Now I want to print it by a handler.
I tried:
on mouseup
  open stack "MyReport"
  hide stack "MyReport"
  answer printer
## if it is cancel then exit to top -- Cancel doesn´t work, why?
## sometimes it is a better idea to check the result...
if the result = "cancel" then exit to top

## Try this, might help ;-)

  send "RevPrintReport" to stack "MyReport"
end mouseup

Sometimes I get a printout, sometimes not.
So I need your help: What is wrong?
Thanx
Richard Hillen
Regards

Klaus Major
[EMAIL PROTECTED]
www.major-k.de
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Print a Report

2003-11-17 Thread Alex Rice
On Nov 17, 2003, at 10:19 AM, R. Hillen wrote:

  answer printer
  if it is cancel then exit to top -- Cancel doesn´t work, why?
 if the result = "Cancel" then exit mouseup

Maybe Thomas has the same problem: checking "it" variable instead of 
"the result" function?

Alex Rice <[EMAIL PROTECTED]> | Mindlube Software | 


what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Print a Report

2003-11-17 Thread Thomas J McGrath III
Throughout REV I have seen negative results with cancel buttons,

I don't know why.

Tom

On Nov 17, 2003, at 12:19 PM, R. Hillen wrote:

Hello list,

with the help of the report-builder I made a report.
Now I want to print it by a handler.
I tried:

on mouseup
  open stack "MyReport"
  hide stack "MyReport"
  answer printer
  if it is cancel then exit to top -- Cancel doesn´t work, why?
  send "RevPrintReport" to stack "MyReport"
end mouseup
Sometimes I get a printout, sometimes not.
So I need your help: What is wrong?
Thanx

Richard Hillen

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Advanced Media Group
Thomas J McGrath III  2003  [EMAIL PROTECTED]
220 Drake Road, Bethel Park, PA 15102


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Duplicate Substack

2003-11-17 Thread Thomas J McGrath III
I wish this was possible for cards as well as stacks and substacks.

Instead I just make a copy of the whole stack and then delete down to 
the substack I want and then use the (stack that makes a substack a 
part of another stack project file) obviously I forgot what it was 
named :)

Tom

On Nov 17, 2003, at 12:19 PM, R. Hillen wrote:

Hello list,

I want some slightly different substacks; to save work, I would like 
to duplicate one substack and to modify it afterwards.

How can I do that?

Thanx in advance

Richard Hillen.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Advanced Media Group
Thomas J McGrath III  2003  [EMAIL PROTECTED]
220 Drake Road, Bethel Park, PA 15102


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev causes computer crash

2003-11-17 Thread Thomas J McGrath III
Although I don't know what is the problem I have had the same problem 
and a slightly different one.
My solution was to A: reboot the computer and B: Use stuffit (Or 
whatever) and compress the original file (I also rename the original)

When you try to open it the first time I also open from within the REV 
app instead of double clicking on the rev project file.

This works for me in both of my problem stacks but I don't know why REV 
crashes or why it happens. Sorry

Hope this works for you,

Tom

On Nov 17, 2003, at 12:08 PM, Adrian L'Armand wrote:

Every time I duplicate a file x I get a file name x copy. When 
I try
to open Rev 2.1 from that file the menu bar comes up and the Rev Splash
screen and the computer Mac G4 9.2 crashes. Can't one change the name 
of a
file in the finder. What am I doing wrong?
a l'a
--

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Advanced Media Group
Thomas J McGrath III  2003  [EMAIL PROTECTED]
220 Drake Road, Bethel Park, PA 15102


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Save in Standalone

2003-11-17 Thread Roger Guay
Thanks so much to Richard Gaskin, Alex Rice, and Graham Samuel for 
their prompt replies and revealing (again) how great RunRev is.  This 
opens up so many opportunities I had no idea existed!  Will wonders 
ever cease?

Thanks Again,  Roger

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Save in Standalone

2003-11-17 Thread Yves COPPE
Hello Pierre,

Le 17 nov. 03, à 18:46, Pierre Bernaert a écrit :

I'm following the referenced discussion because I 'm trying to solve 
the same problem concerning a stack which  cards will be created by 
the user.

As :
	• the users will not buy Revolution.
	• The documentation (Printed 1.1.1 version) and on line 2.1
		which are the same, are saying:
		"If the stack is a standalone application, it cannot be saved."
		"A Standalone  application can save stacks in separates files,
		but cannot save a stack in the standalone file".
	• I'm french speaking and have difficulties to understand clearly the 
previous 	  sentences which are to me contradictory.
Ce n'est pas compliqué : tu utilises ton app. "Standalone" comme 
"splashcreen" et tes autres "substacks" peuvent enregistrer tes datas 
sans problème.


Bien amicalement.
Yves COPPE
[EMAIL PROTECTED]

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Save in Standalone

2003-11-17 Thread Alex Rice
On Nov 17, 2003, at 10:51 AM, Richard Gaskin wrote:

For more on using stack files for data storage see:


Yeah! What he said! That post is the one that made light bulbs go on  
for me about data stacks & custom properties.

Alex Rice <[EMAIL PROTECTED]> | Mindlube Software |  


what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Save in Standalone

2003-11-17 Thread Richard Gaskin
Pierre Bernaert wrote:

> One confusing point  for me is the fact that a stack (Or substack)
> could be a .rev which means to me that running this stack needs
> Revolution environment and no extension would mean that it has been
> build as a standalone  application.
> Am I right ??

You can change a file extension to anything you like.  For background on how
various OSes deal with file associations use the Documentation Search in
Rev's help menu and search for "documents".

The situation with Rev is pretty much as it is with all applications:  the
standalone is the executable, and data is stored outside the executable.
All OSes require this, except for Mac OS but with OS X adopting the industry
standard way of doing thing (no writing to the executable at runtime) is
recommended.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Save in Standalone

2003-11-17 Thread Richard Gaskin
Alex Rice wrote:

> 
> On Nov 16, 2003, at 11:54 AM, Roger Guay wrote:
> 
>> If I use a substack as a data file,  doesn't that require that the
>> user have Revolution installed?  Otherwise they are necessarily
>> standalones and therefor can't save data.  Isn't that right?
> 
> Nope. "standalone" just means that your mainstack is a standalone
> binary executable. I guess that's the simplest way to explain it.
> 
> Suppose your app wanted to save some data to disk in a Rev stack. You
> would just do (something like)
> 
> new invisible stack "mydata"
> set the filename of stack "mydata" to "somewhere/data.rev"
> set the uMyData of stack "mydata" to tBigData
> save stack "mydata"
> close stack "mydata"
> 
> Now you have saved data to disk. To read it back in at some point in
> the future you would do
> 
> go invisible stack "somewhere/data.rev"
> get the uMyData of stack "mydata"
> 
> So your app can create, read and write Revolution stacks, and the end
> user does NOT need Revolution. When you build a standalone, the
> Revolution engine is embedded within.

For more on using stack files for data storage see:



-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge: Publish any database on any Web site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Save in Standalone

2003-11-17 Thread Pierre Bernaert
Hi distinguished and competent  Revolution's Gurus,

I'm following the referenced discussion because I 'm trying to solve 
the same problem concerning a stack which  cards will be created by the 
user.

As :
	• the users will not buy Revolution.
	• The documentation (Printed 1.1.1 version) and on line 2.1
		which are the same, are saying:
		"If the stack is a standalone application, it cannot be saved."
		"A Standalone  application can save stacks in separates files,
		but cannot save a stack in the standalone file".
	• I'm french speaking and have difficulties to understand clearly the 
previous 	  sentences which are to me contradictory.

I realized, without success, a lot of test interpreting the different 
meaning I could give to the second sentence.

I think a simple example saying how to save  a simple standalone  stack 
, if possible or how to save the standalone substack of a (Standalone 
Main Stack with a substack)  if possible, or saying clearly that there 
is  no way to save  a Standalone stack or Substack application would 
help.

One confusing point  for me is the fact that a stack (Or substack) 
could be a .rev which means to me that running this stack needs 
Revolution environment and no extension would mean that it has been 
build as a standalone  application.
Am I right ??

Thanks for your help

Pierre



I looked for the documentation 1.1.1
Le dimanche, 16 nov 2003, à 19:54 Europe/Paris, Roger Guay a écrit :
Message: 5
Date: Sun, 16 Nov 2003 15:37:23 +0100
From: Graham Samuel <[EMAIL PROTECTED]>
Subject: Re: Save in Standalone
To: RunRev Users List <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"; format=flowed
On Sat, 15 Nov 2003 16:46:28 -0800, Roger Guay 
<[EMAIL PROTECTED]>
wrote:

Thanks, Graham.  Makes sense now that I think about it.  By a "data
stack" you must mean a   .rev  stack, as a standalone data stack 
would
have the same problem???  And, since I can't expect my users will 
have
Revolution installed on their machine, I guess I'll have to use
external files to save to and pull from?
Yes, but the external files can be stacks - after all, that's how the 
IDE
works, and it's written in Transcript! Look at 'How to store 
preferences or
data for a standalone application' in the online documentation. I 
guess the
best way to start this off is to have a template stack as a substack 
of
your application and then when you start or when the user first wants 
to do
a 'Save' (depends on your design), then invoke some code to clone the
template stack, rename it and save it for the benefit of the user. As 
a
matter of fact, I don't myself know how to create a stack completely 
from
scratch, and I don't know how the IDE implements 'New Mainstack' and 
'New
Substack' - but I imagine it via this template scheme. I'd be curious 
to
know - maybe one of the real gurus on this list will explain (anyone?)

TIA

Graham

---
Graham Samuel / The Living Fossil Co. / UK & France
I'm sorry for being a bit slow on this, Graham, but I'm missing some 
basic understanding:  If I use a substack as a data file,  doesn't 
that require that the user have Revolution installed?  Otherwise they 
are necessarily standalones and therefor can't save data.  Isn't that 
right?

Thanks, Roger

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Save in Standalone

2003-11-17 Thread Pierre Bernaert
Hi distinguished and competent  Revolution's Gurus,

I'm following the referenced discussion because I 'm trying to solve 
the same problem concerning a stack which  cards will be created by the 
user.

As :
	• the users will not buy Revolution.
	• The documentation (Printed 1.1.1 version) and on line 2.1
		which are the same, are saying:
		"If the stack is a standalone application, it cannot be saved."
		"A Standalone  application can save stacks in separates files,
		but cannot save a stack in the standalone file".
	• I'm french speaking and have difficulties to understand clearly the 
previous 	  sentences which are to me contradictory.

I realized, without success, a lot of test interpreting the different 
meaning I could give to the second sentence.

I think a simple example saying how to save  a simple standalone  stack 
, if possible or how to save the standalone substack of a (Standalone 
Main Stack with a substack)  if possible, or saying clearly that there 
is  no way to save  a Standalone stack or Substack application would 
help.

One confusing point  for me is the fact that a stack (Or substack) 
could be a .rev which means to me that running this stack needs 
Revolution environment and no extension would mean that it has been 
build as a standalone  application.
Am I right ??

Thanks for your help

Pierre



I looked for the documentation 1.1.1
Le dimanche, 16 nov 2003, à 19:54 Europe/Paris, Roger Guay a écrit :
Message: 5
Date: Sun, 16 Nov 2003 15:37:23 +0100
From: Graham Samuel <[EMAIL PROTECTED]>
Subject: Re: Save in Standalone
To: RunRev Users List <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"; format=flowed
On Sat, 15 Nov 2003 16:46:28 -0800, Roger Guay 
<[EMAIL PROTECTED]>
wrote:

Thanks, Graham.  Makes sense now that I think about it.  By a "data
stack" you must mean a   .rev  stack, as a standalone data stack 
would
have the same problem???  And, since I can't expect my users will 
have
Revolution installed on their machine, I guess I'll have to use
external files to save to and pull from?
Yes, but the external files can be stacks - after all, that's how the 
IDE
works, and it's written in Transcript! Look at 'How to store 
preferences or
data for a standalone application' in the online documentation. I 
guess the
best way to start this off is to have a template stack as a substack 
of
your application and then when you start or when the user first wants 
to do
a 'Save' (depends on your design), then invoke some code to clone the
template stack, rename it and save it for the benefit of the user. As 
a
matter of fact, I don't myself know how to create a stack completely 
from
scratch, and I don't know how the IDE implements 'New Mainstack' and 
'New
Substack' - but I imagine it via this template scheme. I'd be curious 
to
know - maybe one of the real gurus on this list will explain (anyone?)

TIA

Graham

---
Graham Samuel / The Living Fossil Co. / UK & France
I'm sorry for being a bit slow on this, Graham, but I'm missing some 
basic understanding:  If I use a substack as a data file,  doesn't 
that require that the user have Revolution installed?  Otherwise they 
are necessarily standalones and therefor can't save data.  Isn't that 
right?

Thanks, Roger

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Building and cursor Problem (Conclusion)

2003-11-17 Thread Pierre Bernaert
Hi Scott,

After spending a lot of time trying to understand what the Pb could be 
I reinstalled Revolution 2.1 and the Pb disappeared.
I guess it's a bug but I'm not able to explain how I got into it but 
that was the  solution.

Thanks for your help

Pierre

Le lundi, 10 nov 2003, à 09:52 Europe/Paris, Pierre Bernaert a écrit :

Le lundi, 10 nov 2003, à 01:23 Europe/Paris, Scott Rossi a écrit :

On 11/9/03 3:56 PM, "Pierre Bernaert" <[EMAIL PROTECTED]> wrote:

The problem is the reverse, I want as I could expect to have the 
IBeam
cursor when going over the field I can type into. I think this is a
normal behavior for fields that can be modified.
Yes, that's the way you would expect it to work.


In other words why, after building when entering the cursor into the
card (Outside the field) have I the busy cursor although no script
should be running ?
And why although a MouseEntrer's script in the field setting the
lockCusor to true and a set cursor to IBeam I don't get the IBeam
Cursor and stay with a non spinning busy cursor ?
It sounds like some script in your stack is causing this -- perhaps 
you have
some mouse-related scripts operating somewhere.  Also, are you sure 
you're
setting lockCursor to true?  In your previous mail, you stated you 
were
setting the "lockscreen" which which will have no effect on the 
cursor.

I was wrong when making the description of my problem it is 
"LockCursor" and that's what I did.
I'm just starting a new rather big project on OS X / Windows and  
being suspicious I'm verifying how it goes on before it's too large 
and get a lot of problems.
So, I suppressed  ALL scripts in stack and subStack and got the same 
result.
The cursor is not working the way it should.
That really seems to come from the building phase or Bug

Thanks for helping me

Regards,

Pierre

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
  ___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Print a Report

2003-11-17 Thread R. Hillen
Hello list,

with the help of the report-builder I made a report.
Now I want to print it by a handler.
I tried:

on mouseup
  open stack "MyReport"
  hide stack "MyReport"
  answer printer
  if it is cancel then exit to top -- Cancel doesn´t work, why?
  send "RevPrintReport" to stack "MyReport"
end mouseup
Sometimes I get a printout, sometimes not.
So I need your help: What is wrong?
Thanx

Richard Hillen

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Duplicate Substack

2003-11-17 Thread R. Hillen
Hello list,

I want some slightly different substacks; to save work, I would like to 
duplicate one substack and to modify it afterwards.

How can I do that?

Thanx in advance

Richard Hillen.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Save in Standalone

2003-11-17 Thread Alex Rice
On Nov 16, 2003, at 11:54 AM, Roger Guay wrote:

If I use a substack as a data file,  doesn't that require that the 
user have Revolution installed?  Otherwise they are necessarily 
standalones and therefor can't save data.  Isn't that right?
Nope. "standalone" just means that your mainstack is a standalone 
binary executable. I guess that's the simplest way to explain it.

Suppose your app wanted to save some data to disk in a Rev stack. You 
would just do (something like)

new invisible stack "mydata"
set the filename of stack "mydata" to "somewhere/data.rev"
set the uMyData of stack "mydata" to tBigData
save stack "mydata"
close stack "mydata"
Now you have saved data to disk. To read it back in at some point in 
the future you would do

go invisible stack "somewhere/data.rev"
get the uMyData of stack "mydata"
So your app can create, read and write Revolution stacks, and the end 
user does NOT need Revolution. When you build a standalone, the 
Revolution engine is embedded within.

Alex Rice <[EMAIL PROTECTED]> | Mindlube Software | 


what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Rev causes computer crash

2003-11-17 Thread Adrian L'Armand
Every time I duplicate a file x I get a file name x copy. When I try
to open Rev 2.1 from that file the menu bar comes up and the Rev Splash
screen and the computer Mac G4 9.2 crashes. Can't one change the name of a
file in the finder. What am I doing wrong?
a l'a
-- 


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Printing a field with tab stops

2003-11-17 Thread Alex Rice
On Nov 17, 2003, at 9:27 AM, Bill Vlahos wrote:

Alex,

That's it. Thanks
Glad that was it

When I print from OS X (10.3.1) it ignores the page number range and 
always prints every page even, for example, I select only page 1 to 1. 
I don't see a parameter to control this. Is there something I'm 
missing or is this a bug? I'm using Rev 2.1.2.
I've been wondering the same thing.

Alex Rice <[EMAIL PROTECTED]> | Mindlube Software | 


what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Printing a field with tab stops

2003-11-17 Thread Bill Vlahos
Alex,

That's it. Thanks

When I print from OS X (10.3.1) it ignores the page number range and 
always prints every page even, for example, I select only page 1 to 1. 
I don't see a parameter to control this. Is there something I'm missing 
or is this a bug? I'm using Rev 2.1.2.

Bill Vlahos

On Nov 14, 2003, at 10:22 PM, Alex Rice wrote:

On Nov 14, 2003, at 5:22 PM, Bill Vlahos wrote:
How would I go about making printing work better?
You might try revPrintField instead of revPrintText. I think 
revPrintField uses revPrintText in it's implementation, but 
revPrintField is smarter about various formating options.

Alex Rice <[EMAIL PROTECTED]> | Mindlube Software | 


what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


New Linux Engine

2003-11-17 Thread Heather Williams
Dear listees,

Just to let you know, we have rebuilt the engine for linux for 2.1.2. There
was a problem with the previous engine. If you downloaded this engine before
midday today (GMT) please go and download it again and replace your existing
engine.

Apologies for any inconvenience,

Heather
-- 
Heather Williams ~ [EMAIL PROTECTED] ~ http://www.runrev.com/
Runtime Revolution - User-Centric Development Tools
Tel +44 (0) 131 7184333 Fax +44 (0) 845 4588487
~~~ Check our web site for new Revolution editions & special offers ~~~

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Help Please

2003-11-17 Thread xbury . cs
Just to make it confusing...

Actually if you enquote the number and it will work.

set the hilite of btn "1"... (which is not btn 1)

BUT it doesn't work for Zero "0"


-=-
Xavier Bury
TNS NT LAN Server
ext 6465




erik hansen <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
17/11/03 05:31
Please respond to erik; Please respond to How to use Revolution

 
To: How to use Revolution <[EMAIL PROTECTED]>
cc: 
Subject:Re: Help Please

.



--- Klaus Major <[EMAIL PROTECTED]> wrote:

> Avoid naming an object with a number. Doing so
> may cause Revolution to
> become confused by object references that
> specify that number, since 
> they
> might be referring to the object by name or to
> a different object by 
> number.."
> 
> Well... ;-)
> 
> If you really have to rely on numbers for an
> objects name, i would 
> suggest to
> add a little prefix like "gr" for graphic ->
> image "gr605"...
> 
> You get the picture...

if you need buttons to show a number, then 
 works
i have a MIDI keyboard set up this way.
middle C is "b60", labeled "60".

Erik

=
[EMAIL PROTECTED]http://www.erikhansen.org

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution





Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does 
not accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the intended 
recipient, any disclosure, copying, distribution or any action taken or omitted to be 
taken in reliance on it, is prohibited and may be unlawful. Any views expressed in 
this e-mail are those of the individual sender, except where the sender specifically 
states them to be the views of Clearstream International or of any of its affiliates 
or subsidiaries.

END OF DISCLAIMER
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Database - functionality for front end application

2003-11-17 Thread xbury . cs
Melvin,

This is not hard!

On 15/11/2003 00:00:06 use-revolution-bounces wrote:

>Problem One: Posting of results from "lookup" query
>---
>
>Whenever a new row is displayed (via Query, Next or Previous calls), or
>whenever an entry or modification is made to the form's Affiliation 
field, I
>wish to automatically populate the form's (display only) CompanyName 
field
>with the results of the following SQL query:
>
>select Org_Name from Business where Bid = "displayed affiliation field>"
>
>How can this best be accomplished in Revolution?

Since you store the PID of the company in the client's record, you just do 
another 
query on that ID and retrieve the company name which you just add to the 
display
field.


>Problem Two: Placing the current time into a field
>--
>
>Just prior to an insert or update of any row, I wish to populate the 
form's
>Last_update field with a datetime value reflecting the current date and 
time
>(ie. "2003-11-14 13:17:39.250").
>
>How can this best be implemented?

put the time into fld "currenttime" -- or did i misunderstand the 
question? 

>Problem Three: Forcing All Caps
>
>
>To insure data integrity, my application design requires entry of data 
into
>the "Pid" field in UPPER CASE format.
>
>While I have been successful in limiting the length of the data entered 
in
>this field to ten (10) characters or less, my attempts to force
>CAPITALIZATION have to date failed.  The following script is currently
>applied to the field:

For the following message handlers:
on closefield
on exitfield
on enterinfield
on tabinfield
on returninfield
 
  put toUpper(me) into me

This is just the quickest way not to perturb the user and give him the 
right
answer after. 

You can also do that when you save the info to the database naturally...

>
>Melvin Cox




Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does 
not accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the intended 
recipient, any disclosure, copying, distribution or any action taken or omitted to be 
taken in reliance on it, is prohibited and may be unlawful. Any views expressed in 
this e-mail are those of the individual sender, except where the sender specifically 
states them to be the views of Clearstream International or of any of its affiliates 
or subsidiaries.

END OF DISCLAIMER
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Database - functionality for front end application

2003-11-17 Thread Melvin Cox
I am evaluating Runtime Revolution, but have been growing increasingly 
frustrated in attempting to build the shell for a front end database 
application.

Although I have been successful in connecting to a local database via ODBC, 
I have run into numerous difficulties implementing certain on-form 
functionalities.

The data entry/query form that I am attempting to build accesses information 
from two primary tables: People and Business. The schemas of these tables 
are as follows:

===

People Table
-
Pid  
FirstName
LastName
Affiliation
CompanyName < a display only field>
Last_update
Business Table
---
Bid 
Org_Name
Address
City
State
Zip
Last_update
===

Problem One: Posting of results from "lookup" query
---
Whenever a new row is displayed (via Query, Next or Previous calls), or 
whenever an entry or modification is made to the form's Affiliation field, I 
wish to automatically populate the form's (display only) CompanyName field 
with the results of the following SQL query:

select Org_Name from Business where Bid = ""

How can this best be accomplished in Revolution?

[Note: I do not understand the process by which the currently value of a 
field is captured and used as a variable within a SQL query].

Problem Two: Placing the current time into a field
--
Just prior to an insert or update of any row, I wish to populate the form's 
Last_update field with a datetime value reflecting the current date and time 
(ie. "2003-11-14 13:17:39.250").

How can this best be implemented?

Problem Three: Forcing All Caps

To insure data integrity, my application design requires entry of data into 
the "Pid" field in UPPER CASE format.

While I have been successful in limiting the length of the data entered in 
this field to ten (10) characters or less, my attempts to force 
CAPITALIZATION have to date failed.  The following script is currently 
applied to the field:

===

on keyDown theKey
 if the length of me >= 10 then beep
 else pass keyDown
end keyDown
===

Any assistance in these areas is most sincerely appreciated.



Melvin Cox
BCM Productions
_
Send a QuickGreet with MSN Messenger 
http://www.msnmessenger-download.com/tracking/cdp_games

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Help Please

2003-11-17 Thread Steve Laming
Thanks All

That problem is now OK, I am writing a guitar scale program which needs to 
reference strings and frets,  so I have now prefixed the names with "FR" 
and it works.

I will eventually be looking a implementing some Midi output, so I may well 
be back for some more assistance!.

Thank you all very much

Steve

At 20:31 16/11/03 -0800, you wrote:

--- Klaus Major <[EMAIL PROTECTED]> wrote:

> Avoid naming an object with a number. Doing so
> may cause Revolution to
> become confused by object references that
> specify that number, since
> they
> might be referring to the object by name or to
> a different object by
> number.."
>
> Well... ;-)
>
> If you really have to rely on numbers for an
> objects name, i would
> suggest to
> add a little prefix like "gr" for graphic ->
> image "gr605"...
>
> You get the picture...
if you need buttons to show a number, then
 works
i have a MIDI keyboard set up this way.
middle C is "b60", labeled "60".
Erik

=
[EMAIL PROTECTED]http://www.erikhansen.org
__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


open process and paths...

2003-11-17 Thread Chipp Walters
Hi all,

Just wanted to share some hard-earned information (you all know what that
means;-) about the 'open process' command in XP. It turns out you can set
the default folder to a process file, then 'open process' the file. This
means you don't have to 'cd' to the directory of the process in a batch file
before launching it. But, if you happen to have the same file in the
standalone folder (or REV folder if you're authoring), it will instead
launch *that* file as a process.

So, IOW, the path structure for opening a process (as far as I can tell) is:

1) looks first in the standalone (or RR folder if authoring)
2) looks second in the defaultFolder

-Chipp


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Help with AppleEvents

2003-11-17 Thread Ken Ray
Paul,

> The "send to program" feature of Revolution DOES NOT WORK! So don't 
> waste a day as I did trying. Perhaps RunRev should either fix the 
> problem or modify the dictionary to clarify the problem and provide 
> the workaround below.

You should add that to Bugzilla if it's not already there (or if Jan
didn't add it already). This is something that should be fixed in the
next build, IMHO, and I'd put a couple of votes towards getting it
fixed. 

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


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Help with AppleEvents

2003-11-17 Thread Paul Stary
Here is the definitive workaround for sending AppleEvents to a remote 
Macintosh.

The "send to program" feature of Revolution DOES NOT WORK! So don't 
waste a day as I did trying. Perhaps RunRev should either fix the 
problem or modify the dictionary to clarify the problem and provide 
the workaround below.

In the example below, I have hard coded the application and machine 
into the "sendAE" handler, but this could be feed into the handler 
via two additional parameters. You can get the application name and 
machine name by executing...

do "choose application" as AppleScript

Assume you have the following script in a button whose function is to 
send a doScript AppleEvent, passing "your data" to an application 
named "Target Program" on a remote machine named "Remote Mac".

on mouseUp
 sendAE "misc", "dosc", "your data"
end mouseUp
Then the following script resides in the button's card or stack script:

on sendAE pAEclass, pAEid, pAEdata

 put "application" && quote & "Target Program" & quote && "of machine" && \
 quote & "Remote Mac" & quote into tProgram
 put "tell" && tProgram & return into tAScript
 put numToChar(199) & "event" && pAEclass & pAEid \
 & numToChar(200) && quote & pAEdata & quote && "& return" & \
 return after tAScript
 put "end tell" & return after tAScript
 do tAScript as AppleScript
 return the result
end sendAE

This exactly follows the example put forth by Jan Schenkel except for 
the addition of quote constants around the data portion, i.e., quote 
& pAEdata & quote (see original text from Jan below for more details).

Big thanks to Jan and others who contributed to this very solid 
workaround and saved the day for me.

Paul Stary

At 6:47 AM -0700 11/15/03, Rob Cozens quoted Jan Schenkel:

It took me a while to test various combinations, but
here are my conclusions for RunRev 1.1.1:
1) 'send to program ... with reply'
- problem: results in an error upon execution
- solution: omit the optional 'with result' clause
- note: 'without reply' doesn't result in an error
2) 'answer program' doesn't work in MC/RR
- known issue, due to limitations in the Carbon API
- solution: do "choose application" as AppleScript
- note: would still be handy if it were included
2) 'send to program' on the same machine works, but
'send to program' where the program is on a remote
machine doesn't work
- i tried it on a variation of machines, but the error
is always "no such program"
- solution:  AppleScript to the rescue ! there is a
little-known method of sending 'raw' apple events from
within AppleScript, so the trick is to wrap it as an
AppleScript of the form:
  tell application "Foo" of machine "Bar"
<> "Hello there!" & return
  end tell
in which << and >> are to be replacd by their
single-char equivalents for MacOS (ASCII- 199 and
200).
So here's a sample code that works :
  on SelectProgramAndSendAE pAEclass, pAEid, pAEdata
do "choose application" as AppleScript
put the result into tResult
if tResult is "execution error" then
  return "Cancel"
else put tResult into tProgram
-- looks like: application "Foo" of machine "Bar"
put "tell" && tProgram & return into tAScript
put numToChar(199) & "event" && pAEclass & pAEid \
  & numToChar(200) && pAEdata && "& return" & \
  return after tAScript
put "end tell" & return after tAScript
do tAScript as AppleScript
return the result
  end SelectProgramAndSendAE
- note: this was very messy to debug, and I crashed my
iBook several times before I got it right.
- warning: if the application on the other side is a
RunRev-built one, make sure you 'pass' any AppleEvent
message that you don't handle with a 'reply', or you
risk freezing up the client-side computer.
I also tested the same code with pre-beta 4, with
equal results. So in conclusion: yes, this is a
definite bug, and I don't like the workaround, but at
least there is one.
Scott or Kevin, could this be fixed for MetaCard 2.5 /
RunRev 2.0?
Jan Schenkel.
--

Paul Stary
Audio-Video Engineering
Voice Mail: (949) 646-8877
Fax: (949) 515-3640
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to add a field to a stack of 50 cards

2003-11-17 Thread Geoff Canyon
You can do this with Navigator (disclaimer -- it's my product, but it 
is included in the Rev download).

First turn the field into a group: select it and press command-g.
In Navigator, create  a bookmark for the group: select Bookmark on the 
Actions menu.
Switch to the card listing: select Card List on the card menu.
Select the bookmark of the group, and all the cards you want the group 
to be on.
Click and hold on the group to drag it, and drag it anywhere into the 
list of cards.

The group (with the field) should be automatically placed onto all of 
the cards you selected.

regards,

Geoff Canyon
[EMAIL PROTECTED]
On Nov 15, 2003, at 6:28 PM, Russell wrote:

I was playing around and after creating several cards decided to 
create a field to hold the card number.  Then thought about the 
problem that if you wanted to add this field to say 50 cards in your 
stack do you have to add it to all 50 or is there some background 
slight of code that can do it?
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution