RE: Combined Events

2006-03-21 Thread Jeanne A. E. DeVoto

At 10:43 AM -0700 3/21/2006, Jeff Honken wrote:

  That's exactly what I'm looking for but why on a windows box doesn't
the left mouse click work.  Here's the code:


Does it work if you don't specify which mouse button?
--
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Progress Made?

2006-03-21 Thread Arthur Urban
It would be great if I could help out. Is there a specific means to 
generate a crash log?


J. Landman Gay wrote:

Arthur Urban wrote:

Has there been any progress with the perpetual crashing in WinXP?


Yes, I believe they have isolated it. It took quite a while to even 
get a stack that would crash on the development machines, so it wasn't 
a universal problem for everyone. Lots of people seem to be running 
2.7 without any trouble. Eventually more data came in through tech 
support so that the team could address it. It's always a good idea to 
send bug reports to Bugzilla, and crash logs if you have them.



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


Re: Progress Made?

2006-03-21 Thread Chipp Walters
I'm working on a small project and for the first time trying to use 2.7 
because of it's anti-aliased graphics (which are great!)


I, too, keep having Rev crash in the middle of programming (twice in the 
last hour). I was wondering if there's a 'recipe' for this so I can 
watch out for it?


Also, any word on when we can expect a patch?

best,

Chipp

J. Landman Gay wrote:

Arthur Urban wrote:


Has there been any progress with the perpetual crashing in WinXP?



Yes, I believe they have isolated it. It took quite a while to even get 
a stack that would crash on the development machines, so it wasn't a 
universal problem for everyone. Lots of people seem to be running 2.7 
without any trouble. Eventually more data came in through tech support 
so that the team could address it. It's always a good idea to send bug 
reports to Bugzilla, and crash logs if you have them.




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


Re: Mac OS-X standalone from Windows machine

2006-03-21 Thread Richard Gaskin

J. Landman Gay wrote:

Levi Kendall wrote:

  I'm having a bit of a problem making a standalone application for OS-X
from a Windows machine.  Actually making it is not the problem really,
running it is.  The save to standalone works fine and I end up with what I
am assuming is the executeable in a structure that looks as such:

My Application.app \ Contents \ MacOS \ My Application

  What seems to be the problem is the file at the end "My Application" does
not get the execute flag set on it when being transfered to the OS-X
filesystem.  My current method of transport was simply to zip the entire
directory and then unzip the file on the Mac.  This would leave the
directory structure as is, which I'm assuming is necessary.  However the
problem is the "My Application" executeable needs to have CHMOD run on it in
order to properly execute because of the execute flag missing on the OS-X
filesystem.

  Does anyone have any solution to work around this?  Is it necessary to
have some kind of "installer" program to properly set this up on the OS-X
end?  Or is there another way to handle it?  If at all possible, I would
like to be able to handle this from the Windows machine, rather than
actually needing an OS-X box.


I'd like to know the answer to this too. Has anyone else experienced this?


As far as I can tell, chmod affects elements in the Unix file system 
that simply aren't present in Windows, much as the old Mac apps needed a 
resource fork that was possible only on Apple's HFS.


So as far as I can tell, Levi's original guess that chmod was needed is 
consistent with what I've had to do to get the executable within the 
bundle to have its permissions set correctly:


   get shell("chmod ugo+x" && quote & tDestFile & quote)

If there's some other way to write the file on a non-Unix system and be 
copy it to OS X with the executable permissions in place I'd love to 
learn about it.


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


Re: HTML tags in XML

2006-03-21 Thread Mark Wieder
Trevor-

Tuesday, March 21, 2006, 11:19:29 AM, you wrote:

> On Mar 21, 2006, at 11:10 AM, Mark Wieder wrote:
>> Yes and no. As long as you have the data stored properly encoded then
>> you should be able to decode it on the way out:
>>
>> set the htmlText of field "grunt" to urlDecode(xmlData)

> Oh, I see what you are getting at.  Yeah, that would work but  
> wouldn't this only work if the XML was only used in Rev.  Wouldn't it
> cause problems for other software that tried to read your XML document?

Yes, I should think so. It would have to decode it back. I've been
assuming this was just for rev data, but if you're going outside the
sandbox then you'd need to stick with what the DTD says. Ken's CDATA
approach would probably be the best way to deal with it in that case.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


Re: [?] Mac Classic, 2.6.1, MySQL

2006-03-21 Thread Judy Perry
Indeed.

My department's Mac lab (yep, the FrankenLab of ill-repute) runs OS 9
only.

Initially, it was because of some problems with dual boot (and the
machines not having enough RAM); then it was because of the RAM issue, and
now, quite frankly, I think it is because I'm the only Mac person in the
department and nobody else is even remotely aware of the big difference
between OS 9 & OS X.

Oh, and the fact that some sim program for a computer architecture class
only runs on OS 9...


But we OS niners still exist... even when we would rather not.

Judy

On Tue, 21 Mar 2006, Sean Shao wrote:

> In regards to the two posts - one from Paul Looney and one from Ruslan
> Zasukhin..
>
> PL> Do you REALLY need to support OS 9?
> Yes.
>
> PL> The time and effort you would put into supporting OS 9
> That's the great thing about Rev, there's very little extra time and effort
> required.
>
> RZ> But develop new app for old hardware/OS is not best idea.
> Why not?
>
> Even though Apple and Microsoft have stopped supporting certain makes of the
> operating system there are still tons of machines out there that run them
> and that's still a potential market to make money from.
>
> In my situation I'm trying to use a feature of Rev and that's not working..
> It's not through fault of my code, nor because the OS is old, but because of
> a screw-up over at Rev.. Will there be a 2.6.2 to address this issue? Nope,
> just a forced upgrade to get the functionality promised..
>
> Anyways, I'll try the 2.5 Valentina/MySQL build thing another day when I
> have the chance..
>
> -Sean
>
> _
> Don?t just search. Find. Check out the new MSN Search!
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

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


Re: Calling Rev Compiler On Command Line

2006-03-21 Thread Chipp Walters

Scott,

I believe a script is compiled when it is 'set'.

So to compile a script just get it, modify it, then set it.

best,

Chipp

Scott Kane wrote:

Hi,

Is there are method (I've checked the doc's and 
found nothing) of calling the compiler in Rev

without loading the IDE?

TIA

Scott



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


Re: Mac OS-X standalone from Windows machine

2006-03-21 Thread J. Landman Gay

Levi Kendall wrote:

Hi All,
  I'm having a bit of a problem making a standalone application for OS-X
from a Windows machine.  Actually making it is not the problem really,
running it is.  The save to standalone works fine and I end up with what I
am assuming is the executeable in a structure that looks as such:

My Application.app \ Contents \ MacOS \ My Application

  What seems to be the problem is the file at the end "My Application" does
not get the execute flag set on it when being transfered to the OS-X
filesystem.  My current method of transport was simply to zip the entire
directory and then unzip the file on the Mac.  This would leave the
directory structure as is, which I'm assuming is necessary.  However the
problem is the "My Application" executeable needs to have CHMOD run on it in
order to properly execute because of the execute flag missing on the OS-X
filesystem.

  Does anyone have any solution to work around this?  Is it necessary to
have some kind of "installer" program to properly set this up on the OS-X
end?  Or is there another way to handle it?  If at all possible, I would
like to be able to handle this from the Windows machine, rather than
actually needing an OS-X box.


I'd like to know the answer to this too. Has anyone else experienced this?

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


Re: Making the move...

2006-03-21 Thread Chipp Walters
I'm just a simple Caveman programmer. Your advanced technology and talk 
of arrays and multiple functions frighten me. In this case, I'd just as 
soon keep thinkgs in a single handler which cavemen like me can read and 
debug easily.


:-)

-Chipp

Sarah Reichelt wrote:

I didn't think of that Mark. Again, arrays are things that don't come
naturally to me, so I probably ignore them when they would be useful.
In this case, it sounds like a really good solution.

Thanks,
Sarah


On 3/22/06, Mark Smith <[EMAIL PROTECTED]> wrote:


You might put the multiple results into the elements of an array, and
return the array.

Mark

On 22 Mar 2006, at 00:55, Sarah Reichelt wrote:



On 3/21/06, Geoff Canyon <[EMAIL PROTECTED]> wrote:


Do you have an example? I agree that if you end up passing in a
handful of arguments by reference, you haven't accomplished much by
breaking out the routine. The question is if there isn't a better way
to slice the routine, where that wouldn't be necessary.



OK, I have a better example. Say I have a data set and I need to loop
through it and extract three different pieces of information e.g. a
list of the 4th column in each line, a list of lines that match a
certain set of criteria, and a cumulative total obtained by adding a
certain column in each line.

Each of these could be done in a separate function, but that would
mean looping through the data set three times. With a large data set,
it is significantly faster to loop once, filling all three new
variables in the single loop. If I separate this off into a separate
function, then I need a way of passing multiple results back.

The alternatives that I see are to use script local variables or to
pass an empty parameter by reference and have the function fill it.
Does anyone have any other ideas or recommendations?

Sarah


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


Re: Progress Made?

2006-03-21 Thread J. Landman Gay

Arthur Urban wrote:

Has there been any progress with the perpetual crashing in WinXP?


Yes, I believe they have isolated it. It took quite a while to even get 
a stack that would crash on the development machines, so it wasn't a 
universal problem for everyone. Lots of people seem to be running 2.7 
without any trouble. Eventually more data came in through tech support 
so that the team could address it. It's always a good idea to send bug 
reports to Bugzilla, and crash logs if you have them.


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


Re: Acessing button scripts in a HC stack ?

2006-03-21 Thread J. Landman Gay

Sarah Reichelt wrote:


When you open a HyperCard stack in Rev, the property called
"HCaddressing" is set to true. 


Jacqueline Landman Gay wrote:


All newly imported HC stacks have their HCAddressing property set to true.



With that kind of female solidarity here, the men amongst us must be 
cowering. ;)


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


Re: Making the move...

2006-03-21 Thread Sarah Reichelt
I didn't think of that Mark. Again, arrays are things that don't come
naturally to me, so I probably ignore them when they would be useful.
In this case, it sounds like a really good solution.

Thanks,
Sarah


On 3/22/06, Mark Smith <[EMAIL PROTECTED]> wrote:
> You might put the multiple results into the elements of an array, and
> return the array.
>
> Mark
>
> On 22 Mar 2006, at 00:55, Sarah Reichelt wrote:
>
> > On 3/21/06, Geoff Canyon <[EMAIL PROTECTED]> wrote:
> >> Do you have an example? I agree that if you end up passing in a
> >> handful of arguments by reference, you haven't accomplished much by
> >> breaking out the routine. The question is if there isn't a better way
> >> to slice the routine, where that wouldn't be necessary.
> >>
> >
> > OK, I have a better example. Say I have a data set and I need to loop
> > through it and extract three different pieces of information e.g. a
> > list of the 4th column in each line, a list of lines that match a
> > certain set of criteria, and a cumulative total obtained by adding a
> > certain column in each line.
> >
> > Each of these could be done in a separate function, but that would
> > mean looping through the data set three times. With a large data set,
> > it is significantly faster to loop once, filling all three new
> > variables in the single loop. If I separate this off into a separate
> > function, then I need a way of passing multiple results back.
> >
> > The alternatives that I see are to use script local variables or to
> > pass an empty parameter by reference and have the function fill it.
> > Does anyone have any other ideas or recommendations?
> >
> > Sarah
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [?] Mac Classic, 2.6.1, MySQL

2006-03-21 Thread Kay C Lan
On 3/22/06, Sean Shao <[EMAIL PROTECTED]> wrote:
>
>
> Even though Apple and Microsoft have stopped supporting certain makes of
> the
> operating system there are still tons of machines out there that run them
> and that's still a potential market to make money from.


Agreed.

Apple stopped supporting HyperCard when? And under what OS? Yet we still see
"I have a HyperCard stack I want to convert" type questions popping up on
this list.

Sure, I'm not suggesting that you could make a living out of custom
HyperCard stacks, but I think it clearly illustrates that while software is
cheaper to buy than hardware many will keep buying software rather than
buying new hardware - until they can no longer run the software they NEED.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Progress Made?

2006-03-21 Thread Mark Smith

Arthur, check out this thread:

http://mail.runrev.com/pipermail/use-revolution/2006-February/ 
076870.html


Best,

Mark

On 22 Mar 2006, at 00:40, Arthur Urban wrote:

Has there been any progress with the perpetual crashing in WinXP? I  
literally save every couple of minutes because of the instability  
of the IDE. I would like to note to any Rev Developers that might  
be listening though, is that the crash potential is the highest  
when I have text selected in the script editor. Obviously it does  
not crash every time text is selected, but if I know I'm going to  
cut/paste a number of lines of code, or comment/uncomment them, I  
save first. Selecting the text itself does not invoke the crash,  
but attempting to do other things (like click in the selected text,  
or making Rev think I'm dragging text) these seem to be real  
catalysts for the crash scenario.


Can we please get this fixed? Surely the Rev Developers themselves  
user their own tool on WinXP. It must be crashing like crazy for  
them too, no?

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

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


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


Re: [?] Mac Classic, 2.6.1, MySQL

2006-03-21 Thread Sean Shao
In regards to the two posts - one from Paul Looney and one from Ruslan 
Zasukhin..


PL> Do you REALLY need to support OS 9?
Yes.

PL> The time and effort you would put into supporting OS 9
That's the great thing about Rev, there's very little extra time and effort 
required.


RZ> But develop new app for old hardware/OS is not best idea.
Why not?

Even though Apple and Microsoft have stopped supporting certain makes of the 
operating system there are still tons of machines out there that run them 
and that's still a potential market to make money from.


In my situation I'm trying to use a feature of Rev and that's not working.. 
It's not through fault of my code, nor because the OS is old, but because of 
a screw-up over at Rev.. Will there be a 2.6.2 to address this issue? Nope, 
just a forced upgrade to get the functionality promised..


Anyways, I'll try the 2.5 Valentina/MySQL build thing another day when I 
have the chance..


-Sean

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


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


Re: Making the move...

2006-03-21 Thread Mark Smith
You might put the multiple results into the elements of an array, and  
return the array.


Mark

On 22 Mar 2006, at 00:55, Sarah Reichelt wrote:


On 3/21/06, Geoff Canyon <[EMAIL PROTECTED]> wrote:

Do you have an example? I agree that if you end up passing in a
handful of arguments by reference, you haven't accomplished much by
breaking out the routine. The question is if there isn't a better way
to slice the routine, where that wouldn't be necessary.



OK, I have a better example. Say I have a data set and I need to loop
through it and extract three different pieces of information e.g. a
list of the 4th column in each line, a list of lines that match a
certain set of criteria, and a cumulative total obtained by adding a
certain column in each line.

Each of these could be done in a separate function, but that would
mean looping through the data set three times. With a large data set,
it is significantly faster to loop once, filling all three new
variables in the single loop. If I separate this off into a separate
function, then I need a way of passing multiple results back.

The alternatives that I see are to use script local variables or to
pass an empty parameter by reference and have the function fill it.
Does anyone have any other ideas or recommendations?

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

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


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


Calling Rev Compiler On Command Line

2006-03-21 Thread Scott Kane
Hi,

Is there are method (I've checked the doc's and 
found nothing) of calling the compiler in Rev
without loading the IDE?

TIA

Scott

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.6/287 - Release Date:
21/03/2006
 

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


Re: Making the move...

2006-03-21 Thread Sarah Reichelt
On 3/21/06, Geoff Canyon <[EMAIL PROTECTED]> wrote:
> Do you have an example? I agree that if you end up passing in a
> handful of arguments by reference, you haven't accomplished much by
> breaking out the routine. The question is if there isn't a better way
> to slice the routine, where that wouldn't be necessary.
>

OK, I have a better example. Say I have a data set and I need to loop
through it and extract three different pieces of information e.g. a
list of the 4th column in each line, a list of lines that match a
certain set of criteria, and a cumulative total obtained by adding a
certain column in each line.

Each of these could be done in a separate function, but that would
mean looping through the data set three times. With a large data set,
it is significantly faster to loop once, filling all three new
variables in the single loop. If I separate this off into a separate
function, then I need a way of passing multiple results back.

The alternatives that I see are to use script local variables or to
pass an empty parameter by reference and have the function fill it.
Does anyone have any other ideas or recommendations?

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


Progress Made?

2006-03-21 Thread Arthur Urban
Has there been any progress with the perpetual crashing in WinXP? I 
literally save every couple of minutes because of the instability of the 
IDE. I would like to note to any Rev Developers that might be listening 
though, is that the crash potential is the highest when I have text 
selected in the script editor. Obviously it does not crash every time 
text is selected, but if I know I'm going to cut/paste a number of lines 
of code, or comment/uncomment them, I save first. Selecting the text 
itself does not invoke the crash, but attempting to do other things 
(like click in the selected text, or making Rev think I'm dragging text) 
these seem to be real catalysts for the crash scenario.


Can we please get this fixed? Surely the Rev Developers themselves user 
their own tool on WinXP. It must be crashing like crazy for them too, no?

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


Re: Acessing button scripts in a HC stack ?

2006-03-21 Thread simplsol

Hello from San Dimas,
I'm missing something here.
Why not just have Rev open the HC stack, this will convert it to a Rev 
stack? You would be able to access all of the button and field scripts 
- and do whatever you want with them. You could then write any Rev 
script needed to import/export or work with the data in what is now a 
Rev stack. This will not harm the original HC stack - as you will be 
working from a Rev-converted copy in RAM.

Paul Looney

-Original Message-
From: Francis Nugent Dixon <[EMAIL PROTECTED]>
To: use-revolution@lists.runrev.com
Sent: Tue, 21 Mar 2006 23:31:13 +0100
Subject: Acessing button scripts in a HC stack ?

  Hi from Paris, 
 
I thought that I had been explicit, but apparently not ! 
 
From a Rev 2.6.1 stack, I want to open a HC stack (at the 
same time), examine it visually, type a name into a field in 
the Rev stack which corresponds to a button that I see in 
the HC stack. Then I want to hit a button in the Rev stack 
which picks up the script from that button in the HC stack, 
and returns it to the Rev stack where I can play with it, using 
a Rev script. 
 
I also want to do the same with scripts from fields. 
 
"Reasonable request - no other interest" 
 (Only the very best - Tycoon - 1992 - Peter Kingsbery) 
 
Please don't ask me why I don't use "Cut" and "Paste" . 
 
All of this is with the object of automating (as far as I can) 
my HC to Rev conversions. Building the stacks is a piece 
of cake with Rev, but modifying the scripts is a pain, so I do 
it .. using a script . of course ! My problem is bringing 
the script over to Rev . 
 
-Francis 
 
"Nothing should ever be done for the first time !" 
 
___ 
use-revolution mailing list 
[EMAIL PROTECTED]
 Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences: 

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

   
___

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


Tabstops

2006-03-21 Thread Sarah Reichelt
On 3/22/06, Robert Sneidar <[EMAIL PROTECTED]> wrote:
> Wow thanks Sarah that is huge! I didn't see that anywhere in the docs
> but I probably didn't look closely enough.
>
> But no I have an odd thing happenning. I can only set columns widths
> up to 120. Anything over is interpreted as width-120 so that if I set
> the width to 125 I get a column 5 pixels wide. Odd huh? There is
> probably a max width for the columns property I need to set. I will
> dig around. I am going to have to get used to that again.
>

The tabstops are a cumulative number representing the pixels from the
left of the field for each stop. If you set them to "120,125" the
first column will be 120 pixels wide and all other columns will be 5
pixels wide.

I recommend Frederic Rinaldi's revTabRuler plugin which now comes as
one the the standard plugins in your Rev installation. It allows you
to set tabStops graphically by dragging  them along in his palette. I
wrote an article about it some time ago for revJournal
. Just ignore the
installation instructions as it should already be in the plugins menu.

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


Re: Acessing button scripts in a HC stack ?

2006-03-21 Thread J. Landman Gay

Francis Nugent Dixon wrote:

Hi from Paris,

I thought that I had been explicit, but apparently not !

 From a Rev 2.6.1 stack, I want to open a HC stack (at the
same time), examine it visually, type a name into a field in
the Rev stack which corresponds to a button that I see in
the HC stack. Then I want to hit a button in the Rev stack
which picks up the script from that button in the HC stack,
and returns it to the Rev stack where I can play with it, using
a Rev script.

I also want to do the same with scripts from fields.


All newly imported HC stacks have their HCAddressing property set to 
true. That means you must reference the button, or any other object, 
just as HC does. If you say "button 1" then Rev will assume the button 
is a card button. If you want to specify a background button you must 
reference it as "bg btn 1". Same for fields: "fld 1" means a background 
field, and if you want to refer to a card field, you must specify "cd 
fld 1".


If you set the HCAddressing of the stack to false, after that you can 
refer to the objects in the Revolution way, without specifying "card" or 
"background".


Another thing that may be happening is that when you click on the Rev 
stack, your scripts will try to find "button 1" in the Rev stack. 
Instead, you must specify the stack:


  get the script of bg btn 1 of this cd of stack "myImportStack"

Another way to do the same thing is to set the defaultstack:

  set the defaultstack to "myImportStack"
  get the script of bg btn 1 of this cd



Please don't ask me why I don't use "Cut" and "Paste" .


I won't, though it would probably be easier. But I do wonder why you 
don't just use the imported stack. Why move everything? I have converted 
more HC stacks than probably anyone (it's a lot of what my company does) 
and I have never had to rebuild a HC stack from scratch.


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


Re: Acessing button scripts in a HC stack ?

2006-03-21 Thread Sarah Reichelt
>  From a Rev 2.6.1 stack, I want to open a HC stack (at the
> same time), examine it visually, type a name into a field in
> the Rev stack which corresponds to a button that I see in
> the HC stack. Then I want to hit a button in the Rev stack
> which picks up the script from that button in the HC stack,
> and returns it to the Rev stack where I can play with it, using
> a Rev script.

Thanks for explaining further, now I hope I understand and I think I
have the solution :-)

When you open a HyperCard stack in Rev, the property called
"HCaddressing" is set to true. This means that cards & fields are
referred to as "card fields", "bg fields", "card buttons" & "bg
buttons". As in HyperCard, the default is for fields to be background
fields and buttons to be card buttons.

If you are just trying to access them using "field" or "button", it
will work for some but not for all. Your importer script needs to work
out whether the object is a card or background object and address it
accordingly.

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


Re: revXMLfindNodecontent

2006-03-21 Thread Sarah Reichelt
> I am currently working through the XML docs and am desparately
> looking for
> something llike -> "revXMLfindNodeBycontent"
>
> There is a "revXMLmatchingNode" but that only lets me find the node
> that has an
> atrribute with a specific value!
>
> Do I really have to cycle through the XMLtext or something line by
> line to find
> a node by its content?
>
> Please tell me it ain't so :-/


It is so :-(
I found the best compromise was to put the most important search items
as attributes, instead of elements. You can search by attribute.

However I agree, it seems to be an obvious missing feature that should
be part of the library.

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


Re: Application Browser Anomaly

2006-03-21 Thread Sarah Reichelt
> Both last night and now this morning I have done something that sets
> the Application Browser in a state such that double-clicking on a
> substack opens the script of the substack instead of opening the
> substack itself and double-clicking on a card of an unopened subStack
> opens the script of that card..

Go to Rev's Preferences, the Application Browser section. There you
can set exactly what you want to happen when you double-click with or
without modifier keys.

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


Re: Acessing button scripts in a HC stack ?

2006-03-21 Thread Bridger Maxwell
Try using AppleEvents.  I don't have a mac nearby to test it on, but I have
seen it work.  I don't think the Hypercard program needs to have a handler
to receive this.

request "the script of btn " & (cd fld "ButtonName) from program "Hypercard"

On 3/21/06, Francis Nugent Dixon <[EMAIL PROTECTED]> wrote:
>
> Hi from Paris,
>
> I thought that I had been explicit, but apparently not !
>
> From a Rev 2.6.1 stack, I want to open a HC stack (at the
> same time), examine it visually, type a name into a field in
> the Rev stack which corresponds to a button that I see in
> the HC stack. Then I want to hit a button in the Rev stack
> which picks up the script from that button in the HC stack,
> and returns it to the Rev stack where I can play with it, using
> a Rev script.
>
> I also want to do the same with scripts from fields.
>
> "Reasonable request - no other interest"
>   (Only the very best - Tycoon - 1992 - Peter Kingsbery)
>
> Please don't ask me why I don't use "Cut" and "Paste" .
>
> All of this is with the object of automating (as far as I can)
> my HC to Rev conversions. Building the stacks is a piece
> of cake with Rev, but modifying the scripts is a pain, so I do
> it .. using a script . of course ! My problem is bringing
> the script over to Rev .
>
> -Francis
>
> "Nothing should ever be done for the first time !"
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Combined Events

2006-03-21 Thread Cubist
In a message dated 3/21/06 8:14:18 AM, "Jeff Honken" <[EMAIL PROTECTED]> 
writes:
>Is there any way to combine events so you don't have to have redundant
>code.  I would like the same code to run on both the "on returnInField"
>and "on mouseDown" events.  Jeff
   In general, the solution to this problem looks something like this:

on returnInfield
  DoStuff
end returnInField

on mouseDown
  DoStuff
end mouseDown

on DoStuff
  real code goes here
  code real here goes
  here code real goes
end DoStuff

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


Re: Printing DLOG on Mac OS X

2006-03-21 Thread Frank D. Engel, Jr.

Other OS X programs can do this (Apple's Mail program, for example)...

On Feb 17, 2006, at 11:04 AM, Klaus Major wrote:


Hi Yves,


Hi list

is there a way to get the printing DLOG on mac OS X appearing in 
sheet mode ?


I'm not sure, but iI think this is not possible since the dialogs do 
not "belong" to Rev.



Thank you.

Greetings.

Yves COPPE
[EMAIL PROTECTED]


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

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

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



---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.

$



___
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com

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


Re: Draw spokes on a wheel

2006-03-21 Thread Mark Talluto


On Mar 21, 2006, at 1:44 PM, Nicolas Cueto wrote:


BTW, what is "TG"?



Turtle Graphics.


Mark Talluto
--
CANELA Software
http://www.canelasoftware.com

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


Re: Draw spokes on a wheel

2006-03-21 Thread Mark Talluto


On Mar 21, 2006, at 5:00 AM, Jim Lyons wrote:

I used Revolution a couple of years ago to teach middle school kids  
interested in programming. Then I discovered NetLogo, an agent- 
based modelling system that traces its roots back to the original  
Logo. It is perfect for beginners, and has the advantage of  
immediate feedback and incremental development, just like HyperCard  
and Rev. It's free and being actively developed by the Center for  
Connected Learning at Northwestern University,


http://ccl.northwestern.edu/netlogo/



Hi Jim,

Thanks for the link.  I'll take a look at it.  Sounds interesting.

Mark Talluto
--
CANELA Software
http://www.canelasoftware.com

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


Acessing button scripts in a HC stack ?

2006-03-21 Thread Francis Nugent Dixon

Hi from Paris,

I thought that I had been explicit, but apparently not !

From a Rev 2.6.1 stack, I want to open a HC stack (at the
same time), examine it visually, type a name into a field in
the Rev stack which corresponds to a button that I see in
the HC stack. Then I want to hit a button in the Rev stack
which picks up the script from that button in the HC stack,
and returns it to the Rev stack where I can play with it, using
a Rev script.

I also want to do the same with scripts from fields.

"Reasonable request - no other interest"
 (Only the very best - Tycoon - 1992 - Peter Kingsbery)

Please don't ask me why I don't use "Cut" and "Paste" .

All of this is with the object of automating (as far as I can)
my HC to Rev conversions. Building the stacks is a piece
of cake with Rev, but modifying the scripts is a pain, so I do
it .. using a script . of course ! My problem is bringing
the script over to Rev .

-Francis

"Nothing should ever be done for the first time !"


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


Re: HTML tags in XML

2006-03-21 Thread Stephen Barncard
See if URLEncode() and URLDecode() will package and recover your text 
and/or htmltext to XML's liking...it works for me on other stuff...


sqb


On Mar 21, 2006, at 7:43 AM, Devin Asay wrote:


Hi Folks,

Is it possible to store html styled text in an xml document and 
then successfully retrieve the text with html markup intact?

...


Here are my comments.
Some of the text is colored red & 
blue


...

Is there a way to do this? Will I have to resort to saving the 
RTFtext in the xml node or something like that?


Hi Devin,

You need to escape ", ', <, and < when entering data into an XML 
node.  I can't remember if RevXML has any handlers for this or if 
you just have to do it by hand.  For an example of the escape 
characters just do a Google search for "xml escape characters".


You may want to check out Ken Ray's XML library.  I haven't used it 
but browsing through the API, there is a stsXML_replaceEntities that 
looks like it would do what you want.


--
Trevor DeVore
Blue Mango Learning Systems - http://www.bluemangolearning.com
[EMAIL PROTECTED]


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


Re: Draw spokes on a wheel

2006-03-21 Thread Nicolas Cueto
> I think Rev might benefit from the addition of TG-type controls, but
it
> seems like a long shot to me. I have built a tool in Rev to work
with
> NetLogo files if anyone does take an interest. (It needs to be
updated
> -- I can't
> keep up with them!)

Please, Jim, I'm interested in the tool.
And if it's already at Rev Online's
"User spaces", what's your user
username?

BTW, what is "TG"?

Thanks.

--
Nicolas Cueto

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


Re: DRM for Images and Text in Stacks

2006-03-21 Thread Richard Gaskin

Scott Rossi wrote:

Recently, I wrote:


field contents are
encrypted along with the rest of the stack data when a stack is password
protected, while custom props are not


...or maybe custom props *are* encrypted.  That's weird, I could have sworn
that custom props were visible when viewing stack data in a text editor, but
now (Rev 2.6) it doesn't seem so.  Perhaps this used to be the case with
older versions of Rev.


As I recall, when the possibilty of encrypting custom props along with 
scripts was brought up on the improve-rev list, it was shot down because 
it would kill access to those properties.


Fortunately a quick test here confirms what you've found: custom props 
are indeed encrypted when the password is set, but only on disk -- you 
can still view and edit the data from scripts, such as the IDE's.


So while it keeps people who don't have Rev from extracting data, it 
still leaves data vulnerable to those who do.


Isn't there a BZ request for SC-style password protection?  In SC 
setting the password prevents the stack from being opened in the IDE. 
If there isn't already a request for this maybe someone should post one, 
with recommendations on what that password property should be called.


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


Re: Making the move...

2006-03-21 Thread Rob Cozens

Hi Geoff ,


Wow -- so what does this do?



From Serendipity Reference:

>>

The findSDBRecord command checks for the existence & locked/unlocked 
status of a record with the record type and key specified in line 1 of 
sdbBuffer.  It can also be used to unlock a record that was previously 
locked but not changed or to return a count of the number of records 
with certain field contents.


findSDBRecord is undoubtedly the most complex, but also the most 
powerful, SDB command.  It is the only SDB command that will retrieve 
information from multiple records in a single call.  As such, it is 
ideally suited to retrieve specified fields from a range of records for 
reporting or analysis.


exactKey (boolean) defaults to true, in which case findSDBRecord 
returns card id "0" if the exact key is not in the database; otherwise 
findSDBRecord will return the id for the record with the closest higher 
key of the specified record type.


If fieldDelimiter is empty findSDBRecord simply returns the Revolution 
card id of the record in word 4 of the result.  If fieldDelimiter is 
not empty, itemList contains a list of field references (one per line) 
to retrieve.  A field reference can take two forms:


* a number that resolves to the field's ordinal position in the record 
(0 = the record key)
* an SDB field reference ([Record Type]&":"&[dataname]), which the SDB 
handlers will resolve to a field ordinal.


These two forms of reference can be used interchangably EXCEPT for 
record types that have no Dictionary definition in the database.


findSDBRecord then puts a delimited list of the contents of the fields 
into lines 2 to -1 of sdbBuffer.


setPosition (boolean)  defaults to true.

unlockRecord (boolean) defaults to false.  If true and the record was 
locked by this user, it will be removed from the locked record table.


findSDBRecord can be passed search criteria that must be met before a 
record is retrieved, and instructed to search forward or backward from 
the key if the key's record does not meet the search criteria until the 
first acceptable record is found.


searchForward (boolean) determines search direction; default is true 
(forward).


searchCriteria contains one or more lines in the following format:
-- field reference,test,target,and/or
* field reference is the field's ordinal or Data Dictionary name, as 
defibed above.

* tests: "=" ,"<>" ,"in", "not in", "<", ">", "<=", or ">="
* target is the result to which the item is to be compared; it must be 
a value, not a reference to another field in the record

* "and" or "or" is not needed on last line of search criteria

Example search criteria (assumes the field is defined in Record Type, 
"TYPE" as dataname "department"):

"TYPE:department",>,21,and
"TYPE:department",<,34
Selects only records where the value of field "department" is between 
22 and 33.


If cutoffKey is not empty, findSDBRecord will discontinue the search 
when it encounters a record with a key > cutoffKey if searching forward 
or < cutoffKey if searching backward; otherwise the search will end 
with the first matching record if recordDelimiter is empty or the 
last/first record if it is not.


If recordDelimiter is empty, findSDBRecord returns information for the 
first matching record it encounters.  If recordDelimiter is not empty, 
findSDBRecord puts empty into sdbBuffer and returns the number of 
records matching the search criteria in word four of the rersult if the 
fieldDelimiter is empty; otherwise it returns the information for each 
matching record found between the key passed in sdbBuffer and cutoffKey 
or the last/first record of the specified record type.  This 
information will be found in lines 2 to -1 of sdbBuffer.  (The 
recordDelimiter is used to delimit individual records.)


Note that findSDBRecord will return a locked record error if the record 
exists but is locked by another user.


<<

Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)

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


Re: DRM for Images and Text in Stacks

2006-03-21 Thread Scott Rossi
Recently, I wrote:

> field contents are
> encrypted along with the rest of the stack data when a stack is password
> protected, while custom props are not

...or maybe custom props *are* encrypted.  That's weird, I could have sworn
that custom props were visible when viewing stack data in a text editor, but
now (Rev 2.6) it doesn't seem so.  Perhaps this used to be the case with
older versions of Rev.

Regards,

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

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


Re: DRM for Images and Text in Stacks

2006-03-21 Thread Scott Rossi
Recently, Sivakatirswami wrote:

> I think this comes close to making the images at least some  what
> obscurely stored.
> 
> --create a substack
> --import images into custom props as jpegs,
> --One could put these props in something a "available" as a card
> property or something very obscure, like a transparent invisible
> graphic.
> --set the uStuff1 of btn "obscureObject" to (url ("binfile:/somePath/
> foo.jpg"))
> --scripts then can call the images for display:
> put the uStuff of btn "obscureObject" into img "DisplayImageNow"
> -- then encrypt the stack with a password. (all this does is prevent
> another developer from seeing the scripts that display the custom prop)

One thing you might want to consider is putting the image data into fields
as opposed to custom properties, the reason being that field contents are
encrypted along with the rest of the stack data when a stack is password
protected, while custom props are not.  You can still display images from
the fields' contents, and the fields themselves cannot be cut and pasted.

I don't know who you audience is but I would guess the likelihood of your
users owning a copy of Rev is lower than folks' ability to snoop around file
contents.

Regards,

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

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


Re: Get a handler from a script

2006-03-21 Thread J. Landman Gay

Dick Kriesel wrote:

On 3/20/06 9:30 PM, "Mark Wieder" <[EMAIL PROTECTED]> wrote:



The best solution I've come up with for removing block comments is

put the script of SomeObject into tScript
put token 1 to -1 of tScript into tScript




This sounded really cool, but I can't get it to work. :(


Really? What isn't it doing? For me it removes all comments that are
outside handlers (which is where my block comments are)...



That technique appears to me to work for block comments and line comments
that appear in the script either before the first compilable code or after
the last compilable code.  But it overlooks block and line comments that are
interspersed within the compilable code, and undelimited comments outside
handlers.


That was it. I had put a block comment in the middle of the script.

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


Re: HTML tags in XML

2006-03-21 Thread Trevor DeVore

On Mar 21, 2006, at 11:10 AM, Mark Wieder wrote:

Yes and no. As long as you have the data stored properly encoded then
you should be able to decode it on the way out:

set the htmlText of field "grunt" to urlDecode(xmlData)


Oh, I see what you are getting at.  Yeah, that would work but  
wouldn't this only work if the XML was only used in Rev.  Wouldn't it  
cause problems for other software that tried to read your XML document?


--
Trevor DeVore
Blue Mango Learning Systems - www.bluemangolearning.com
[EMAIL PROTECTED]


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


Re: revXMLfindNodecontent

2006-03-21 Thread Joel Guillod

Hi Ken,


On 3/21/06 10:21 AM, "Klaus Major" <[EMAIL PROTECTED]> wrote:

Hi all,
I am currently working through the XML docs and am desparately
looking for
something llike -> "revXMLfindNodeBycontent"
...

Sorry, Klaus, AFAIK you can't find data information with the revXML
DLL.


Damn!!! What a pity :-/

Hi Mark, please add this one to Rev 2.71, I think there is still time
for this and I really need it! ;-)


Are you dreaming Klaus? Or do you have preferential treatment from  
Runrev? If yes, kindly suggest the manager to (censured, I am wasting  
my time). Actually I filled an enhancement request (#1893) on  
2004-07-26 for a "revInsertXMLNode treeID,siblingPath,nodeContents"  
and sent a recall on 2005-12-12 but the status is still UNCONFIRMED!
So, be patient! I know that I practice medicine but usually not that  
side! Or build your own externals for xml, xpath, etc.

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


Re: HTML tags in XML

2006-03-21 Thread Mark Wieder
Trevor-

Tuesday, March 21, 2006, 9:43:36 AM, you wrote:

> On Mar 21, 2006, at 9:34 AM, Mark Wieder wrote:

>> Trevor-
>>
>> Tuesday, March 21, 2006, 8:12:11 AM, you wrote:
>>
>>> You need to escape ", ', <, and < when entering data into an XML
>>> node.  I can't remember if RevXML has any handlers for this or if you
>>> just have to do it by hand.  For an example of the escape characters
>>> just do a Google search for "xml escape characters".
>>
>> I think urlEncode() will do the trick here.

> I don't think this will work in this case.  For example, urlEncod 
> ("hi") would give you:

> %3Cp%3Ehi%3C%2Fp%3E

> When what you really want is:

> 

hi

Yes and no. As long as you have the data stored properly encoded then you should be able to decode it on the way out: set the htmlText of field "grunt" to urlDecode(xmlData) -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution

Re: HTML tags in XML

2006-03-21 Thread Trevor DeVore

On Mar 21, 2006, at 10:30 AM, Ken Ray wrote:

Actually, you can *retrieve* CDATA with revXMLNodeContents, but you  
can't
*set* it. That's part of the reason I'm still updating my XML  
Library. ;-)


...

Trying it with CDATA tags already around it:

revPutIntoXMLNode tID,"/root/test",""

put revXMLText(tID)

RETURNS:
  
  This is another
test]]>


Thanks for the info Ken.  Your XML lib looks very cool.


--
Trevor DeVore
Blue Mango Learning Systems - www.bluemangolearning.com
[EMAIL PROTECTED]


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


Re: [?] Mac Classic, 2.6.1, MySQL

2006-03-21 Thread Ruslan Zasukhin
On 3/21/06 7:33 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> Sean,
> Permit me an "off the wall" question...
> Do you REALLY need to support OS 9?
> Any computer Apple has made since 1998 (8 years!) will run some flavor
> of OS X (although they probably need more RAM). The time and effort you
> would put into supporting OS 9 could be invested in making your OS X
> product even better - giving your customers another reason to make the
> move. OS 9 is dead, or at least dying, first there were new computers
> that would not boot into 9, then there were new computers that wouldn't
> run 9; as used and reburb computers run out there will be no OS 9
> options for your customers.
> We had originally intended to port our HC business system to Rev in OS
> 9 and OS X. Then we decided that the customers running OS 9 had a good
> business system they could continue to use (our current HC one). New
> customers and all current customers moving to OS X would not care about
> OS 9 compatibility.
> Your situation may be different.
> Just a thought.

I'd like support this point. :-)

It is impossible forever try support old, dead, dying versions of OS.

Apple itself have stop support OS9.
Microsoft have stop support even Win98 if I not mistaken.

I can understand if you support already existed app,
But develop new app for old hardware/OS is not best idea.

Forcing customers to upgrade old MACs you help Apple also :-)

You help self as developer, because it is dream for a developer to trash
this Zoo with Classic, Carbon, ... support, and leave only with OS X MACHO
version on MAC,and only Win XP version on Windows with their modern
features.

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]


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


Re: HTML tags in XML

2006-03-21 Thread Ken Ray
On 3/21/06 11:51 AM, "Trevor DeVore" <[EMAIL PROTECTED]> wrote:

> On Mar 21, 2006, at 9:41 AM, Ken Ray wrote:
> 
>>  My XML Library handles getting and setting CDATA information for a
>> node quite
>> easily
> 
> Ken,
> 
> This is good to know.  The RevXML external doesn't handle CDATA, does
> it?  I seem to recall that when I tested using CDATA with RevXML it
> didn't work which is kind of a bummer.

Actually, you can *retrieve* CDATA with revXMLNodeContents, but you can't
*set* it. That's part of the reason I'm still updating my XML Library. ;-)

