Re: Can a Revolution standalone application save data?

2005-03-20 Thread Ken Ray
On 3/19/05 7:17 PM, "Mark Swindell" <[EMAIL PROTECTED]> wrote:

> You can save information in a standalone to a substack of the
> standalone, just not to the mainstack.  For example, you could make
> make your opening splash screen  your main stack, and have any number
> of substacks affiliated with that main stack.  This is how you save
> information without writing it to the mainstack, which can't be done,
> you're right.

Uh, Mark, I don't think that's true. You can save data in other stack files
that are on disk, but if the substack is part of the standalone, I don't
think you can save the data because this would change the standalone and
that's a no-no.

Steve, I would recommend either saving your data to another stack that
exists as a file on disk, or save the data to a text file or database. This
way it becomes portable. Either way, you won't have to mess with the stack
structure, just the code that reads/writes data.

HTH,

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


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Unix engines

2005-03-20 Thread Kevin Miller
Hi Everyone,

There have been some questions about when we update the Unix engines.  Most
of our Unix users tend to upgrade more slowly, running server systems or
other mission-critical installations.  Its quite common for there to be a
multi-year gap for these users in deciding to upgrade.  The OS upgrades on
these systems are also slower and Revolution tends to become out of date
less quickly.  A handful of you do need to upgrade more frequently, but the
numbers that do this are truly small.  As such we do have to prioritize
carefully the amount of time we spend on this activity.

We will next update the Unix engines in July this year.  In the mean time,
the existing Unix engines are available from support, and you should
continue to use those.

Should you have any questions or concerns regarding this policy, please
contact [EMAIL PROTECTED] directly.

Kind regards,

Kevin

Kevin Miller ~ [EMAIL PROTECTED] ~ http://www.runrev.com/
Runtime Revolution - User-Centric Development Tools

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


How do I turn off autostart?

2005-03-20 Thread Len Morgan
It seems that when ever I load a stack into the IDE to work on it, it 
runs the preOpenStack handler but I would like to turn off that feature 
while I'm developing (so I don't accidently code an infinite loop in the 
handler).  It would be ok if going from edit to run had this behavior.  
Is there possibly something like MS Access has where if you hold down 
the shift key while opening a database it won't run the autoexec macro?

Thanks!
len morgan
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Stack saving clarification

2005-03-20 Thread Len Morgan
I read somewhere here in the last couple of weeks that if you use a card 
in a stack for preferences or something like that, you can't have that 
stack INSIDE of a standalone?  Is that true?  If that is so, why would I 
want to use cards/stacks to hold information that is subject to change?  
What suggestion would you have if I would like the user to be able to 
point to a database or particular server (which I don't know when I 
build the standalone), or change their background colors or something 
similar?

Would the best approach (and I realize that "best" is a loaded word) be 
to have an external text file that gets "imported" into the card that 
has the preferences and then saved back to if their are any changes or 
have a stack that is external to the exe?  Or something else?  It seems 
to me that if we can save changes in the stand-alone, we should change 
it to "stand in a small group"  :-)

len morgan
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Stack saving clarification

2005-03-20 Thread Len Morgan
WOW!  I sent the first e-mail with this question and at the same time 
the digest version came in WITH AN ANSWER BEFORE I THOUGHT OF THE 
QUESTION! How great is that?!  You not only provide answers, you 
anticipate my questions before I do

Len Morgan
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Can a Revolution standalone application save data?

2005-03-20 Thread T. R. Ponn
Steve,
I would save it to a text or binary file upon quitting.  Then either 
automatically open it during startup (ie cfg file)...or provide the user 
with a "open file" scheme in your app.  You can tamper-proof (to a good 
degree) by building an encode/decode function with a checksum.  All 
fairly easy to accomplish.

You can also generate many checksums...each one for a different section 
of your file...this will drive hackers nuts. :-)

Best Regards,
Tim Ponn

[EMAIL PROTECTED] wrote:
Please excuse a beginner's question:   I am working with Revolution on a 
Macintosh and would like to create an application that can be used on Windows, one 
in which the user puts some information into a field.   I would like enable 
the user to save that information when the program closes.   Is this possible 
in Revolution?   I get the impression that the only way to save information is 
to use a stack that has not been not converted to a standalone application.   
But if it is not converted to standalone, how can I get the program over to 
Windows? And how can I avoid tampering with the program structure by a user who 
is using the stack on the Macintosh?   Thanks very much.
Steve Goldberg
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

 


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How do I turn off autostart?

2005-03-20 Thread T. R. Ponn
Len,
This should do it:
on preOpenStack
 if the environment<>"development" then
-- do the stuff here that's getting you in trouble when you're in 
the IDE
 else
-- do stuff here that's "safe" for IDE or standalone
 end if
end preOpenStack

Best Regards,
Tim Ponn

Len Morgan wrote:
It seems that when ever I load a stack into the IDE to work on it, it 
runs the preOpenStack handler but I would like to turn off that 
feature while I'm developing (so I don't accidently code an infinite 
loop in the handler).  It would be ok if going from edit to run had 
this behavior.  Is there possibly something like MS Access has where 
if you hold down the shift key while opening a database it won't run 
the autoexec macro?

Thanks!
len morgan
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How do I turn off autostart?

2005-03-20 Thread Klaus Major
Hi Len,
It seems that when ever I load a stack into the IDE to work on it, it 
runs the preOpenStack handler but I would like to turn off that 
feature while I'm developing (so I don't accidently code an infinite 
loop in the handler).  It would be ok if going from edit to run had 
this behavior.  Is there possibly something like MS Access has where 
if you hold down the shift key while opening a database it won't run 
the autoexec macro?
try this one:
on preopenstack
  if NOT the shiftkey is "down" then
