Re: How do I make standalone database save it's data?

2002-11-10 Thread Jan Schenkel
--- [EMAIL PROTECTED] wrote:
 I am new to Revolution.  I managed to create a
 simple database application to 
 keep a database of videotapes at a local tv station
 where I work.  Everything 
 works just like I want except for one small
 detail...I can't figure out how 
 to save the updated data that I've added to the
 database when it closes.
 
 I'm from a novice hypercard background, and I'm used
 to Hypercard 
 automatically saving changes as they are made, and
 just assumed Revolution 
 would do the same thing. After researching the
 documentation, I found the 
 part that says that a standalone cannot save changes
 to itself, and that the 
 data should be in a seperate stack or file.
 Unfortunately, I can't figure out 
 how to do this from the documentation.
 
 I wrote a script into the stack that comes up when
 the window is closed and 
 ask if you want to save the changes, I just can't
 figure out how to actually 
 save the changes so that when the application is run
 again, the changes will 
 be there.
 
 Any help, or locations of tutorials that would help
 me understand this would 
 be greatly appreciated.
 By the way, the stack and standalone was built in
 Mac OS-X using the trial 
 version.
 
 Thanks,
 Jim Williams


Hi Jim,

And welcome on board of the Revolution fleet :-)

Steer the transcript documentation to the 'save'
command and check out its definition.

You should note that at the bottom, there's a tiny
disclaimer that you cannot save data into a
stand-alone stack.

What this means is that when building your stand-alone
application, you will have to put the substacks in a
separate folder.

So basically, you can't write 'self-modifying'
executables ; your data stacks will have to remain
separate.

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!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: XML-RPC Support?

2002-11-10 Thread Jan Schenkel
--- Dan Shafer [EMAIL PROTECTED] wrote:
 Has anyone developed any libraries or tools for
 doing XML-RPC from RR?
 

Hi Dan,

RunRev 2.0 sports a great SOAP-toolbox, if that's what
you're looking for. [Thanks for that gem, Dave]
If it's a different protocol, I'm sure it's not too
hard to build, and with the right specs could be setup
in a matter of weeks.
As I'm working on something in that field, I'd be
happy to exchange information off-list.

Best regards,

Jan Schenkel.

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

__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



RE: Constraining the pointer within a group

2002-11-10 Thread Gary Rathbone
I've had a similar problem with 'Adult returners', who, in the act of
clicking, moved the mouse outside the boundary of the button. Depending on
the layout of the screen constraining the mouse might not solve the problem
as the 'mousedown' may be in one button area and the 'mouseup' (after
moving) occur in another.

For our 'tests' we scripted the buttons to respond on a 'Mousedown'? This
means any movement after the 'click' is irrelevant.

Hope this helped.

Regards

Gary Rathbone BSc MBCS
Chartered Information Systems Practitioner


-

I have been working on assessment tools for people with learning
disabilities.  Sometimes they also have motor skills problems.

I ask them to rate something using a scale made up of adjacent buttons which
behave like radio buttons, but offers a bigger target.  Sometimes the act of
clicking by users nudges the pointer off the button group so the mouseup is
not registered.  Since I am timing responses, this is a real pain, to say
nothing of the frustration caused to the user.

I am thinking of trying to constrain the pointer so it cannot move out of
the
rating scale area until a rating has been made.  Before I start to
experiment, has anyone any suggestions or advice?

Thanks


Best wishes,

David Glasgow
Home/ forensic assessments -- A HREF=http://members.aol.com/dvglasgow/;
DVGlasgow /A
Courses -- A HREF=http://www.i-Psych.co.uk;i-Psych/A
___
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: How do I make standalone database save it's data?

2002-11-10 Thread Jimw1956

In a message dated 11/10/02 3:58:03 AM, [EMAIL PROTECTED] writes:

 What this means is that when building your stand-alone
application, you will have to put the substacks in a
separate folder.

So basically, you can't write 'self-modifying'
executables ; your data stacks will have to remain
separate. 

Thanks..and yes I did read that section and that small (but troublesome) 
disclaimer line.
Basically my whole app is written as a main stack.  I tried writing another 
small app to just call the main stack, which I moved into the small app as 
a substack, compiled and saved to seperate stacks as you mentioned, but that 
did not work either. I have a few experiments to try though, which might make 
that work.