Here's an example:

Contents of Field 1:
--



  



put fld 1 into tXML
put revCreateXMLTree(tXML,true,true) into tID
put revXMLNodeContents(tID,"/root/test")

RETURNS:
   This is a test

put revXMLText(tID)

RETURNS:
  
  


Now, we try to set the data:

revPutIntoXMLNode tID,"/root/test","This is another test"
put revXMLText(tID)

RETURNS:
  
  This is another test


Trying it with CDATA tags already around it:

revPutIntoXMLNode tID,"/root/test",""
put revXMLText(tID)

RETURNS:
  
  This is another
test]]>

HTH,

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


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


Re: Database Conversion

2006-03-21 Thread Ruslan Zasukhin
On 3/21/06 7:03 PM, "Robert Sneidar" <[EMAIL PROTECTED]> wrote:

Hi Robert,

> Does anyone know of any good dBase/Foxpro table to sql/Valentina
> conversion utilities?

> I can write one in Revolution I suppose, but I
> would have a lot of front end work to do first, and this project is
> already huge.

Valentina Studio can do ODBC import from anything have ODBC driver.


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]


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


RE: Tabbed group background thingies

2006-03-21 Thread Andy Calloway
Ahh - It's down to not creating a new card by the looks of things. Now, how
to create a card and do a tab thing...

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Dan Shafer
> Sent: 21 March 2006 17:52
> To: How to use Revolution
> Subject: Re: Tabbed group background thingies
> 
> Probably you're just missing hide/show commands. That's the 
> "trick" in tabbed designs. Depending on how you've managed 
> the tabs, you may need to do that explicitly.
> 
> Check out the great tutorial at
> http://www.sosmartsoftware.com/?r=revolution_didacticiels&l=en
> 
> 

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