## do your "normal" preopen stuff here...
  end if
end preopenstack
Hope this helps (and works ;-)
Thanks!
len morgan
Best
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [ANN] #011 How-To stack: Managing user waiting

2005-03-20 Thread Éric Chatonet
Hi Alejandro,
Le 20 mars 05, à 14:38, Alejandro Tejada a écrit :
Hi Eric,
You are creating a great series of small "How-To" for this development 
platform.!!!
This is a great service for beginners and a nice organized reference 
for experienced
developers. A welcome addition would be to include references to 
similar works made
by other developers. In this way, readers can keep looking for more 
examples and
code in the topics of their interest.
Thanks for your kind feedback :-)
As for adding references to works by others developers, it sounds good 
but I don't know "how to" and I should feel awful about forgiving 
important ones: there are great contributions in this list, in MC list, 
stacks and tips on RevOnLine, Revnet, on the web sites of most of the 
great contributors to this list and so on.
May be someone knowing most sources available better than me would be 
kind enough to post such a "sources" guide (could be a stack with 
arranged links).
It should be very appreciated by beginners and all of us :-)

By the way, i noticed that you mentioned that animated gif could not 
be resized.
Here is one way to do it:
From:
http://lists.runrev.com/pipermail/metacard/2003-February/004158.html
You are perfectly right and thanks for this tip.
In my mind I just wanted to warn beginners that they could not resize 
an animated gif directly as they can do it with a single frame image.
Nice spring sunday in Paris,
Best regards,

Eric Chatonet.

So Smart Software
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How do I turn off autostart?

2005-03-20 Thread Cubist
sez [EMAIL PROTECTED]:
>It seems that when ever I load a stack into the IDE to work on it, it 
>runs the preOpenStack handler but I would like to turn off that feature
>while I'm developing (so I don't accidently code an infinite loop in the
>handler).  It would be ok if going from edit to run had this behavior.
>Is there possibly something like MS Access has where if you hold down 
>the shift key while opening a database it won't run the autoexec macro?
   I don't think there's anything like that built into Rev, but you can do it 
yourself:

on preOpenStack
  if the environment = "development" then exit preOpenStack
  ...
  YourNormalPreOpenStackStuffHere
  ...
end preOpenStack

   The "if" could also be "if the skiftKey is down" or whatever other 
combination of modifier keys, of course.
   Hope this helps...
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How do I turn off autostart?

2005-03-20 Thread Ken Ray
On 3/20/05 10:15 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> sez [EMAIL PROTECTED]:
>> It seems that when ever I load a stack into the IDE to work on it, it
>> runs the preOpenStack handler but I would like to turn off that feature
>> while I'm developing (so I don't accidently code an infinite loop in the
>> handler).  It would be ok if going from edit to run had this behavior.
>> Is there possibly something like MS Access has where if you hold down
>> the shift key while opening a database it won't run the autoexec macro?
>I don't think there's anything like that built into Rev, but you can do it
> yourself:

Actually, there is. If you click on the toolbar button that says "Messages",
it will get a lock icon on it. This means messages are locked and won't be
sent normally. Then simply open your stack. Your stack won't get the
preOpenStack message sent so it won't trigger. Then, when you want messages
back on, click the toolbar button again and the lock disappears.

HTH,

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


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Creating MySQL Databases

2005-03-20 Thread Peter Reid
I'm just starting a project using MySQL for the first time.  Having 
looked at the Rev 2.5.1 documentation, I'm happy enough that I can 
access and update MySQL databases as required.  However, what I can't 
see is how I can create and carry out basic administration of NEW 
databases.

My project involves my users being able to create a new database to 
support work for a particular client.  Each new database will be 
based on a template database which consists of 23 tables - 17 
pre-loaded with standard data and 6 empty tables that will hold 
client-specific information during use.  The MySQL server will be 
running on a networked Mac OS X system (possibly Server X 10.3, but 
also possible just standard OS X 10.3), accessible to all users 
within the organisation.

Using phpMyAdmin, YourSQL and MySQL 4.0.24 (under Mac OS X 10.3.8), 
I've been able to create a template database with all the tables and 
standard data in place.

However I can't see how I can code in Rev to carry out basic database 
administration:
- create new database (as a copy of a template database)
- rename a database
- delete a database
- dump a database
- reload a database from a dump

Obviously, I could send a series of shell commands, using MySQL in 
batch mode.  However, why I can't I do the above using the Rev 
database library?  Also, if I have to use the shell function, how can 
I do this to the MySQL server running on a different system over the 
local network? (i.e. the program is running on one system whilst 
creating and managing a database on a different system across the 
local network).

Note that whilst I can use phpMyAdmin to do all the database admin, 
my users CAN'T!  They need simple "Create DB", "Rename DB" type 
actions, which is why I'm trying to include these in my Rev project!

Any advice, help please?
Peter
--
Peter Reid
Reid-IT Limited, Loughborough, Leics., UK
E-mail: [EMAIL PROTECTED]
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Part border on image

2005-03-20 Thread Beat Cornaz
I use images (in a  rectangle form) as sliders to get a minimum and 
maximum value. I want to get a border at the bottom of the image (or 
at the top). I use images because of the blend property. The 3D 
border won't do, as it is bottom and right side.

Of course I can introduce a separate line object to do the job, but I 
need to keep it as simple as possible, because it is getting already 
complex enough, without making groups with images and lines.

Also : I don't understand the first to eight color. Doesn't that work 
with images? In the inspector of an image I can select colors for 
first color etc. but nothing changes . If I go back to the inspector 
of that image, the color I've chosen are gone as well.

I can't manage do give a radio- or check button a color. The name, 
ok, but the button itself doesn't react to any color adjustment I 
make.