Thanks for the welcome, and the suggestion.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Player Object problem

2002-11-10 Thread Barry Levine
I have a few Player Objects in my stack that contain QT movies. I have 
no problem triggering the playing of the movies at the appropriate 
times. However, I do have a problem getting the movies to maintain the 
display of their last frames or even to set them to the last frames via 
Transcript. This occurs when I leave the current card, move to another, 
and then return. The movie's currentTime resets to 0. Okay, I can 
understand that might happen so I'll add some code to my stack script. 
Here is my code:

on doThis
	go next card
	-- (then do something there)
	go prev card
	-- (now we're back on the card where the movie is)
	set the currentTime of player player1 to the duration of player 
player1
end doThis

The problem is that the currentTime remains at 0 when I test this using 
the messageBox.

However, if I add a button (named setMaxDuration) on the card with 
the code:

on mouseUp
	set the currentTime of player player1 to the duration of player 
player1
end mouseUp

...that works! So I have to change my stack code to:

on doThis
	go next card
	-- (then do something there)
	go prev card
	-- (now we're back on the card where the movie is)
	send mouseUp to button setMaxDuration
end doThis

Have I found a bug (or found one that has already been identified 
months ago)? The bootm line is that I'd like to have the card remain 
exactly as I left it when I return to it. It seems that the player 
objects do not have persistency. Am I not setting the various options 
correctly?

BTW - The lista who recommended setting the UI to Mac (away from 
Appearance Manager) if running in Jaguar was quite correct. Rev 1.1.1 
has stopped crashing as long as I set this properly immediately upon 
launch.

Thanks,
Barry

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


RE: RTF Reader in Rev

2002-11-10 Thread David Wilkinson
Roger

Just a suggestion:

There is an excellent  open source Word compatible WP - Abiword 
(http:\\www.abisource.com)  - reads, writes and prints Word Docs  
runs on 
GNU/Linux, BSD, Solaris (2.6, 7,8,9), AIX, HP/UX (10.20, 11.0), 
OSF/1, Tru64, Mac OS X,QNX,BeOS oh and I nearly forgot Windows.

Perhaps Word will not be the de facto corporate standard for ever? 
Especially, since the file format does not remain the same!



On Saturday 09 November 2002 5:01 pm,  [EMAIL PROTECTED] 
wrote:

 That sounds great, but let's take it a step further. Where I work,
 MS-Word (.doc) is a corporate standard for memos, etc. sent via
 e-mail. We also have several unix (not linux) based machines that
 people use. They have to get PC/Mac users to print these memos
 because there are no decent MS-word viewers available for *nix
 machines. Rev could change this. How about adding a new docText
 property as well? This has been a *nix desired functionality for
 s long.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Player Object problem

2002-11-10 Thread Barry Levine
I have a few Player Objects in my stack that contain QT movies. I have 
no problem triggering the playing of the movies at the appropriate 
times. However, I do have a problem getting the movies to maintain the 
display of their last frames or even to set them to the last frames via 
Transcript. This occurs when I leave the current card, move to another, 
and then return. The movie's currentTime resets to 0. Okay, I can 
understand that might happen so I'll add some code to my stack script. 
Here is my code:

on doThis
	go next card
	-- (then do something there)
	go prev card
	-- (now we're back on the card where the movie is)
	set the currentTime of player player1 to the duration of player 
player1
end doThis

The problem is that the currentTime remains at 0 when I test this using 
the messageBox.

However, if I add a button (named setMaxDuration) on the card with 
the code:

on mouseUp
	set the currentTime of player player1 to the duration of player 
player1
end mouseUp

...that works! So I have to change my stack code to:

on doThis
	go next card
	-- (then do something there)
	go prev card
	-- (now we're back on the card where the movie is)
	send mouseUp to button setMaxDuration
end doThis

Have I found a bug (or found one that has already been identified 
months ago)? The bootm line is that I'd like to have the card remain 
exactly as I left it when I return to it. It seems that the player 
objects do not have persistency. Am I not setting the various options 
correctly?

BTW - The lista who recommended setting the UI to Mac (away from 
Appearance Manager) if running in Jaguar was quite correct. Rev 1.1.1 
has stopped crashing as long as I set this properly immediately upon 
launch.

Thanks,
Barry

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


Re: How do I make standalone database save it's data?

2002-11-10 Thread Mark Swindell
on 11/10/02 6:35 AM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:

 Thanks..and yes I did read that section and that small (but troublesome)
 disclaimer line.
 Basically my whole app is written as a main stack.  I tried writing another
 small app to just call the main stack, which I moved into the small app as
 a substack, compiled and saved to seperate stacks as you mentioned, but that
 did not work either. I have a few experiments to try though, which might make
 that work.
 
 Thanks for the welcome, and the suggestion.

In a similar situation I had (also new to Revolution) Tech support suggested
to me that I simply  make my main stack the splash screen.  Perhaps that
will work for you, as well.

Mark

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



Re: Menu problem

2002-11-10 Thread Robert Presender

On Sunday, November 10, 2002, at 08:39  AM, Richard Gaskin wrote:


Robert Presender wrote:


I have a menubar with several btn menus as pulldown:  one of the menus
has several items:
New
Trans
-
Sort
-

I would like to have the Sort item to be cascading(?)


Put this in your menu button contents:

New
Trans
-
Sort
tabby Date
tabby Event



Richard .. thank you for your input.  Your suggestion worked but I 
couldn't get it to look like a cascade of Sort.

Since asking for help, I continued (again early this AM) to experiment 
(couldn't find any documentation on how to use the manager) with Menu 
Manager.  I finally was able to get the results I wanted.

The key was a click on the icon (make the selected menu item into a 
submenu item) after entering a new item name after Sort.   Sort then 
looked like a cascade.

Thanks again for your suggestion.

Regards ...  Bob

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


Re: Constraining the pointer within a group

2002-11-10 Thread Ken Ray
The other possibility is that you'll get a mouseRelease when the mouse comes
up outside the hit area of the button. You could check the location of the
mouse at that time, and if it's within a few pixels of the original target,
you could run your hit code anyway..

Just my $0.03*,

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

* $0.02 adjusted for inflation ;-)

- Original Message -
From: Gary Rathbone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 10, 2002 6:45 AM
Subject: RE: Constraining the pointer within a group


 I've had a similar problem with 'Adult returners', who, in the act of
 clicking, moved the mouse outside the boundary of the button. Depending on
 the layout of the screen constraining the mouse might not solve the
problem
 as the 'mousedown' may be in one button area and the 'mouseup' (after
 moving) occur in another.

 For our 'tests' we scripted the buttons to respond on a 'Mousedown'? This
 means any movement after the 'click' is irrelevant.

 Hope this helped.

 Regards

 Gary Rathbone BSc MBCS
 Chartered Information Systems Practitioner

 --
--
 -

 I have been working on assessment tools for people with learning
 disabilities.  Sometimes they also have motor skills problems.

 I ask them to rate something using a scale made up of adjacent buttons
which
 behave like radio buttons, but offers a bigger target.  Sometimes the act
of
 clicking by users nudges the pointer off the button group so the mouseup
is
 not registered.  Since I am timing responses, this is a real pain, to say
 nothing of the frustration caused to the user.

 I am thinking of trying to constrain the pointer so it cannot move out of
 the
 rating scale area until a rating has been made.  Before I start to
 experiment, has anyone any suggestions or advice?

 Thanks


 Best wishes,

 David Glasgow
 Home/ forensic assessments -- A
HREF=http://members.aol.com/dvglasgow/;
 DVGlasgow /A
 Courses -- A HREF=http://www.i-Psych.co.uk;i-Psych/A
 ___
 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



Re: Player Object problem

2002-11-10 Thread Ken Ray
The Player object is a little finicky because it is Quicktime that is
managing it (for the most part), not Rev. I have found that if you use
send to allow the current handler to finish, you get better results.
You've done this yourself with a button and a mouseUp handler, but you could
do the same thing this way:

  send ResetTime to this card in 10 milliseconds
  -- gives time for the doThis handler to complete

  on ResetTime
set the currentTime of player player1 to the duration of player
player1
  end ResetTime

 BTW - The lista who recommended setting the UI to Mac (away from
 Appearance Manager) if running in Jaguar was quite correct. Rev 1.1.1
 has stopped crashing as long as I set this properly immediately upon
 launch.

You won't have to do this with Rev 2.0, BTW, so I suggest you upgrade as
soon as it's available. :-)

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

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



Re: Sockets

2002-11-10 Thread FreakyPhoenix

I don't believe that is possible. Your computer just won't find your own IP.

FreakyPhoenix

From: Manolo Garrido <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: <[EMAIL PROTECTED]>
Subject: Sockets 
Date: Thu, 07 Nov 2002 17:01:00 +0100 
 
 
Does anyone knows if it's possible to develop a synchronous TCP/IP 
communication with Revolution that works when client and server applications 
runs on a single machine over a Mac OS 9? 
 
Thanks 
Manuel 
 
___ 
use-revolution mailing list 
[EMAIL PROTECTED] 
http://lists.runrev.com/mailman/listinfo/use-revolution 
MSN 8 helps ELIMINATE E-MAIL VIRUSES.  Get 2 months FREE*.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Hide A File From A Script

2002-11-10 Thread Ken Ray
You can hide a file on disk in OS X by putting a . in front of the file
name:

on HideAFile pFilePath
  put pFilePath into tDestPath
  set the itemDel to /
  put last item of pFilePath into tFileName
  put .  tFileName into last item of tDestPath
  rename pFilePath to tDestPath
end HideAFile

In OS 9, you need to set the invisible bit, which I think would require an
external.

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



- Original Message -
From: Bill Lynn [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 10, 2002 11:24 AM
Subject: Re: Hide A File From A Script


  I'm looking for a way to hide a text file on disk from a script. Can
this be
  done using Transcript? If not, is it possible to do with AppleScript?

  Are we talking OS X, OS 9 or both?

 Good point, Ken. Both.

 Cheers... Bill Lynn



 ___
 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: Sockets

2002-11-10 Thread Gary Rathbone
Perhaps a slightly different slant but I beleive the IP address of any
computer is 127.0.0.1 as well as the given IP number (either statically or
dynamically assigned). This is what I use in development (for Rev,
Dreamweaver, IIS etc) and it works fine.

I guess it depends on what your trying to do, if you can expand a little
then more suggestions may be offered. Personally, I use multiple Rev stacks
on the same IP number but different HTTP ports. This works fine for what I
want to do.

eg Rev (server) loads a web page to Explorer (client) on 127.0.0.1:8181 and
reply is then captured by Rev listening on this port. In this case there's
no reason why the client can't be Rev.

Regards

Gary Rathbone BSc MBCS
Chartered Information Systems Practitioner


-Original Message-
From: [EMAIL PROTECTED]
[mailto:use-revolution-admin;lists.runrev.com]On Behalf Of FreakyPhoenix 
Sent: 10 November 2002 19:30
To: [EMAIL PROTECTED]
Subject: Re: Sockets


I don't believe that is possible. Your computer just won't find your own IP.

FreakyPhoenix


From: Manolo Garrido
Reply-To: [EMAIL PROTECTED]
To:
Subject: Sockets
Date: Thu, 07 Nov 2002 17:01:00 +0100


Does anyone knows if it's possible to develop a synchronous TCP/IP
communication with Revolution that works when client and server
applications
runs on a single machine over a Mac OS 9?

Thanks
Manuel

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



MSN 8 helps ELIMINATE E-MAIL VIRUSES. Get 2 months FREE*.
___ 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: Sockets

2002-11-10 Thread Ken Ray
Actually, Freaky, but there are a number of ways you can get it - I have
some examples that get the MAC address at my site for OS 9, X and Win32, but
you can adjust them slightly to get the IP address of the current machine.
You can see it at:

  http://www.sonsothunder.com/devres/revolution/revolution.htm?_env001

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

- Original Message -
From: FreakyPhoenix  [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 10, 2002 1:29 PM
Subject: Re: Sockets


 I don't believe that is possible. Your computer just won't find your own
IP.



 FreakyPhoenix



 From: Manolo Garrido
 Reply-To: [EMAIL PROTECTED]
 To:
 Subject: Sockets
 Date: Thu, 07 Nov 2002 17:01:00 +0100
 
 
 Does anyone knows if it's possible to develop a synchronous TCP/IP
 communication with Revolution that works when client and server
applications
 runs on a single machine over a Mac OS 9?
 
 Thanks
 Manuel
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution


 --
--
 MSN 8 helps ELIMINATE E-MAIL VIRUSES. Get 2 months FREE*.
___ 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



Global /local variables

2002-11-10 Thread Andre Rombauts
I do not understand the real meaning of global and local variables in
Revolution... The info about declaring variables outside a handler seems to
be equal in both cases... :-(

From the Œlocal¹ entry in Revolution Help system:
You can also use the local command in a script, outside any handlers in the
script. These local variables can be used by any handler in that script, without
needing to be declared in the handler itself, and their values are maintained
from handler to handler

From the Œglobal¹ entry in Revolution Help system:

You can also place a global command in a script, but outside any handlers in
the script. These globals can be used by any handler in that script, without
needing to be declared in the handler itself.

André

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



URL lib

2002-11-10 Thread Andre Rombauts
Title: URL lib



When using a command such as:

delete URL ftp://me:[EMAIL PROTECTED]/trash/

Can a user read the username and password inside the standalone file?...

Andr





Re: Building serious scientific applications with RunRev...

2002-11-10 Thread Sarah
I have developed applications to communicate with various scientific 
instruments and chart the results. As someone mentioned, the speed of 
execution may be slightly reduced, but the speed of development and 
ease of modification makes a very powerful argument for Revolution. I 
have been in the circumstance of needing to change control algorithms 
in the middle of an experiment and being able to edit the relevant 
stack and have the new algorithm running within minutes, without even 
shutting down the program.

Ken Ray's web site has some interesting tips on manipulating image data 
and there is a good demonstration of using Charts in the User 
Contributions area of the Rev web site. For manipulating matrices etc, 
while the code may turn out longer than it's C equivalents, I would bet 
that it would be much easier to read  debug.

Cheers,
Sarah


On Friday, November 8, 2002, at 11:52  pm, Peter Lundh wrote:

Hi all-

This autumn I started my PhD on Colour Imaging Science at the Derby
University, UK. A requirement at the institute is knowledge of MatLab 
and
C - MatLab for modeling and C for compiling applications. MatLab I 
know,
so that's ok - but now I have to learn C on top of all the other 
things I
have to do.

So my question is the following: Could Revolution (since I'm already
familiar with it and like it!) be a substitute for C when developing
scientific applications? Typical needs would be the ability to read,
manipulate, display and output different types of image data, 
Possibility to
compute Matrix, Fourier and Polynomial algorithms etc.

I'm also curious to know if any other list members have developed 
scientific
applications with RunRev, and in particular - since it's in my line of
interest - Imaging, Psychophysical, or Colour related applications.

-Peter
--
Peter Lundh
E: [EMAIL PROTECTED]
UK

___
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: Global /local variables

2002-11-10 Thread Sarah
Imagine you have a button, and in it's script you have several 
handlers: mouseUp, processData, doMoreStuff etc. If you put a local 
variable in the button's script but OUTSIDE any of the handlers - say 
on the first line - then all of these handlers can access the data 
stored in that variable. However no other scripts e.g. card script, 
stack script, another button's script - can access that variable. If 
they declare a local variable even using the same variable name, it 
will refer to a new variable.

If instead of local, you declared that variable as global, then any 
handler in any script could access it, either by declaring it inside 
the handler or in the script but outside the handler.

Cheers,
Sarah



On Monday, November 11, 2002, at 08:06  am, Andre Rombauts wrote:

I do not understand the real meaning of global and local variables in
Revolution... The info about declaring variables outside a handler 
seems to
be equal in both cases... :-(

From the Œlocal¹ entry in Revolution Help system:
You can also use the local command in a script, outside any handlers 
in the
script. These local variables can be used by any handler in that 
script, without
needing to be declared in the handler itself, and their values are 
maintained
from handler to handler

From the Œglobal¹ entry in Revolution Help system:



You can also place a global command in a script, but outside any 
handlers in
the script. These globals can be used by any handler in that script, 
without
needing to be declared in the handler itself.

André

___
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: Global /local variables

2002-11-10 Thread Ken Ray
Andre,

For global commands, you have two choices: Inside handlers or outside. If
you declare a global inside of a handler, each handler that wants to access
that global needs to declare that same variable to get access to it. For
example:

on DoStuff1
  global gVar
  put 10 into gVar
end DoStuff 1

on DoStuff2
  put gVar
end DoStuff2

--  Puts nothing, since DoStuff2 doesn't know about gVar. If the handler
was:

on DoStuff2
  global gVar
  put gVar
end DoStuf2

--  Puts 10 since it knows about gVar by declaring global gVar

However, if you put it *outside* handlers in the script, all handlers
already know about the global, so you could do this:

global gVar

on DoStuff1
  put 10 into gVar
end DoStuff1

on DoStuff2
  put gVar
end DoStuff 2

--  Puts 10.

Since global variables are global, you can access that same gVar variable
in another script entirely through one of the two methods above. So if in
another script you had:

on DoStuff3
  global gVar
  put gVar
end DoStuff3

-- Puts 10.

Locals are the same as globals, except that they cannot have a scope outside
of a single script. If you declare them inside of a handler, they apply only
to that handler. If you declare them inside of a script, they are available
to any handler in that script only. Other scripts don't see them.

Hope this helps,

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


- Original Message -
From: Andre Rombauts [EMAIL PROTECTED]
To: revolution [EMAIL PROTECTED]
Sent: Sunday, November 10, 2002 4:01 PM
Subject: Global /local variables


 I do not understand the real meaning of global and local variables in
 Revolution... The info about declaring variables outside a handler seems
to
 be equal in both cases... :-(

 From the Olocal¹ entry in Revolution Help system:
 You can also use the local command in a script, outside any handlers in
the
 script. These local variables can be used by any handler in that script,
without
 needing to be declared in the handler itself, and their values are
maintained
 from handler to handler

 From the Oglobal¹ entry in Revolution Help system:

 You can also place a global command in a script, but outside any handlers
in
 the script. These globals can be used by any handler in that script,
without
 needing to be declared in the handler itself.

 André

 ___
 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: Hiding A File From A Script

2002-11-10 Thread Bill Lynn
 You can hide a file on disk in OS X by putting a . in front of the file
 name:

Thanks, Ken.

Cheers... Bill Lynn



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



Edit on-the-fly

2002-11-10 Thread Kurt Kaufman
Sarah wrote:
...I have been in the circumstance of needing to change control 
algorithms
in the middle of an experiment and being able to edit the relevant
stack and have the new algorithm running within minutes, without even
shutting down the program...

That's pretty amazing, when you think about it (well, when I think 
about it, anyway). I wonder if there are any currently maintained 
programming tools other than MC/RR and SC that are capable of this.

-KK

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


Re: How do I make standalone database save it's data?

2002-11-10 Thread Jimw1956

In a message dated 11/10/02 11:02:13 AM, [EMAIL PROTECTED] writes:

 n a similar situation I had (also new to Revolution) Tech support suggested
to me that I simply  make my main stack the splash screen.  Perhaps that
will work for you, as well.
 

A...that is exactly what I did and it did work, after I fixed an 
incorrect stack reference in my save code. Thanks again.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



complex text manipulation

2002-11-10 Thread yves COPPE
Hi,


I have a text fld named src.
the locktext is false

in a script I'd like to do

1) find a line with a text
put lineOffset(myString,fld src) into tLine
if tLine  0 then
set the textStyle of line tLine of fld src to link
end if



2) now I'd like to click on this line to show a picture in another 
stack as modal

so the script of the fld should be something like :

on mouseDown
if the textStyle of the clickLine is link then
   if the value of the clickLine is my last holliday then
  go to cd x of stack anotherStack as modal
   end if
end if
end mouseDown


Now, the fld src must have his locktext turned to false

Is it possible ?
--
Greetings.

Yves COPPE

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