Re: revXMLfindNodecontent

2006-03-21 Thread Ken Ray

>> 
>> My newly-released XML Library 2.0 will let you do it -
>> "stsXML_FindNodesByData". And you can use it along with the revXML
>> DLL with
>> no interaction issues.
>>   http://www.sonsothunder.com/products/xmllib/xmllib.htm
>> 
> 
> I know, Ken, i know, but I already paid several thousand bucks over
> the years for Rev
> and cannot spend another 20 right now ;-)

No need, Klaus - the Basic version of the Library will do the finding for
you for free - the only cost is when you need to "write" not "read". But
you're right that it should be made part of the revXML.DLL...


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

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


Re: Combined Events

2006-03-21 Thread Jim Ault
Why are you using "theButton" as a parameter?

First, where is the mouseDown handler?

In the message path, it should be either
in the button or field the user clicks
or in the card, stack, or back script behind the button or field.

If the mouseDown handler is in the button or field, use
on mouseDown
since the button clicked is known.

If the mouseDown handler is in the card or stack script then use

on mouseDown
   answer the target
   if the target contains "button 1 " then
  -- a button was clicked and its number is 1
  ...do this
   end if
end mouseDown

Jim Ault
Las Vegas

On 3/21/06 9:43 AM, "Jeff Honken" <[EMAIL PROTECTED]> wrote:

> Jim,
>   That's exactly what I'm looking for but why on a windows box doesn't
> the left mouse click work.  Here's the code:
> 
> on returnInField
>   hello
> end returnInField
> 
> on mouseDown theButton
>   if theButton is 1 then
> hello
>   else
>   end if
> end mouseDown 
>  
>  
> on hello
>   answer "Hello World"
> end hello
> 
> 
> Jeff
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jim Ault
> Sent: Tuesday, March 21, 2006 10:09 AM
> To: How to use Revolution
> Subject: Re: Combined Events
> 
> oops. Too early in the morning.. wrong answer since I miss read the
> question.
> 
> 
> 
> On 3/21/06 9:06 AM, "Jim Ault" <[EMAIL PROTECTED]> wrote:
> 
>> The usual practice is to make a handler either
>> a function or a procedure
>> that is called from either
>> more than one handler or
>> more than one event or
>> both events and handlers
>> 
>> 
>>> on returnInField
>>hello
>>> end returnInField
>>> 
>>> on mouseDown
>>hello
>>> end mouseDown
>> 
>> on hello
>>play annoyingMusic.aif
>>get word 1 of the long date
>>answer "Hello, it's "& it
>> end hello
>> 
>> 
>> The following does not make sense in xTalk
>> on thisMessage or thatMessage
>> 
>> end thisMessage or thatMessage
>> 
>> Jim Ault
>> Las Vegas
>> 
>> On 3/21/06 8:39 AM, "Jeff Honken" <[EMAIL PROTECTED]> wrote:
>> 
>>> Wouter,
>>>   Thank you for the reply but I'm a little confused with your answer.
> I
>>> want the same code "answer Hello" to run in a field no matter if I
> click
>>> on the field with the mouse or press the enter key in the field and I
>>> don't want to:
>>> 
>>> on returnInField
>>> answer "Hello"
>>> end returnInField
>>> 
>>> on mouseDown
>>>   answer "Hello"
>>> end mouseDown
>>> 
>>> 
>>> What I would like is something like this that will work:
>>> 
>>> on returnInField or mouseDown
>>> answer "Hello"
>>> end returnInField or mouseDown
>>> 
>>> 
>>> 
>>> 
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On Behalf Of Wouter
>>> Sent: Tuesday, March 21, 2006 9:13 AM
>>> To: How to use Revolution
>>> Subject: Re: Combined Events
>>> 
>>> for example:
>>> 
>>> on returninfield
>>>mousedown
>>> end returninfield
>>> 
>>> Greetings,
>>> Wouter
>>> 
>>> On 21 Mar 2006, at 17:03, Jeff Honken wrote:
>>> 
 
 Is there any way to combine events so you don't have to have
> redundant
 code.  I would like the same code to run on both the "on
 returnInField"
 and "on mouseDown" events.  Jeff
>>> 
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>> 
>>> 
>>> 
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
> subscription
>>> preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
>> 
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
> subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution


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


Mac OS-X standalone from Windows machine

2006-03-21 Thread Levi Kendall
Hi All,
  I'm having a bit of a problem making a standalone application for OS-X
from a Windows machine.  Actually making it is not the problem really,
running it is.  The save to standalone works fine and I end up with what I
am assuming is the executeable in a structure that looks as such:

My Application.app \ Contents \ MacOS \ My Application

  What seems to be the problem is the file at the end "My Application" does
not get the execute flag set on it when being transfered to the OS-X
filesystem.  My current method of transport was simply to zip the entire
directory and then unzip the file on the Mac.  This would leave the
directory structure as is, which I'm assuming is necessary.  However the
problem is the "My Application" executeable needs to have CHMOD run on it in
order to properly execute because of the execute flag missing on the OS-X
filesystem.

  Does anyone have any solution to work around this?  Is it necessary to
have some kind of "installer" program to properly set this up on the OS-X
end?  Or is there another way to handle it?  If at all possible, I would
like to be able to handle this from the Windows machine, rather than
actually needing an OS-X box.

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


Re: Tabbed group background thingies

2006-03-21 Thread Dan Shafer
Probably you're just missing hide/show commands. That's the "trick" in
tabbed designs. Depending on how you've managed the tabs, you may need to do
that explicitly.

Check out the great tutorial at
http://www.sosmartsoftware.com/?r=revolution_didacticiels&l=en



On 3/21/06, Andy Calloway <[EMAIL PROTECTED]> wrote:
>
> Having read a bit of Dan's book and gone through a couple of the RunRev
> demos, I thought I'd try to apply what I'd just learned so I went back to
> a
> stack with tabs on it. It's got three tabs and I've added some text
> fields,
> buttons etc to some of them. It worked fine, click on a tab and the new
> objects leap into view.
>
> Then I got too cocky and added another tab between the first and second
> one.
> Now, when I click on it, the items from the previous selected tab remain
> in
> place where I would really expect it to be blank.
>
> Have I missed something here?
>
> Andy.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



--
~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"
>From http://www.shafermediastore.com/tech_main.html
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML tags in XML

2006-03-21 Thread Trevor DeVore

On Mar 21, 2006, at 9:41 AM, Ken Ray wrote:

 My XML Library handles getting and setting CDATA information for a  
node quite

easily


Ken,