Thanks, Beat
--
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Opening Sockets on localhost

2005-03-20 Thread Till Bandi
so Dan, don't forget, that is one of the subjects we are waiting for 
good explanations from someone that can well explain (and some of us - 
I think - even already paid for it?)  ;-)

Till
Am 16.03.2005 um 12:13 schrieb Alex Tweedly:
Dan Shafer wrote:
Alex.
I got it. IOW, opening a socket doesn't work unilaterally. The 
"server" has to have a listener on that port first. Right?
Right. When you open a TCP socket  (i.e. open socket to "host:port"), 
a TCP connection is formed. A packet is sent from your machine's TCP 
stack to his, and he sends a reply (assuming some application has done 
"accept connection" on the correct port). If there is no-one listening 
on that port, the remote machine will either ignore the incoming 
packet, or send back a "reject" packet.

When (if) your host receives a positive acknowledgment, then the 
connection is successful (from your point of view); your TCP stack 
then sends him back a third packet - and only when he receives it does 
he consider the connection complete.  (He can't consider it complete 
until then, because there could be a problem getting his packets to 
you - the only way he knows that has succeeded is when you reply).  
You may hear this referred to as "TCP's three-way handshake".

Note that when you open a UDP socket (i.e. open datagram socket to 
"host:port"), things are completely different. UDP (datagram) is 
"connectionless", so the open socket does not cause any network 
activity, and will generally succeed provided the "host:port" have 
valid values.

I'm going to figure out this server stuff one of these days.
And once you do, you'll realize how simple it all was to begin with, 
and wonder why no-one ever wrote a decent explanation of it in the 
first place. It's because most of us can't write decent explanations 
of anything :-)

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

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 15/03/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Buttons, Fields & Columns

2005-03-20 Thread Michael Mandaville
Sarah,

This was extremely helpful.  I followed your instructions and it worked just
great.   BTW, you were the one who was so kind to give me your opinion on
Revolution which convinced me to move forward!I had to figure out that
you used Radio Buttons and then put them into a group, but then got it to
work.  I also tried it with CheckBoxes and got that to work.   I was also
able to figure it out with OptionBoxes and Pulldown Menus.  I'm saving the
stacks as I work on them for my examples.  I'm trying to go through all the
controls as I do this.

1.  COLUMNS:   I have three elements - Primary, Secondary and Task.   I
already got it to sort on the Primary.  I can then set up a button for the
Secondary aswell. How do I send them items to a nice even scrolling field of
three columns?  In that way, I suppose, I can sort on each column or set up
a sort order. 


2.  INTERNAL BUTTON:  Once a person makes a choice in the Primary field
(which is to establish Priorities using "A","B" and "C")  and it is sent to
a list, I've seen where these Lists have the choice listed, but also access
to an option Menu within the List.So that if a priority changes, they
can go into this List, hilite the Primary choice and change the ABC to
whatever they want.  In effect, it's an Option Menu within the List.

Thanks for everything, Sarah,

Michael 


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Stack saving clarification

2005-03-20 Thread Mark Wieder
Len-

Sunday, March 20, 2005, 5:32:13 AM, you wrote:

LM> WOW!  I sent the first e-mail with this question and at the same time
LM> the digest version came in WITH AN ANSWER BEFORE I THOUGHT OF THE 
LM> QUESTION! How great is that?!  You not only provide answers, you 
LM> anticipate my questions before I do

The answers to the next several questions on the list will be:

1. Check the documentation.
2. That's fixed in the latest release.
3. Standalones can't modify themselves.
4. That works on my system.
5. Please Bugzilla that as a bug or a feature request.
6. Yes.
7. No.
8. Maybe.
9. You're using a function like a command.
10. This isn't RealBasic/C++/HyperCard.
11. Menus in OSX have special needs.
12. Check the documentation.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Stack saving clarification

2005-03-20 Thread Thomas McGrath III
LOL
That list is perfect. Maybe now we can answer questions via the 
numbers. "6"

Tom
On Mar 20, 2005, at 2:10 PM, Mark Wieder wrote:
Len-
Sunday, March 20, 2005, 5:32:13 AM, you wrote:
LM> WOW!  I sent the first e-mail with this question and at the same 
time
LM> the digest version came in WITH AN ANSWER BEFORE I THOUGHT OF THE
LM> QUESTION! How great is that?!  You not only provide answers, you
LM> anticipate my questions before I do

The answers to the next several questions on the list will be:
1. Check the documentation.
2. That's fixed in the latest release.
3. Standalones can't modify themselves.
4. That works on my system.
5. Please Bugzilla that as a bug or a feature request.
6. Yes.
7. No.
8. Maybe.
9. You're using a function like a command.
10. This isn't RealBasic/C++/HyperCard.
11. Menus in OSX have special needs.
12. Check the documentation.
--
-Mark Wieder
 [EMAIL PROTECTED]
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Search Rev docs "at the speed of thought"

2005-03-20 Thread Wilhelm Sanke
On Sun, 20 Mar 2005, Jonathan Cooper <[EMAIL PROTECTED]> wrote:
Hi Wilhelm,
Looks like an impressively useful stack, but it doesn't quite work as
described, for me.
I get the results displayed in the field on the right. However,clicking
on a file link produces nothing in the left field (except the word
"Description", in bold).
Rev 2.1.2, Mac OSX 10.2.8
Regards,
Jonathan

Hi Jonathan,
As Thomas McGrath III <[EMAIL PROTECTED]> has already mentioned, 
"Drop the stack into the same folder as your Rev engine. It will work 
then ".

And the new version - available during the next days - can be placed 
either into the main Revolution or Metacard folder (where the engine is) 
or into the "plugins" folder of Rev or the MC IDE; "SearchDocs XML 2" 
will detect where it has been placed and set the directory paths for the 
search accordingly.-