This is good to know.  The RevXML external doesn't handle CDATA, does  
it?  I seem to recall that when I tested using CDATA with RevXML it  
didn't work which is kind of a bummer.



--
Trevor DeVore
Blue Mango Learning Systems - www.bluemangolearning.com
[EMAIL PROTECTED]


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


Re: revXMLfindNodecontent

2006-03-21 Thread Klaus Major

Hi Ken,


On 3/21/06 10:21 AM, "Klaus Major" <[EMAIL PROTECTED]> wrote:

Hi all,
I am currently working through the XML docs and am desparately
looking for
something llike -> "revXMLfindNodeBycontent"
There is a "revXMLmatchingNode" but that only lets me find the node
that has an
atrribute with a specific value!
Do I really have to cycle through the XMLtext or something line by
line to find
a node by its content?
Please tell me it ain't so :-/


Sorry, Klaus, AFAIK you can't find data information with the revXML  
DLL.


Damn!!! What a pity :-/

Hi Mark, please add this one to Rev 2.71, I think there is still time  
for this

and I really need it! ;-)


However...


My newly-released XML Library 2.0 will let you do it -
"stsXML_FindNodesByData". And you can use it along with the revXML  
DLL with

no interaction issues.
  http://www.sonsothunder.com/products/xmllib/xmllib.htm



I know, Ken, i know, but I already paid several thousand bucks over  
the years for Rev

and cannot spend another 20 right now ;-)


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


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

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


Re: revXMLfindNodecontent

2006-03-21 Thread Ken Ray
On 3/21/06 10:21 AM, "Klaus Major" <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> I am currently working through the XML docs and am desparately
> looking for
> something llike -> "revXMLfindNodeBycontent"
> 
> There is a "revXMLmatchingNode" but that only lets me find the node
> that has an
> atrribute with a specific value!
> 
> Do I really have to cycle through the XMLtext or something line by
> line to find
> a node by its content?
> 
> Please tell me it ain't so :-/

Sorry, Klaus, AFAIK you can't find data information with the revXML DLL.
However...



My newly-released XML Library 2.0 will let you do it -
"stsXML_FindNodesByData". And you can use it along with the revXML DLL with
no interaction issues.

  http://www.sonsothunder.com/products/xmllib/xmllib.htm




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

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


Re: HTML tags in XML

2006-03-21 Thread Trevor DeVore

On Mar 21, 2006, at 9:34 AM, Mark Wieder wrote:


Trevor-

Tuesday, March 21, 2006, 8:12:11 AM, you wrote:


You need to escape ", ', <, and < when entering data into an XML
node.  I can't remember if RevXML has any handlers for this or if you
just have to do it by hand.  For an example of the escape characters
just do a Google search for "xml escape characters".


I think urlEncode() will do the trick here.


I don't think this will work in this case.  For example, urlEncod 
("hi") would give you:


%3Cp%3Ehi%3C%2Fp%3E

When what you really want is:

hi

-- Trevor DeVore Blue Mango Learning Systems - www.bluemangolearning.com [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution

RE: Combined Events

2006-03-21 Thread Jeff Honken
Jim,
  That's exactly what I'm looking for but why on a windows box doesn't
the left mouse click work.  Here's the code:

on returnInField
  hello
end returnInField

on mouseDown theButton
  if theButton is 1 then
hello
  else
  end if
end mouseDown 
 
 
on hello
  answer "Hello World"
end hello


Jeff
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Ault
Sent: Tuesday, March 21, 2006 10:09 AM
To: How to use Revolution
Subject: Re: Combined Events

oops. Too early in the morning.. wrong answer since I miss read the
question.



On 3/21/06 9:06 AM, "Jim Ault" <[EMAIL PROTECTED]> wrote:

> The usual practice is to make a handler either
> a function or a procedure
> that is called from either
> more than one handler or
> more than one event or
> both events and handlers
> 
> 
>> on returnInField
>hello
>> end returnInField
>> 
>> on mouseDown
>hello
>> end mouseDown
> 
> on hello
>play annoyingMusic.aif
>get word 1 of the long date
>answer "Hello, it's "& it
> end hello
> 
> 
> The following does not make sense in xTalk
> on thisMessage or thatMessage
> 
> end thisMessage or thatMessage
> 
> Jim Ault
> Las Vegas
> 
> On 3/21/06 8:39 AM, "Jeff Honken" <[EMAIL PROTECTED]> wrote:
> 
>> Wouter,
>>   Thank you for the reply but I'm a little confused with your answer.
I
>> want the same code "answer Hello" to run in a field no matter if I
click
>> on the field with the mouse or press the enter key in the field and I
>> don't want to:
>> 
>> on returnInField
>> answer "Hello"
>> end returnInField
>> 
>> on mouseDown
>>   answer "Hello"
>> end mouseDown
>> 
>> 
>> What I would like is something like this that will work:
>> 
>> on returnInField or mouseDown
>> answer "Hello"
>> end returnInField or mouseDown
>> 
>> 
>> 
>> 
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Wouter
>> Sent: Tuesday, March 21, 2006 9:13 AM
>> To: How to use Revolution
>> Subject: Re: Combined Events
>> 
>> for example:
>> 
>> on returninfield
>>mousedown
>> end returninfield
>> 
>> Greetings,
>> Wouter
>> 
>> On 21 Mar 2006, at 17:03, Jeff Honken wrote:
>> 
>>> 
>>> Is there any way to combine events so you don't have to have
redundant
>>> code.  I would like the same code to run on both the "on
>>> returnInField"
>>> and "on mouseDown" events.  Jeff
>> 
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
>> 
>> 
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution


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



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


Re: HTML tags in XML

2006-03-21 Thread Ken Ray
On 3/21/06 9:43 AM, "Devin Asay" <[EMAIL PROTECTED]> wrote:

> Is it possible to store html styled text in an xml document and then
> successfully retrieve the text with html markup intact?

Yes. You need to use a CDATA node instead of a normal element node. The
markup looks like this:

  

You can put anything into a CDATA node - it's ignored by the parser. My XML
Library handles getting and setting CDATA information for a node quite
easily - if your XML looked like this:



  


You could get the data with:

  put stsXML_GetNodeData("/root/myHTML") into tHTML

and set it with stsXML_SetNodeData.

By keeping it as CDATA you don't need to replace characters to get what you
want...


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

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


Tabbed group background thingies

2006-03-21 Thread Andy Calloway
Having read a bit of Dan's book and gone through a couple of the RunRev
demos, I thought I'd try to apply what I'd just learned so I went back to a
stack with tabs on it. It's got three tabs and I've added some text fields,
buttons etc to some of them. It worked fine, click on a tab and the new
objects leap into view.
 
Then I got too cocky and added another tab between the first and second one.
Now, when I click on it, the items from the previous selected tab remain in
place where I would really expect it to be blank.
 
Have I missed something here?
 
Andy.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML tags in XML

2006-03-21 Thread Mark Wieder
Trevor-

Tuesday, March 21, 2006, 8:12:11 AM, you wrote:

> You need to escape ", ', <, and < when entering data into an XML
> node.  I can't remember if RevXML has any handlers for this or if you
> just have to do it by hand.  For an example of the escape characters
> just do a Google search for "xml escape characters".

I think urlEncode() will do the trick here.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


Re: [?] Mac Classic, 2.6.1, MySQL

2006-03-21 Thread simplsol

Sean,
Permit me an "off the wall" question...
Do you REALLY need to support OS 9?
Any computer Apple has made since 1998 (8 years!) will run some flavor 
of OS X (although they probably need more RAM). The time and effort you 
would put into supporting OS 9 could be invested in making your OS X 
product even better - giving your customers another reason to make the 
move. OS 9 is dead, or at least dying, first there were new computers 
that would not boot into 9, then there were new computers that wouldn't 
run 9; as used and reburb computers run out there will be no OS 9 
options for your customers.
We had originally intended to port our HC business system to Rev in OS 
9 and OS X. Then we decided that the customers running OS 9 had a good 
business system they could continue to use (our current HC one). New 
customers and all current customers moving to OS X would not care about 
OS 9 compatibility.

Your situation may be different.
Just a thought.
Paul Looney

-Original Message-
From: Sean Shao <[EMAIL PROTECTED]>
To: use-revolution@lists.runrev.com
Sent: Mon, 20 Mar 2006 22:37:15 -0500
Subject: Re: [?] Mac Classic, 2.6.1, MySQL

   I've tried building the application on two different Mac OS 9.2.2 
machines (an old iMac and an old UMax ;-) but, as mentioned previously, 
the application crashes with an error of Type 1001 unless I switch the 
MySQL libraries then I get a "unsupported database type".. 

 
 So as it stands, I'm boned in this department...? I'll try the 2.5 and 
the Valentina work-arounds to see if anything happens with that.. 

 
Thanks, 
-Sean 
 
_ 
 Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/ 

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

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

   
___

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


Re: Acessing button scripts in a HC stack ?

2006-03-21 Thread simplsol

Francis,
Have you converted the HC stack to a Rev stack (by opening it)?
In my experience this makes all of the scripts (including button 
scripts) accessible.

Paul Looney

-Original Message-
From: Francis Nugent Dixon <[EMAIL PROTECTED]>
To: use-revolution@lists.runrev.com
Sent: Tue, 21 Mar 2006 11:47:13 +0100
Subject: Acessing button scripts in a HC stack ?

  Hi from Paris, 
 
I want to port scripts from Hypercard into Rev 2.6.1, where 
I can play with them to my hearts content, but all my attempts 
have so far failed. 
 
I can access the fields and their contents, but the word 
"button" doesn't give any joy. 
 
Does anybody have any ideas ? 
 
-Francis 
 
"Nothing should ever be done for the first time !" 
 
___ 
use-revolution mailing list 
[EMAIL PROTECTED]
 Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences: 

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

   
___

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


Re: Combined Events

2006-03-21 Thread Jim Ault
oops. Too early in the morning.. wrong answer since I miss read the
question.



On 3/21/06 9:06 AM, "Jim Ault" <[EMAIL PROTECTED]> wrote:

> The usual practice is to make a handler either
> a function or a procedure
> that is called from either
> more than one handler or
> more than one event or
> both events and handlers
> 
> 
>> on returnInField
>hello
>> end returnInField
>> 
>> on mouseDown
>hello
>> end mouseDown
> 
> on hello
>play annoyingMusic.aif
>get word 1 of the long date
>answer "Hello, it's "& it
> end hello
> 
> 
> The following does not make sense in xTalk
> on thisMessage or thatMessage
> 
> end thisMessage or thatMessage
> 
> Jim Ault
> Las Vegas
> 
> On 3/21/06 8:39 AM, "Jeff Honken" <[EMAIL PROTECTED]> wrote:
> 
>> Wouter,
>>   Thank you for the reply but I'm a little confused with your answer.  I
>> want the same code "answer Hello" to run in a field no matter if I click
>> on the field with the mouse or press the enter key in the field and I
>> don't want to:
>> 
>> on returnInField
>> answer "Hello"
>> end returnInField
>> 
>> on mouseDown
>>   answer "Hello"
>> end mouseDown
>> 
>> 
>> What I would like is something like this that will work:
>> 
>> on returnInField or mouseDown
>> answer "Hello"
>> end returnInField or mouseDown
>> 
>> 
>> 
>> 
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Wouter
>> Sent: Tuesday, March 21, 2006 9:13 AM
>> To: How to use Revolution
>> Subject: Re: Combined Events
>> 
>> for example:
>> 
>> on returninfield
>>mousedown
>> end returninfield
>> 
>> Greetings,
>> Wouter
>> 
>> On 21 Mar 2006, at 17:03, Jeff Honken wrote:
>> 
>>> 
>>> Is there any way to combine events so you don't have to have redundant
>>> code.  I would like the same code to run on both the "on
>>> returnInField"
>>> and "on mouseDown" events.  Jeff
>> 
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
>> 
>> 
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: Combined Events

2006-03-21 Thread Jim Ault
The usual practice is to make a handler either
a function or a procedure
that is called from either
more than one handler or
more than one event or
both events and handlers


> on returnInField
   hello
> end returnInField
> 
> on mouseDown
   hello
> end mouseDown

on hello
   play annoyingMusic.aif
   get word 1 of the long date
   answer "Hello, it's "& it
end hello


The following does not make sense in xTalk
on thisMessage or thatMessage

end thisMessage or thatMessage

Jim Ault
Las Vegas

On 3/21/06 8:39 AM, "Jeff Honken" <[EMAIL PROTECTED]> wrote:

> Wouter,
>   Thank you for the reply but I'm a little confused with your answer.  I
> want the same code "answer Hello" to run in a field no matter if I click
> on the field with the mouse or press the enter key in the field and I
> don't want to:
> 
> on returnInField
> answer "Hello"
> end returnInField
> 
> on mouseDown
>   answer "Hello"
> end mouseDown
> 
> 
> What I would like is something like this that will work:
> 
> on returnInField or mouseDown
> answer "Hello"
> end returnInField or mouseDown
> 
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Wouter
> Sent: Tuesday, March 21, 2006 9:13 AM
> To: How to use Revolution
> Subject: Re: Combined Events
> 
> for example:
> 
> on returninfield
>mousedown
> end returninfield
> 
> Greetings,
> Wouter
> 
> On 21 Mar 2006, at 17:03, Jeff Honken wrote:
> 
>> 
>> Is there any way to combine events so you don't have to have redundant
>> code.  I would like the same code to run on both the "on
>> returnInField"
>> and "on mouseDown" events.  Jeff
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution


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


Database Conversion

2006-03-21 Thread Robert Sneidar
Does anyone know of any good dBase/Foxpro table to sql/Valentina  
conversion utilities? I can write one in Revolution I suppose, but I  
would have a lot of front end work to do first, and this project is  
already huge.


Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

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


Re: use-revolution Digest, Vol 30, Issue 54

2006-03-21 Thread Robert Sneidar
Wow thanks Sarah that is huge! I didn't see that anywhere in the docs  
but I probably didn't look closely enough.


But no I have an odd thing happenning. I can only set columns widths  
up to 120. Anything over is interpreted as width-120 so that if I set  
the width to 125 I get a column 5 pixels wide. Odd huh? There is  
probably a max width for the columns property I need to set. I will  
dig around. I am going to have to get used to that again.


Viva le Hyperca... err  REVOLUTION!

Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On Mar 21, 2006, at 7:11 AM, [EMAIL PROTECTED]  
wrote:



On 3/21/06, Robert Sneidar <[EMAIL PROTECTED]> wrote:


Is there any way to make a scrolling table field have column widths
that vary? If not, is it possible to add object types so I can write
my own, or has someone else already done this?




If you don't need the fields to vary once set, you can just use the
tabStops, e.g.
  set the tabStops of fld "MyList" to "100,150,300,320,400"
will produce columns with widths 100, 50, 150, 20 and 80 with all
extra columns also being width 80.

If you need the column widths to be variable, then you need Chipp's
altFldHeader plugin which you can get from here:

Follow the links to altPlugins -> Downloads and you'll find it near
the bottom of the page.

Cheers,
Sarah



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


Re: linux sound issues

2006-03-21 Thread Girard Damien

Hi joe,

The media support under runrev under Linux/Unix is really poor (compared  
to Windows or MacOS X).


There is a enchancement request about that, please vote for him :

http://support.runrev.com/bugdatabase/show_bug.cgi?id=2290

--
You will cannot play a video file in your stack with your trick, If you  
want
an audio support, you will have to write some scripts and to manually call  
mplayer.


And you cannot create a plugins for Revolution in C++, because the  
Revolution Linux/Unix

engine doesn't support that (compared to Windows or MacOS X).

Regards,

Girard Damien.



Le Tue, 21 Mar 2006 15:44:53 +0100, Joe Baskerville <[EMAIL PROTECTED]> a  
écrit:



hi all,

i have an issue with playing sound from a stack on linux. the  
documentation states that revolution uses xanim to play audio files, but  
as has been documented in many places, this is no longer in development  
and is tricky to install.


so im trying to use mplayer instead. the methods i've tried to get this  
working are:


creating a shell script called xanim, which is in the path, which passes  
any arguements onto mplayer. running this from the command line works  
fine, but its not being picked up by revolution.


i've also tried stating the audio/video player using the videoClipPlayer  
property, but this doesnt seem to work either.


has anybody had any luck with this? i can call mplayer (or the xanim  
script) using the shell function and it works fine, but i'd rather it  
used the internal play function.


any help would be appreciated,

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

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

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


Re: Combined Events

2006-03-21 Thread Wouter

Hi Jeff,

This should work if the locktext and the traversalon of the field are  
true:


on returnInField
mousedown
end returnInField

on mouseDown
  answer "Hello" & cr & the millisecs
end mouseDown

W.

On 21 Mar 2006, at 17:39, Jeff Honken wrote:


Wouter,
  Thank you for the reply but I'm a little confused with your  
answer.  I
want the same code "answer Hello" to run in a field no matter if I  
click

on the field with the mouse or press the enter key in the field and I
don't want to:

on returnInField
answer "Hello"
end returnInField

on mouseDown
  answer "Hello"
end mouseDown


What I would like is something like this that will work:

on returnInField or mouseDown
answer "Hello"
end returnInField or mouseDown

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


Re: HTML tags in XML

2006-03-21 Thread Devin Asay

On Mar 21, 2006, at 9:12 AM, Trevor DeVore wrote:


On Mar 21, 2006, at 7:43 AM, Devin Asay wrote:


Hi Folks,

Is it possible to store html styled text in an xml document and  
then successfully retrieve the text with html markup intact?


  ;-)

Is there a way to do this? Will I have to resort to saving the  
RTFtext in the xml node or something like that?


Hi Devin,

You need to escape ", ', <, and < when entering data into an XML  
node.  I can't remember if RevXML has any handlers for this or if  
you just have to do it by hand.  For an example of the escape  
characters just do a Google search for "xml escape characters".


You may want to check out Ken Ray's XML library.  I haven't used it  
but browsing through the API, there is a stsXML_replaceEntities  
that looks like it would do what you want.


Thanks Trevor. I already knew that I had to escape those characters,  
plus '&' when writing xml. You triggered a "Duh!" moment in my brain,  
as it dawned on me that I'd also have to escape those other  
characters in my html markup.


It's working now.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: Table Column Widths

2006-03-21 Thread Jonathan Lynch
Another option:

If you are using the table as a user interface, then I have a pseudo table
object that acts like a table should. It allows you to move columns and
rows, and resize columns, and insert and delete rows and columns, etc...

It can be found here:

http://revolution.widged.com/stacks/


(thanks to Marielle)

I would not use the pseudo table for mass data storage, because there is a
lot of memory usage and scripting involved in making the separate fields at
like fields in a table.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Making the move...

2006-03-21 Thread Geoff Canyon

Wow -- so what does this do?

On Mar 20, 2006, at 9:28 AM, Rob Cozens wrote:


Hi Geoff,


Out of curiosity, do you have an example handy of a long handler  
that you think makes more sense to keep together than to break up?  
Or one that you think can't be broken up without significant  
effort to do it?




on findSDBRecord  
@sdbBuffer,exactKey,fieldDelimiter,itemList,setPosition,searchForward, 
searchCriteria,cutoffKey,recordDelimiter,unlockRecord

  -- 28 Feb 04:RCC
  if ipcMode is not "dc" then -- "dc" = single user direct connection
replace return with numToChar(29) in itemList
replace return with numToChar(29) in searchCriteria
requestSDBService sdbBuffer,"find",packArguments 
(9,exactKey,fieldDelimiter,itemList,setPosition,searchForward,searchCr 
iteria,cutoffKey,recordDelimiter,unlockRecord)

get the result
if not word 1 of it and setPosition then put word 4 of it into  
sdbPosition

put it into sdbParameters
return it
  else
if invalidSDBClient() then return true&return&sdbMessage 
(sdbInvalidClientError,true)
if offset(return&sdbDbId&return,return&(the keys of indexList) 
&return) = 0 then return true&return&sdbMessage(sdbDbIdError,true)

if exactKey is empty then put true into exactKey
put (fieldDelimiter is not empty) into retrieveData
if recordDelimiter is not empty then
  put true into multipleRecords
  put false into unlockRecords
  put false into setPosition
else put false into multipleRecords
put (multipleRecords and not retrieveData) into countOnly
if setPosition is empty or retrieveData then put true into  
setPosition

if searchForward is empty then put true into searchForward
put ((sdbWriteAccess is "Shared") and (unlockRecord is true))  
into unlockRecord

put word 2 to 4 of sdbParameters into savedPosition
put justifyString(word 1 of sdbBuffer,4) into theRecordType
getSDBRecord sdbBuffer,exactKey,,,setPosition,retrieveData
get the result
put word 2 to -1 of line 1 of sdbBuffer into recordKey
if word 1 of it or (((recordKey > cutoffKey and searchForward)  
or (recordKey < cutoffKey and not searchForward)) and cutoffKey is  
not empty) then

  put false&&savedPosition into sdbParameters
  put false&&"0 0 0" into line 1 of it
  return it
else
  if unlockRecord and sdbWriteAccess is "Shared" then  
deleteDbLock(word 4 of sdbParameters)

  if not retrieveData and not multipleRecords then
put it into sdbParameters
return it
  end if
end if
put word 4 of sdbParameters into oldPosition
put empty into returnRecord
put 0 into recordCount
repeat
  put word 2 to -1 of line 1 of sdbBuffer into recordKey
  if (recordKey > cutoffKey and searchForward) or (recordKey <  
cutoffKey and not searchForward) then

put false into word 1 of sdbParameters
if countOnly then
  put empty into sdbBuffer
  return (word 1 to 3 of sdbParameters)&&recordCount
else
  put theRecordType&&recordCount&return&returnRecord into  
sdbBuffer

  return (word 1 to 3 of sdbParameters)&&"0"
end if
  end if
  delete line 1 of sdbBuffer
  if theSDBRecordMatches 
(sdbBuffer,fieldDelimiter,searchCriteria) then

add 1 to recordCount
repeat for each line itemNumber in itemList
  put sdbFieldNumber(itemNumber) into itemNumber
  if itemNumber = 0 then put recordKey&fieldBelimiter after  
returnRecord
  else put getItem(itemNumber,fieldDelimiter,sdbBuffer) 
&fieldDelimiter after returnRecord

end repeat
if multipleRecords then put recordDelimiter after returnRecord
else
  put theRecordType&&recordKey&return&returnRecord into  
sdbBuffer

  return (word 1 to 3 of sdbParameters)
end if
  end if
  set cursor to busy
  if searchForward then
if word 2 of sdbParameters < word 3 of sdbParameters then
  put "+" into sdbBuffer
  getSDBRecord sdbBuffer,exactKey,,,true,retrieveData
  put the result into sdbParameters
else put true into sdbParameters
  else
if word 2 of sdbParameters > 1 then
  put "-" into sdbBuffer
  getSDBRecord sdbBuffer,exactKey,,,true,retrieveData
  put the result into sdbParameters
else put true into sdbParameters
  end if
  if word 1 of sdbParameters then
put false into word 1 of sdbParameters
put oldPosition into word 4 of sdbParameters
if countOnly then
  put empty into sdbBuffer
  return (word 1 to 3 of sdbParameters)&&recordCount
else
  put theRecordType&&recordCount&return&returnRecord into  
sdbBuffer

  return (word 1 to 3 of sdbParameters)&&"0"
end if
  else if not setPosition then put oldPosition into word 4 of  
sdbParameters

end repeat
  end if
end findSDBRecord

Note:
stack local variabl

Re: Making the move...

2006-03-21 Thread Geoff Canyon


On Mar 20, 2006, at 6:20 PM, Sarah Reichelt wrote:


I haven't ever really tested it and I have an instinctive feeling that
functions should be self-sufficient and shouldn't change anything
outside them. Maybe it will suit me better in some circumstances.


This is true, but passing by reference doesn't violate this,  
depending on how it's used. If you have a clear-cut function that  
operates on a value passed by reference because of its size, that's  
not a bad thing I don't think.


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


RE: Combined Events

2006-03-21 Thread Jeff Honken
Wouter,
  Thank you for the reply but I'm a little confused with your answer.  I
want the same code "answer Hello" to run in a field no matter if I click
on the field with the mouse or press the enter key in the field and I
don't want to:

on returnInField
answer "Hello"
end returnInField

on mouseDown
  answer "Hello"
end mouseDown


What I would like is something like this that will work:

on returnInField or mouseDown
answer "Hello"
end returnInField or mouseDown




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wouter
Sent: Tuesday, March 21, 2006 9:13 AM
To: How to use Revolution
Subject: Re: Combined Events

for example:

on returninfield
   mousedown
end returninfield

Greetings,
Wouter

On 21 Mar 2006, at 17:03, Jeff Honken wrote:

>
> Is there any way to combine events so you don't have to have redundant
> code.  I would like the same code to run on both the "on  
> returnInField"
> and "on mouseDown" events.  Jeff

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



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


Application Browser Anomaly