Another change is a simplified search input and the extra option to 
search all of the XML files of the "Dictionary", "Faq", and "Topics" in 
one run. Searching these combined 1992 files will slightly increase the 
average search time to about 160 milliseconds  (WindowsXP, 2 GHz), which 
should be still very much tolerable.

There is a new screenshot at 
.

Regards,
Wilhelm
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Creating MySQL Databases

2005-03-20 Thread Andre Garzia
Peter,
I recommend that you check your SQL database documentation for there 
are SQL function for creating databases and stuff like that. phpMyAdmin 
does nothing but serve as front-end for the MySQL system, all it does 
is to pipe commands to the server. I'll sum some URLs below that point 
to good parts of documentation where you can find what you need:

http://dev.mysql.com/doc/mysql/en/database-use.html-- This will 
show how to inspect your databases and how to "start using" them.

http://dev.mysql.com/doc/mysql/en/creating-database.html   -- This 
presents the commands to create a database.

http://dev.mysql.com/doc/mysql/en/loading-tables.html  -- this is just 
a "cool" thing to load "raw text files" in your database.

http://dev.mysql.com/doc/mysql/en/backup.html  -- this will cover your 
desires for dumping and restoring :D

Sorry but I did not find anything on renaming databases... but you can 
dump them, change the SQL with a simple replace "oldname" with 
"newname" in the SQLConteainer then, execute that SQL, then delete the 
old database, it will solve your problem

Also if you're fiddling with SQL and Rev, check Trevor's libDatabase, 
it's an amazing lib.

Cheers
andre
On Mar 20, 2005, at 2:49 PM, Peter Reid wrote:
I'm just starting a project using MySQL for the first time.  Having 
looked at the Rev 2.5.1 documentation, I'm happy enough that I can 
access and update MySQL databases as required.  However, what I can't 
see is how I can create and carry out basic administration of NEW 
databases.

My project involves my users being able to create a new database to 
support work for a particular client.  Each new database will be based 
on a template database which consists of 23 tables - 17 pre-loaded 
with standard data and 6 empty tables that will hold client-specific 
information during use.  The MySQL server will be running on a 
networked Mac OS X system (possibly Server X 10.3, but also possible 
just standard OS X 10.3), accessible to all users within the 
organisation.

Using phpMyAdmin, YourSQL and MySQL 4.0.24 (under Mac OS X 10.3.8), 
I've been able to create a template database with all the tables and 
standard data in place.

However I can't see how I can code in Rev to carry out basic database 
administration:
- create new database (as a copy of a template database)
- rename a database
- delete a database
- dump a database
- reload a database from a dump

Obviously, I could send a series of shell commands, using MySQL in 
batch mode.  However, why I can't I do the above using the Rev 
database library?  Also, if I have to use the shell function, how can 
I do this to the MySQL server running on a different system over the 
local network? (i.e. the program is running on one system whilst 
creating and managing a database on a different system across the 
local network).

Note that whilst I can use phpMyAdmin to do all the database admin, my 
users CAN'T!  They need simple "Create DB", "Rename DB" type actions, 
which is why I'm trying to include these in my Rev project!

Any advice, help please?
Peter
--
Peter Reid
Reid-IT Limited, Loughborough, Leics., UK
E-mail: [EMAIL PROTECTED]
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

--
Andre Alves Garzia  2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Creating MySQL Databases

2005-03-20 Thread Peter Reid
Peter,
I recommend that you check your SQL database documentation for there 
are SQL function for creating databases and stuff like that. 
phpMyAdmin does nothing but serve as front-end for the MySQL system, 
all it does is to pipe commands to the server. I'll sum some URLs 
below that point to good parts of documentation where you can find 
what you need:

http://dev.mysql.com/doc/mysql/en/database-use.html-- This will 
show how to inspect your databases and how to "start using" them.

http://dev.mysql.com/doc/mysql/en/creating-database.html   -- This 
presents the commands to create a database.

http://dev.mysql.com/doc/mysql/en/loading-tables.html  -- this is 
just a "cool" thing to load "raw text files" in your database.

http://dev.mysql.com/doc/mysql/en/backup.html  -- this will cover 
your desires for dumping and restoring :D

Sorry but I did not find anything on renaming databases... but you 
can dump them, change the SQL with a simple replace "oldname" with 
"newname" in the SQLConteainer then, execute that SQL, then delete 
the old database, it will solve your problem

Also if you're fiddling with SQL and Rev, check Trevor's 
libDatabase, it's an amazing lib.

Cheers
andre
Andre
Thanks for the response and the links.
I realise that I can do all I want directly through a command 
interface and that phpMyAdmin simply takes advantage of the features 
built into MySQL.  What I can't see is how I can encapsulate this 
into a Rev program, particularly one that will be running on a system 
that is NOT the host for the MySQL server but on the same local 
network.

If my Rev program were running on the system acting as the MySQL 
server host, then I could use the shell() function controlling the 
MySQL server in command line mode.  However, my program will not be 
on the same system, so I don't see how I can build this into the 
program?

It seems that the Rev support for SQL databases assumes that 
databases are pre-existing and managed externally. Rev seems to 
provide all the commands you need to read from and update SQL 
databases, but not the commands to create and manage them.

On the "renaming" front, I had assumed that phpMyAdmin did a dump & 
reload with new name to accomplish this.  as you say, database 
renaming doesn't seem to be a native feature of MySQL (and several 
other SQL databases I believe).

You mention Trevor's libDatabase - where can I get hold of this, it 
could be very helpful?

Cheers
Peter
--
Peter Reid
Reid-IT Limited, Loughborough, Leics., UK
E-mail: [EMAIL PROTECTED]
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Characters in names