2006-03-21 Thread Rob Cozens

Hi All,

Rev 2.7; WinXP TPC 2005 Edition:

Both last night and now this morning I have done something that sets 
the Application Browser in a state such that double-clicking on a 
substack opens the script of the substack instead of opening the 
substack itself and double-clicking on a card of an unopened subStack 
opens the script of that card..


Last night I tried shutting down RR and restarting it without 
rebooting, but the problem was still there when I turned the computer 
off for the night.  This AM, double-clicking on any substack shown in 
the AB worked...for a while, then I found myself back opening scripts 
instead of opening substacks.  This time restarting RR solved the 
problem; but for how long?


Has anyone else experienced this?  Ideas, anyone?

I will note one possible issue:

The subStack I'm attempting to modify is Serendipity Library's 
"sdbDictionary."  At runtime it's opened as a modal dialog by the SDB 
Tools plugin, and it needs the initialization in SDB Tools to open 
correctly [there are issues with opening it directly from Serendipity 
Library, even with messages locked].  When opened this way, the AB 
shows sdbDictionary as a subStack of SDB Tools instead of Serendipity 
Library.


The problem is in editing a stack open in modal mode [BTW, debugging in 
modal stacks causes problems too--or at least it did in earlier Rev 
revs].  So my practice is to open sdbDictionary modally with SDB Tools, 
close it, open Serendipity Library, open the AB [where sdbDictionary is 
now listed as a subStack of both SDB Tools and Serendipity Library], 
and double-click on the subStack or one of its cards to open it for 
modification.


I have used this technique for a couple of years with earlier revs and 
not encountered a state where the AB opened the script of a subStack 
instead of the stack itself.  Could the problem lie here?


Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)

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


revXMLfindNodecontent

2006-03-21 Thread Klaus Major

Hi all,

I am currently working through the XML docs and am desparately  
looking for

something llike -> "revXMLfindNodeBycontent"

There is a "revXMLmatchingNode" but that only lets me find the node  
that has an

atrribute with a specific value!

Do I really have to cycle through the XMLtext or something line by  
line to find

a node by its content?

Please tell me it ain't so :-/


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

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


Re: Combined Events

2006-03-21 Thread Wouter

for example:

on returninfield
  mousedown
end returninfield

Greetings,
Wouter

On 21 Mar 2006, at 17:03, Jeff Honken wrote:



Is there any way to combine events so you don't have to have redundant
code.  I would like the same code to run on both the "on  
returnInField"

and "on mouseDown" events.  Jeff


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


Re: HTML tags in XML

2006-03-21 Thread Trevor DeVore

On Mar 21, 2006, at 7:43 AM, Devin Asay wrote:


Hi Folks,

Is it possible to store html styled text in an xml document and  
then successfully retrieve the text with html markup intact?

...


Here are my comments.
Some of the text is colored red &  
blue


...

Is there a way to do this? Will I have to resort to saving the  
RTFtext in the xml node or something like that?


Hi Devin,

You need to escape ", ', <, and < when entering data into an XML  
node.  I can't remember if RevXML has any handlers for this or if you  
just have to do it by hand.  For an example of the escape characters  
just do a Google search for "xml escape characters".


You may want to check out Ken Ray's XML library.  I haven't used it  
but browsing through the API, there is a stsXML_replaceEntities that  
looks like it would do what you want.


--
Trevor DeVore
Blue Mango Learning Systems - http://www.bluemangolearning.com
[EMAIL PROTECTED]


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


Re: Help with Arrays??

2006-03-21 Thread Trevor DeVore

On Mar 20, 2006, at 11:39 PM, Arthur Urban wrote:

I don't know what the heck is going on here, but I know it's making  
me a wee bit testy. (I don't like needless local variables, what  
can I say...)


Here's the code that works just fine. Please note that I've  
confirmed the value of x, it is not the problem here. The function  
returns an Array.


   put MyFunc( x ) into theArray
   DisplayPurchaseLine x, theArray

The following code fails miserably passing empty for theArray  
argument; x is passed in just fine:


   DisplayPurchaseLine x, MyFunc( x )

Why do  I need to put the MyFunc() return value (an array) into a  
local variable first. It clearly makes it out of the function call,  
but cannot then immediately be used as a parameter. Huh?


I think that is just life when dealing with functions that return  
arrays.  You can't use the function as a parameter.  I will usually  
do something like this:


get MyFunc()
DisplayPurchaseLine x, it

This would be a nice enhancement request to add to Bugzilla.


--
Trevor DeVore
Blue Mango Learning Systems - http://www.bluemangolearning.com
[EMAIL PROTECTED]


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


Combined Events

2006-03-21 Thread Jeff Honken

Is there any way to combine events so you don't have to have redundant
code.  I would like the same code to run on both the "on returnInField"
and "on mouseDown" events.  Jeff


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


Re: Get a handler from a script

2006-03-21 Thread Wouter

on Sun Mar 19 16:12:57 CST 2006 Geoff Canyon wrote:


/* this is a comment
as is this */on mouseUp
   answer "yes"
end mouseUp



Another problem with this kind of commenting is shown in the  
following cases:


/* this is a comment
as is this */-function whatever
return "something"
end whatever

/* this is a comment
as is this */--function whatever
return "something"
end whatever

Both will compile without throwing an error.
Only the second one is a valid comment

Greetings,
Wouter

PS another little update (beware of the mail line wraps):

function retrieveActiveHandlers pScript
  put true into tFlag
  repeat for each line i in pScript
if char 1 to 2 of word 1 of i = "/*"  then
  put false into tFlag
else if tFlag and token 1 of i is among the items of  
"on,function,setprop,getprop" then  put token 1 to -1 of  i & cr  
after tList

else if tFlag = false then
  if (char 1 of word 1 of i is "#" or  char 1 of word 1 of i is  
"-" ) and "*/" is in i then

put true into tFlag
get  "/*" &i
if tFlag and token 1 of it is among the items of  
"on,function,setprop,getprop" then

  put token 1 to -1 of  it & cr after tList
end if
  else
repeat for each token j in i
  if j is "*/"  then
put true into tFlag
get  "/*" &i
if tFlag and token 1 of it is among the items of  
"on,function,setprop,getprop" then

  put token 1 to -1 of  it & cr after tList
  exit repeat
end if
  end if
end repeat
  end if
end if --
  end repeat
  return tList
end retrieveActiveHandlers

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


linux sound issues

2006-03-21 Thread Joe Baskerville

hi all,

i have an issue with playing sound from a stack on linux. the 
documentation states that revolution uses xanim to play audio files, but 
as has been documented in many places, this is no longer in development 
and is tricky to install.


so im trying to use mplayer instead. the methods i've tried to get this 
working are:


creating a shell script called xanim, which is in the path, which passes 
any arguements onto mplayer. running this from the command line works 
fine, but its not being picked up by revolution.


i've also tried stating the audio/video player using the videoClipPlayer 
property, but this doesnt seem to work either.


has anybody had any luck with this? i can call mplayer (or the xanim 
script) using the shell function and it works fine, but i'd rather it 
used the internal play function.


any help would be appreciated,

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


Re: Get a handler from a script

2006-03-21 Thread Alex Tweedly

Dick Kriesel wrote:


On 3/21/06 2:37 AM, "Alex Tweedly" <[EMAIL PROTECTED]> wrote:

 


I suspect you have a different idea for what handler 'a' will do - in
fact, it *always" ask the time.
   



You suspected correctly, Alex.  Thanks for finding another mistake.  That
example only shows that the list of tokens is insufficient to reproduce the
_appearance_ of the handler.

Despite that weak example, the point was that the list of tokens is
insufficient to reproduce the _semantics_ of the handler, and therefore not
useful to "get a handler from a script."  Here's a better-chosen example of
two handlers with different semantics but the same tokens for the bodies of
the handlers:

 


But the interesting thing is that if you do something like
  token K1 to K2 of someScript
then it gives you the complete text between the char position of token 
K1 and the char position of token K2


I've uploaded a stack to revonline (username alextweedly, name 
FindHandler, category programming) which does this.
Moderately tested  but not thoroughly. (btw - only for handlers - 
extension to functions, setprop, etc.. is easy)


The essence of the (short) version is



function findhandler pScript, pHandler
put 0 into tStart
put 0 into tEnd
put 0 into i
put token 1 to -1 of pScript into pScript
repeat for each token t in pScript
add 1 to i
if t = "on" then
if token i+1 of pScript = pHandler then
put i into tStart
end if
end if
if t = "end" then
if token i+1 of pScript = pHandler then
put i into tEnd
if tStart > 0 then exit repeat
end if
end if
end repeat
if tStart = 0 or tEnd = 0 then  return ""

-- to simply return the handler text

return token tStart to tEnd+1 of pScript

end findhandler


Note that this fails to return any closing, trailing comment. For 
example, if the last line had been



   end findhandler-- end of function to do something


it would not have included the comment.

The stack includes another version which returns the line numbers of the 
start and end lines of the handler, and therefore allows you to include 
such trailing comments. It does not handle trailing, multi-line, block 
comments :-( but I'd regard a format like


  


end findhandler   /* some comment

  in here */


as particularly bad style.


NB This is still only a 99.99% solution. It will fail in the case where 
there is a multi-line block comment which includes a complete, EXACT 
copy of the handler being sought, and which precedes the handler in 
question. Since it must be an exact copy, then if you use this to 
duplicate the handler somewhere else, it will give the correct result 
anyway :-)



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

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.6/286 - Release Date: 20/03/2006
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Get a handler from a script

2006-03-21 Thread Wouter

on Sun Mar 19 16:12:57 CST 2006 Geoff Canyon wrote:


Unfortunately for anyone attempting this task, this is a perfectly
valid script:

/* this is a comment
as is this */on mouseUp
   answer "yes"
end mouseUp


This style of commenting shows rev's inability to parse for handler  
names there after.

Have a look at the handler list field of the revscripteditor.
Take a multi handler script and comment the second handler like  
mentioned by Geoff above.
On reopening the same script in the editor, only the first handler  
will show in the handler list field.


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


Re: DRM for Images and Text in Stacks

2006-03-21 Thread Richard Gaskin

Sivakatirswami wrote:

OK further testing I finally settled on a compromise taking Key Ray's  
suggestion but not using  compressed imageData,  I don't see any  
advantage (I could be missing something) to using compressed  
imageData over simple  jpg storage. Either format would be equally  
hackable...


If your security needs are modest, the fwPack and fwUnpack functions may 
be handy:




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


Re: application help file

2006-03-21 Thread haripratap
What ever you Thought is better

and you are thinking about Search Option

even that option is Available with fre PDF readers

else you can use can  Create a
Class for this Module

where it can Even Fetch you with some Financial Reasource if
you release it as a Plugin


- Original Message -
From: "Martin Blackman" <[EMAIL PROTECTED]>
To: "How to use Revolution" 
Sent: Tuesday, March 21, 2006 7:01 PM
Subject: application help file


Has anyone got any thoughts on building a help file for an application ?

I am considering making a pdf file using openoffice, which can build
in hyperlinks and bookmarks.  But I think the searching features
offered by traditional help files may be easier on the user.  The help
file will be medium sized, say 40-50 pages.

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


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


application help file

2006-03-21 Thread Martin Blackman
Has anyone got any thoughts on building a help file for an application ?

I am considering making a pdf file using openoffice, which can build
in hyperlinks and bookmarks.  But I think the searching features
offered by traditional help files may be easier on the user.  The help
file will be medium sized, say 40-50 pages.

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


HTML tags in XML

2006-03-21 Thread Devin Asay

Hi Folks,

Is it possible to store html styled text in an xml document and then  
successfully retrieve the text with html markup intact?


I'm working on an application where I need to save styled text in an  
XML document. I can successfully insert the htmlText of the styled  
field into the xml document so I end up with a node that looks like  
this:



Here are my comments.
Some of the text is colored red &  
blue



However, when I read this node in with the revXMLNodeContents()  
function the html tags are stripped out and all I get is naked text.  
Here's a code snippet:


put revXMLNodeContents(vSessionTreeID,vCurrentComment) into  
tCommentTxt
set the htmlText of fld "comments" of cd theCard of stack  
"ClipData" to tCommentTxt


When I examine the tCommentTxt variable in the variable watcher I see:

Here are my comments.
Some of the text is colored red & blue

Notice that it correctly rendered the ampersand entity. But the  
formatting is gone.


Is there a way to do this? Will I have to resort to saving the  
RTFtext in the xml node or something like that?


Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: Draw spokes on a wheel

2006-03-21 Thread Jerry Muelver



Jim Lyons wrote:

Mark,
I used Revolution a couple of years ago to teach middle school kids 
interested in programming. Then I discovered NetLogo, an agent-based 
modelling system that traces its roots back to the original Logo. It 
is perfect for beginners, and has the advantage of immediate feedback 
and incremental development, just like HyperCard and Rev. It's free 
and being actively developed by the Center for Connected Learning at 
Northwestern University,


http://ccl.northwestern.edu/netlogo/

I think Rev might benefit from the addition of TG-type controls, but 
it seems like a long shot to me. I have built a tool in Rev to work 
with NetLogo files if anyone does take an interest. (It needs to be 
updated -- I can't keep up with them!)
Thanks for the link, Jim. I was in the process of putting together a 
list of features and functions for an introductory scripting language to 
be implemented in Revolution, and NetLogo will definitely help clarify 
my thinking.


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


Re: Draw spokes on a wheel

2006-03-21 Thread Jim Lyons

Mark,
I used Revolution a couple of years ago to teach middle school kids 
interested in programming. Then I discovered NetLogo, an agent-based 
modelling system that traces its roots back to the original Logo. It is 
perfect for beginners, and has the advantage of immediate feedback and 
incremental development, just like HyperCard and Rev. It's free and 
being actively developed by the Center for Connected Learning at 
Northwestern University,


http://ccl.northwestern.edu/netlogo/

I think Rev might benefit from the addition of TG-type controls, but it 
seems like a long shot to me. I have built a tool in Rev to work with 
NetLogo files if anyone does take an interest. (It needs to be updated 
-- I can't keep up with them!)


Jim Lyons

On Mar 20, 2006, at 7:37 PM, Mark Talluto wrote:

Run Rev has expressed an interest in implementing TG in Revolution. 
Be nice to have a new control, a turtle control (multiple turtles 
like multiple graphic objects) that responds to the TG vocabulary.


This would be very nice.  I could have used this when I was a teacher. 
 I'll be using it with my son soon.


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


Re: Get a handler from a script

2006-03-21 Thread Dick Kriesel
On 3/21/06 2:37 AM, "Alex Tweedly" <[EMAIL PROTECTED]> wrote:

> I suspect you have a different idea for what handler 'a' will do - in
> fact, it *always" ask the time.

You suspected correctly, Alex.  Thanks for finding another mistake.  That
example only shows that the list of tokens is insufficient to reproduce the
_appearance_ of the handler.

Despite that weak example, the point was that the list of tokens is
insufficient to reproduce the _semantics_ of the handler, and therefore not
useful to "get a handler from a script."  Here's a better-chosen example of
two handlers with different semantics but the same tokens for the bodies of
the handlers:

on a
  put "foo" into bar
  return bar
end a

on b
  put "foo" into bar
  return "bar"
end b

> I'll answer about the comments separately,when I've had more time  to
> think about it.

I'm looking forward to it.

-- Dick



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


Re: Table Column Widths

2006-03-21 Thread Sarah Reichelt
On 3/21/06, Robert Sneidar <[EMAIL PROTECTED]> wrote:
> Is there any way to make a scrolling table field have column widths
> that vary? If not, is it possible to add object types so I can write
> my own, or has someone else already done this?
>

If you don't need the fields to vary once set, you can just use the
tabStops, e.g.
  set the tabStops of fld "MyList" to "100,150,300,320,400"
will produce columns with widths 100, 50, 150, 20 and 80 with all
extra columns also being width 80.

If you need the column widths to be variable, then you need Chipp's
altFldHeader plugin which you can get from here:

Follow the links to altPlugins -> Downloads and you'll find it near
the bottom of the page.

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


Re: Acessing button scripts in a HC stack ?

2006-03-21 Thread Sarah Reichelt
On 3/21/06, Francis Nugent Dixon <[EMAIL PROTECTED]> wrote:
> Hi from Paris,
>
> I want to port scripts from Hypercard into Rev 2.6.1, where
> I can play with them to my hearts content, but all my attempts
> have so far failed.
>
> I can access the fields and their contents, but the word
> "button" doesn't give any joy.
>

Are you opening the HyperCard stacks in Rev? If so, you should read
Jacque's excellent tutorial on the subject at
.

Apart from that, I don't understand what you mean. Are you saying that
imported stacks don't have their buttons, or that the imported buttons
don't have scripts or what?

As a general rule, I recommend creating a new stack in Rev and copying
the scripts over with the necessary changes, instead of importing
directly, but I have had no major problems with either method.

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


Re: Help with Arrays??

2006-03-21 Thread Mark Smith

Sorry, typo (in message, not tested script):

on showArray 12,tArray
should be
on showArray x,tArray

Mark

On 21 Mar 2006, at 10:49, Mark Smith wrote:

Wow. The following meaningless script fails, (though it doesn't  
produce an error) ie. the result is simply 12 in the message box,  
the keys of the array are not sent to the message box...


on mouseUp
  showArray 12,makeArray(12)
end mouseUp

on showArray 12,tArray
  put x & cr & the keys of tArray
end showArray

function makeArray x
  repeat with n = 1 to x
put 0 into tArray[n]
  end repeat
  return tArray
end makeArray


while

on mouseUp
  put makeArray(12) into tArray
  showArray 12,tArray
end mouseUp

works just fine...

Maybe this is a bug. Anyone else come across this?

Mark

On 21 Mar 2006, at 07:39, Arthur Urban wrote:

I don't know what the heck is going on here, but I know it's  
making me a wee bit testy. (I don't like needless local variables,  
what can I say...)


Here's the code that works just fine. Please note that I've  
confirmed the value of x, it is not the problem here. The function  
returns an Array.


   put MyFunc( x ) into theArray
   DisplayPurchaseLine x, theArray

The following code fails miserably passing empty for theArray  
argument; x is passed in just fine:


   DisplayPurchaseLine x, MyFunc( x )

Why do  I need to put the MyFunc() return value (an array) into a  
local variable first. It clearly makes it out of the function  
call, but cannot then immediately be used as a parameter. Huh?


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

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




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


Re: Help with Arrays??

2006-03-21 Thread Mark Smith
Wow. The following meaningless script fails, (though it doesn't  
produce an error) ie. the result is simply 12 in the message box, the  
keys of the array are not sent to the message box...


on mouseUp
  showArray 12,makeArray(12)
end mouseUp

on showArray 12,tArray
  put x & cr & the keys of tArray
end showArray

function makeArray x
  repeat with n = 1 to x
put 0 into tArray[n]
  end repeat
  return tArray
end makeArray


while

on mouseUp
  put makeArray(12) into tArray
  showArray 12,tArray
end mouseUp

works just fine...

Maybe this is a bug. Anyone else come across this?

Mark

On 21 Mar 2006, at 07:39, Arthur Urban wrote:

I don't know what the heck is going on here, but I know it's making  
me a wee bit testy. (I don't like needless local variables, what  
can I say...)


Here's the code that works just fine. Please note that I've  
confirmed the value of x, it is not the problem here. The function  
returns an Array.


   put MyFunc( x ) into theArray
   DisplayPurchaseLine x, theArray

The following code fails miserably passing empty for theArray  
argument; x is passed in just fine:


   DisplayPurchaseLine x, MyFunc( x )

Why do  I need to put the MyFunc() return value (an array) into a  
local variable first. It clearly makes it out of the function call,  
but cannot then immediately be used as a parameter. Huh?


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

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


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


Acessing button scripts in a HC stack ?

2006-03-21 Thread Francis Nugent Dixon

Hi from Paris,

I want to port scripts from Hypercard into Rev 2.6.1, where
I can play with them to my hearts content, but all my attempts
have so far failed.

I can access the fields and their contents, but the word
"button" doesn't give any joy.

Does anybody have any ideas ?

-Francis

"Nothing should ever be done for the first time !"


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


Re: Get a handler from a script

2006-03-21 Thread Alex Tweedly
I'll answer about the comments separately,when I've had more time  to 
think about it.

But - this one is quick ...

Dick Kriesel wrote:



But tokenizing seems unrelated to the challenge of getting a handler from a
script, because it can lose the control structure of a handler.  For
example, consider the following handlers, whose bodies yield the same list
of tokens:

on a
 if the seconds mod 2 = 0 then ask the date;ask the time
end a

on b
 if the seconds mod 2 = 0 then ask the date
 ask the time
end b

 


Those two bodies have the *same* meaning.

I suspect you have a different idea for what handler 'a' will do - in 
fact, it *always" ask the time.


To see this more clearly, try


on mouseUp
  if true then put "this" after msg; put "that" &cr after msg
  if false then put "this" after msg; put "that" &cr after msg
end mouseUp



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



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.6/286 - Release Date: 20/03/2006

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


Re: DRM for Images and Text in Stacks

2006-03-21 Thread Sivakatirswami
OK further testing I finally settled on a compromise taking Key Ray's  
suggestion but not using  compressed imageData,  I don't see any  
advantage (I could be missing something) to using compressed  
imageData over simple  jpg storage. Either format would be equally  
hackable...


I think this comes close to making the images at least some  what   
obscurely stored.


--create a substack
--import images into custom props as jpegs,
--One could put these props in something a "available" as a card  
property or something very obscure, like a transparent invisible  
graphic.
--set the uStuff1 of btn "obscureObject" to (url ("binfile:/somePath/ 
foo.jpg"))

--scripts then can call the images for display:
 put the uStuff of btn "obscureObject" into img "DisplayImageNow"
-- then encrypt the stack with a password. (all this does is prevent  
another developer from seeing the scripts that display the custom prop)


That's about as  good as it gets, I think...some developer who was  
really, really intent on stealing your images might dig through every  
object in the stack, find the  object with custom props, surmise  
these were image data and extract them from the msg box... but this  
is a highly unlikely scenario... as our managing editor pointed out  
today in a staff meeting, discussing this very issue of how  much  
energy we need to put into protecting images, he said that all these  
years, anyone could make  some hi-res scans of our printed magazine  
and get a pretty decent image. But, no one  has actually done this.


Still, on principle, I think we need a strong DRM option and I have  
put in a feature request into bugzilla for simple  option to block  
access to a substack from inside the IDE... I still need to be able  
to say for example, to NewsCom photo agency (who we use a lot of  
photos from), or Thomas Kelly (world famous photographer who does  
shoots for us in India, Sri Lanka and Nepal) with a honest face: "No,  
people cannot extract the images, not even another revolution  
developer...you are welcome to test it yourself if you wish."


--right now I cannot do thatif our managing editor asks "are the  
images locked up," I have to say "well, almost...but not quite"


Sivakatirswami
Himalayan Academy Publications
www.HinduismToday.com



On Mar 20, 2006, at 10:46 AM, Mark Talluto wrote:



mmm. I'm reviewing  all the memos to date on this and see you  
already mentioned this.


OK yes, I think this is "doable"   I will try it. I wonder how  
hackable this could be from inside the IDE if one were to place  
that line into just the script of the substack "library"



This will not work as all one has to do is lock the messages before  
opening the stack.



Mark Talluto
--
CANELA Software
http://www.canelasoftware.com


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


Re: Get a handler from a script

2006-03-21 Thread Dick Kriesel
On 3/20/06 9:30 PM, "Mark Wieder" <[EMAIL PROTECTED]> wrote:

>>> The best solution I've come up with for removing block comments is
>>> 
>>> put the script of SomeObject into tScript
>>> put token 1 to -1 of tScript into tScript
>>> 
> 
>> This sounded really cool, but I can't get it to work. :(
> 
> Really? What isn't it doing? For me it removes all comments that are
> outside handlers (which is where my block comments are)...

That technique appears to me to work for block comments and line comments
that appear in the script either before the first compilable code or after
the last compilable code.  But it overlooks block and line comments that are
interspersed within the compilable code, and undelimited comments outside
handlers.

In contrast, a repeat loop through the tokens of the script does not see any
line comments anywhere in the script, and does not see the first lines of
any block comments.  In comparison, neither technique removes undelimited
comments outside handlers.

But tokenizing seems unrelated to the challenge of getting a handler from a
script, because it can lose the control structure of a handler.  For
example, consider the following handlers, whose bodies yield the same list
of tokens:

on a
  if the seconds mod 2 = 0 then ask the date;ask the time
end a

on b
  if the seconds mod 2 = 0 then ask the date
  ask the time
end b

Now that I'm considering the variety of valid circumstances for comments,
doomsayers Geoff, Alex, and David are sounding right about this challenge.
But there _ought_ to be a way...

I'd really like to be able to search selected scripts while optionally
ignoring all comments.

-- Dick


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