2005-03-20 Thread Graham Samuel
I can't find a list in the RR docs of legal characters for variable  
names. Obviously letters of the alphabet (at least the ascii version)  
and the numerals are OK, plus hyphen and underscore - but what else?  
Clearly no character used as an operator, like \ or +, can be legal,  
but maybe some others are: for example is period (full stop to me)  
permitted? If I've missed a complete list, can someone please point me  
at it?

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

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Characters in names

2005-03-20 Thread Alex Tweedly
Graham Samuel wrote:
I can't find a list in the RR docs of legal characters for variable  
names. Obviously letters of the alphabet (at least the ascii version)  
and the numerals are OK, plus hyphen and underscore - but what else?  
Clearly no character used as an operator, like \ or +, can be legal,  
but maybe some others are: for example is period (full stop to me)  
permitted? If I've missed a complete list, can someone please point 
me  at it?
Don't think there is one - that would be too close to a reference 
definition of part of the language.

You can't have hyphen, that would be a minus operator.
You can have full stops - but there was a recommendation to avoid them 
if possible, in case of future expansion into "object" notation.

So basically letters, digits and underscore (and period, but avoid if 
possible)

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

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 18/03/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Location of the insertion point in a field

2005-03-20 Thread Mikey
Well, I tried searching the docs.
How do I figure out where the cursor (insertion point) is in a field?
-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Opening Sockets on localhost

2005-03-20 Thread Mikey
Also, socket behavior is generally well-understood and well-explained
elsewhere on
the net.

Don't forget, if your're using a packet sniffer and examining the
traffic you're sending to yourself you won't see anything on Windows. 
That's because on Windows if the traffic doesn't hit the NIC the
sniffers can't see it.


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Location of the insertion point in a field

2005-03-20 Thread Pat Trendler
Mikey,
From the docs (search Topics)
How do I find out where the insertion point is?
You use the selectedChunk function to find out the location of the insertion 
point.

When there is an insertion point but no text is selected, the selectedChunk 
function returns an expression of the form char nextChar to prevChar of 
field fieldNumber. For example, if the insertion point is in field 3, 
between character 10 and character 11, the selectedChunk function returns 
char 11 to 10 of field 3.


HTH
Pat
- Original Message - 
From: "Mikey" <[EMAIL PROTECTED]>
To: "How to use Revolution" 
Sent: Monday, March 21, 2005 11:02 AM
Subject: Location of the insertion point in a field


Well, I tried searching the docs.
How do I figure out where the cursor (insertion point) is in a field?
--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
  and did a little diving.
And God said, "This is good."
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution 
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Characters in names

2005-03-20 Thread Scott Rossi
Recently, Graham Samuel  wrote:

> I can't find a list in the RR docs of legal characters for variable
> names. Obviously letters of the alphabet (at least the ascii version)
> and the numerals are OK, plus hyphen and underscore - but what else?
> Clearly no character used as an operator, like \ or +, can be legal,
> but maybe some others are: for example is period (full stop to me)
> permitted? If I've missed a complete list, can someone please point me
> at it?

FWIW, I can tell you I've used "?" as a prefix character without problems,
but it has been said that the MC/Rev engineers might use this character in
the future for the engine.  Also, I would recommend NOT using a standard
hyphen "-" unless you explicitly quote your names since the engine assumes
this to be negative or subtract and will try to evaluate the name as an
expression.

In my own work, I prefix almost everything with an underscore: object names,
custom properties, etc.  This allows me to quickly identify my objects/names
and also use the equivalent of reserved words (ie _hilite, _top, _max, etc)
without having to worry about reserved name conflicts.  Some folks have
argued that you can't use a double click to select the entire word/name in a
script when using this convention, but this is irrelevant since the
underscore is used as a non-changing character.

Regards,

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

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Location of the insertion point in a field

2005-03-20 Thread Chipp Walters
Mikey,
Check out the selectedChunk function.
Mikey wrote:
Well, I tried searching the docs.
How do I figure out where the cursor (insertion point) is in a field?
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Characters in names

2005-03-20 Thread Ken Ray
On 3/20/05 6:59 PM, "Alex Tweedly" <[EMAIL PROTECTED]> wrote:

> Graham Samuel wrote:
> 
>> I can't find a list in the RR docs of legal characters for variable
>> names. Obviously letters of the alphabet (at least the ascii version)
>> and the numerals are OK, plus hyphen and underscore - but what else?
>> Clearly no character used as an operator, like \ or +, can be legal,
>> but maybe some others are: for example is period (full stop to me)
>> permitted? If I've missed a complete list, can someone please point
>> me  at it?
> 
> Don't think there is one - that would be too close to a reference
> definition of part of the language.

I doin't know about variable names, but you can have these chars in
*handler* names:

  ? (question mark)
  ` (backquote)
  _ (underscore)
  @ (at-sign)
  # (pound sign)
  $ (dollar sign)
  '  (single quote)

So you can do this:

 on DoIt?
  answer "Hello"
 end DoIt?

or

 on Cash$Check
  -- cash check
 end Cash$Check

However as many have said, RunRev may use these special chars in the future
so I generally avoid everything but the underscore.


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


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Can a Revolution standalone application save data?

2005-03-20 Thread Sarah Reichelt
You can save information in a standalone to a substack of the
standalone, just not to the mainstack.  For example, you could make
make your opening splash screen  your main stack, and have any number
of substacks affiliated with that main stack.  This is how you save
information without writing it to the mainstack, which can't be done,
you're right.
Uh, Mark, I don't think that's true. You can save data in other stack 
files
that are on disk, but if the substack is part of the standalone, I 
don't
think you can save the data because this would change the standalone 
and
that's a no-no.

If you check the box in the Standalone settings that says "Move 
substacks into individual stack files", then you can do it this way. 
This method allows you to work with a single stack file in the IDE, but 
have it writable when you build an app.

Cheers,
Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Creating MySQL Databases

2005-03-20 Thread Sarah Reichelt
I'm just starting a project using MySQL for the first time.  Having 
looked at the Rev 2.5.1 documentation, I'm happy enough that I can 
access and update MySQL databases as required.  However, what I can't 
see is how I can create and carry out basic administration of NEW 
databases.

Hi Peter,
Here is my script for creating a new database. It connects directly to 
the "myslq" database as root (or any user that has the right 
privileges) and sends the create database command to that. I have only 
done it on a local database, so you will need to change the value for 
dbAddr.

I don't know how to rename a database, but if you can find the SQL 
command to do it, then I would hope that this technique would work for 
that as well.

Cheers,
Sarah
on mouseUp
  put "root" into dbUser
  put "mysql" into dbName
  put "localhost" into dbAddr
  ask password clear "Enter root password:"
  if the result = "Cancel" then exit to top
  put it into dbPass
  put revOpenDatabase("MySQL",dbAddr,dbName,dbUser,dbPass) into dbresult
  if dbResult is not a number then
answer error dbResult as sheet
exit to top
  end if
  put dbResult into dbID
   ask "Enter the name of the new database:"
  if the result = "Cancel" then exit to top
  put it into newDB
  put "CREATE DATABASE " & newDB into dbSQL
  revExecuteSQL dbID, dbSQL
  put the result into sqlResult
  if sqlResult is a number then
answer information "Database " & newDB & " created." as sheet
  else
answer error sqlResult as sheet
  end if
  revCloseDatabase dbID
end mouseUp
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Who do I have to pay?

2005-03-20 Thread Howard Bornstein
> 
> We need some image manipulation externals. I'll talk to Chris and see
> if he can whip something up.
> 
> If you have any specific requests, let me know.
>

Brightness and contrast would be nice.

-- 
Regards,

Howard Bornstein
---
www.designeq.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Search Rev docs "at the speed of thought" Bad Language alert!

2005-03-20 Thread Pat Trendler
Just looked at your new screenshot - absolutely bleeding fabulous!
All manual style ebooks should have a search function like this.
It just gets better and better.
Could we be able to select and copy please?
Pat
And the new version - available during the next days - can be placed 
either into the main Revolution or Metacard folder (where the engine is) 
or into the "plugins" folder of Rev or the MC IDE; "SearchDocs XML 2" 
will detect where it has been placed and set the directory paths for the 
search accordingly.-

Another change is a simplified search input and the extra option to 
search all of the XML files of the "Dictionary", "Faq", and "Topics" in 
one run. Searching these combined 1992 files will slightly increase the 
average search time to about 160 milliseconds  (WindowsXP, 2 GHz), which 
should be still very much tolerable.

There is a new screenshot at 
.

Regards,
Wilhelm
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Location of the insertion point in a field

2005-03-20 Thread Mikey
> From the docs (search Topics)
> 
Hmm.  When I type "inse" I get the "No entries match your filter
criteria" (that's as far as I get toward typing "insertion point"

Thanks for the tip, though.
-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Characters in names

2005-03-20 Thread Jeanne A. E. DeVoto
At 12:44 AM + 3/21/05, Graham Samuel wrote:
I can't find a list in the RR docs of legal characters for variable 
names. Obviously letters of the alphabet (at least the ascii 
version) and the numerals are OK, plus hyphen and underscore - but 
what else? Clearly no character used as an operator, like \ or +, 
can be legal, but maybe some others are: for example is period (full 
stop to me) permitted? If I've missed a complete list, can someone 
please point me at it?
This is from "About containers, variables, and sources of value":
Variable names
The names of variables must consist of a single word and may contain 
any combination of letters, digits, and underscores (_). The first 
character must be either a letter or an underscore.

Here are some examples of legal variable names:
  someVariable
  picture3
  my_new_file
  _output
Here are some names that cannot be used as variable names:
  3rdRock -- starts with a digit
  this&That   -- "&" cannot be used
  My Variable -- more than one word
Avoid giving a variable the same name as a custom property. If you 
refer to a custom property, and there is a variable by the same name, 
Revolution uses the contents of the variable as the name of the 
custom property. Generally this will produce unexpected results.

  Note:  Global variables whose names begin with "gRev" are reserved 
by the Revolution development environment.


(As Alex notes, there are characters other than letters, numbers, and 
underscores that will work in variable  names, but this isn't 
guaranteed to go on working, so those characters are best avoided.)
--
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


red background

2005-03-20 Thread Michael Robinson
Why does the background of some text fields turn red? (and no the 
background color is not red)

thanks mike
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Creating MySQL Databases

2005-03-20 Thread Mark Wieder
Peter-

Here's what I do (extract) to create MySQL databases from within
runrev. Send the commands to a text file, then execute the MySQL
client using the text file as a command script:

on CreateDatabase
  local strFileName, myError

  -- CreateDatabase asks for a name for the temporary output file
  -- and then uses the contents of field "dbName" to construct
  -- a MySQL script to create a database.
  
  ask file "Temporary script File:"
  if it is not empty then
put it into strFileName
open file strFileName for write
if the last char of field "dbName" is cr then
  delete the last char of field "dbName"
end if

write "DROP DATABASE IF EXISTS" && field "dbName" & ";" & cr to file 
strFileName
write "CREATE DATABASE" && field "dbName" & ";" & cr to file strFileName
write "USE" && field "dbName" & ";" & cr & cr to file strFileName
close file strFileName
put LaunchDB(strFileName) into myError
  end if
end CreateDatabase

function LaunchDB strSQLFile, strDBName, strUserName, strPassword
  local blnSuccess, strSourceFile, strDBExecutable
  
  put empty into blnSuccess
  if the platform is "MacOS" then
set the shellCommand to "/bin/csh"
  end if
  -- I have previously stored the path to the MySQL client
  -- in a custom property called cMySQLLocation, but obviously
  -- you could do something different here.
  put the cMySQLLocation of stack gDialogStack into strDBExecutable
  if strSQLFile is not empty then
put "<" && quote & strSQLFile & quote into strSourceFile
put shell(strDBExecutable && strDBName && strUserName && strPassword && 
strSourceFile) into blnSuccess
  end if
  return blnSuccess
end LaunchDB

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


constant list

2005-03-20 Thread Mikey
supposedly there's a list of constants available in the documentation
window by selecting dictionary, then constants off the menu.  Uh, ok,
but I don't see constants in the list.  I see constant, but not
constatnts.
-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


repeating a string

2005-03-20 Thread Mikey
For the life of me I can't remember if there's a command (and I can't
find one in the docs) to repeat a string.

For example, to generate "aaa", I could write "a"&"a&
-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


repeating a string

2005-03-20 Thread Mikey
Sorry about the partial repeat - lappie issues...

I can't for the life of me remember how to repeat a string, and of
course I can't find anything in the docs either.

I could do "a"&"a"&"a", but I thought there was something like "A"*3
or such available.
-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


SelectedChunk

2005-03-20 Thread Mikey
Hmm.  Per previous discussion, in an attempt to determine where the
cursor was when the user hit a key (in this case a tab key), I
generated the following script for the field in question

on tabKey
   get the selectedChunk
   answer it
end tabKey

the variable watcher reports that IT is empty.  In addition, changing
the code to

on tabKey
   put the selectedText into foo
   answer foo
end tabKey

the variable watcher reports the same thing for foo.  As one would
expect, in either case the answer is empty.
-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Can Revolution create a large, colored cursor?

2005-03-20 Thread Stgoldberg
As a beginner I'm really finding this forum extremely helpful. Perhaps 
someone can help with this question:   Although the instructions say that a 
cursor 
has to be in black and white and not larger than 16x16, I'm wondering if there 
is a way around this.   Many games, for instance, have large cursors, e.g. a 
large grasping hand when the cursor moves over an object than can be grasped.   
I first thought that perhaps one could use a hidden image of a grasping hand 
that was made to appear over the location of the cursor when the cursor passed 
over the object to be grasped, in a script like this:

on mouseEnter
set cursor to none
set lockcursor to true
set the loc of image "LargeHand" to the mouseloc
end mouseEnter

on mouseLeave
set lockcursor to false
set cursor to arrow
hide image "LargeHand"
end mouseLeave

It would seem that this should work, but it doesn't, since the   "LargeHand" 
image for some reason keeps flickering whenever the mouse moves over it.   
Does anyone have any suggestion   as to how to get this method to work, or 
another method to allow for a larger, more elaborate colored cursor?   Thanks.
Steve Goldberg
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


undoing an object delete

2005-03-20 Thread Mikey
Somehow I've managed to select and delete several objects tonight
accidentally.  There appears to be no way to undo this, right?
-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Problem with 'filter' on large lists

2005-03-20 Thread Terry Judd
The filter command seems to be 'dodgy' when working with large lists 
(>10) lines - ie gives different results to when the same data is 
broken up into a number of chunks. Has anyone else seen this or is it 
just me?

All I'm doing is some simple filtering of long lists of urls as in - 
filter theURLs with "*unimelb.edu.au"

Cheers,
Terry...
Dr Terry Judd
Lecturer in Educational Technology (Design)
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
Parkville VIC 3052
AUSTRALIA
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


curioser and curioser

2005-03-20 Thread Mikey
This is really fascinating - if I have debug checkpoints on and I run
the script that I'm trying to use that intercepts the tab key and
processes it things malfunction.  However, if I remove the checkpoints
things seem to work more according to plan...
-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Can Revolution create a large, colored cursor?

2005-03-20 Thread Douglas Westbrook
Try mousewithin
On mousemove is a better way to set a graphic to the mouseloc but it 
sounds like mousewithin is what you need.
On Mar 20, 2005, at 10:44 PM, [EMAIL PROTECTED] wrote:

As a beginner I'm really finding this forum extremely helpful. Perhaps
someone can help with this question:   Although the instructions say 
that a cursor
has to be in black and white and not larger than 16x16, I'm wondering 
if there
is a way around this.   Many games, for instance, have large cursors, 
e.g. a
large grasping hand when the cursor moves over an object than can be 
grasped.
I first thought that perhaps one could use a hidden image of a 
grasping hand
that was made to appear over the location of the cursor when the 
cursor passed
over the object to be grasped, in a script like this:

on mouseEnter
set cursor to none
set lockcursor to true
set the loc of image "LargeHand" to the mouseloc
end mouseEnter
on mouseLeave
set lockcursor to false
set cursor to arrow
hide image "LargeHand"
end mouseLeave
It would seem that this should work, but it doesn't, since the   
"LargeHand"
image for some reason keeps flickering whenever the mouse moves over 
it.
Does anyone have any suggestion   as to how to get this method to 
work, or
another method to allow for a larger, more elaborate colored cursor?   
Thanks.
Steve Goldberg
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: undoing an object delete

2005-03-20 Thread MisterX
Mikey,

It could have been undone with my HotKeyN2O plugin but the plugin is in
finishing status limbo... Some speed performance issues to deal with that
might require a revamp of the object database...

Hopefully ready this month or the next - im not really motivated to get
dirty and greasy to finish it though... ;)

cheers
Xavier

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Mikey
> Sent: Monday, March 21, 2005 05:52
> To: How to use Revolution
> Subject: undoing an object delete
> 
> Somehow I've managed to select and delete several objects 
> tonight accidentally.  There appears to be no way to undo this, right?
> --
> On the first day, God created the heavens and the Earth On 
> the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Can Revolution create a large, colored cursor?

2005-03-20 Thread MisterX
Douglas,

I tried a year ago to make a nice Mickey hand cursor 16x16 but 
- colored cursors didn't seem supported
- colors didn't dispay correctly
- transparency masks not supported on non-bitmap images.

No one ever helped so Im stuck as you are...
I think there's a bugzilla for this too...

cheers
Xavier

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Douglas Westbrook
> Sent: Monday, March 21, 2005 06:02
> To: How to use Revolution
> Subject: Re: Can Revolution create a large, colored cursor?
> 
> Try mousewithin
> On mousemove is a better way to set a graphic to the mouseloc 
> but it sounds like mousewithin is what you need.
> On Mar 20, 2005, at 10:44 PM, [EMAIL PROTECTED] wrote:
> 
> > As a beginner I'm really finding this forum extremely 
> helpful. Perhaps
> > someone can help with this question:   Although the 
> instructions say 
> > that a cursor
> > has to be in black and white and not larger than 16x16, I'm 
> wondering 
> > if there
> > is a way around this.   Many games, for instance, have 
> large cursors, 
> > e.g. a
> > large grasping hand when the cursor moves over an object 
> than can be 
> > grasped.
> > I first thought that perhaps one could use a hidden image of a 
> > grasping hand that was made to appear over the location of 
> the cursor 
> > when the cursor passed over the object to be grasped, in a 
> script like 
> > this:
> >
> > on mouseEnter
> > set cursor to none
> > set lockcursor to true
> > set the loc of image "LargeHand" to the mouseloc end mouseEnter
> >
> > on mouseLeave
> > set lockcursor to false
> > set cursor to arrow
> > hide image "LargeHand"
> > end mouseLeave
> >
> > It would seem that this should work, but it doesn't, since the   
> > "LargeHand"
> > image for some reason keeps flickering whenever the mouse 
> moves over 
> > it.
> > Does anyone have any suggestion   as to how to get this method to 
> > work, or
> > another method to allow for a larger, more elaborate 
> colored cursor?   
> > Thanks.
> > Steve Goldberg
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: revDatabase

2005-03-20 Thread Harvey Toyama
Hi, 
MySQL 4.1 was my first encounter with the database. The original
complaint is due to 16 vs 41 byte passwords. 

Since Revolution is the only client application I have, and since it
only support old passwords, my solution was to add "old-passwords" in
the [mysqld] section of the my.cnf file. You can update the grant tables
to use old passwords with:

SET PASSWORD FOR 'some_user'@'some_host' = OLD_PASSWORD('newpwd');

It worked for me.

-- Harvey
-- 
 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problem with 'filter' on large lists

2005-03-20 Thread Terry Judd
Actually the problem seems much wider than that. I'm seeing 'dodgy' 
returned data for some (but not all) smaller chunks of my data as well 
(<25000 lines). Good thing that repeat for each constructs are so fast. 
I'll stick with a custom filter routine based around that for the 
moment and see if I can tie down the problem (with the filter command - 
or my data) further.

Cheers,
Terry...
The filter command seems to be 'dodgy' when working with large lists 
(>10) lines - ie gives different results to when the same data is 
broken up into a number of chunks. Has anyone else seen this or is it 
just me?

All I'm doing is some simple filtering of long lists of urls as in - 
filter theURLs with "*unimelb.edu.au"

Cheers,
Terry...
Dr Terry Judd
Lecturer in Educational Technology (Design)
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
Parkville VIC 3052
AUSTRALIA
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: SelectedChunk

2005-03-20 Thread Ken Ray
On 3/20/05 10:38 PM, "Mikey" <[EMAIL PROTECTED]> wrote:

> Hmm.  Per previous discussion, in an attempt to determine where the
> cursor was when the user hit a key (in this case a tab key), I
> generated the following script for the field in question
> 
> on tabKey
>get the selectedChunk
>answer it
> end tabKey
> 
> the variable watcher reports that IT is empty.  In addition, changing
> the code to
> 
> on tabKey
>put the selectedText into foo
>answer foo
> end tabKey
> 
> the variable watcher reports the same thing for foo.  As one would
> expect, in either case the answer is empty.

As it turns out, Mikey, you picked one of the few keys that would actually
do something about changing the focus, etc. when the key is struck. Look at
"tabKey" as the equivalent of "keyUp", meaning that it takes place *after*
the key has been struck, so it actually tabs out of the field (or at least
clears the selectedChunk) before you trap it. What you want to use is
"rawKeyDown" instead:

on rawKeyDown pKey
  if pKey is 65289 then  -- key code for Tab
get the selectedChunk
answer it
  end if
  pass rawKeyDown
end rawKeyDown

HTH,

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


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: repeating a string

2005-03-20 Thread xbury . cs
On 21.03.2005 05:18:39 use-revolution-bounces wrote:
>Sorry about the partial repeat - lappie issues...
>
>I can't for the life of me remember how to repeat a string, and of
>course I can't find anything in the docs either.
>
>I could do "a"&"a"&"a", but I thought there was something like "A"*3
>or such available.

yes there is but you have to make it yourself ;)

function stringRepeat str, reps
  repeat reps
put str after nustr
  end repeat
  return nustr
end stringRepeat

cheers
Xavier


-
Visit us at http://www.clearstream.com
IMPORTANT MESSAGEInternet 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
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution