Re: RevMobile Discussions

2010-10-03 Thread Michael D Mays
On Oct 2, 2010, at 6:33 PM, Colin Holgate wrote:

 
 On Oct 2, 2010, at 7:16 PM, Michael D Mays wrote:
 
 Back in March and April in the pre-Alpha release notices there was mention 
 of setting up a such discussion group. The release in August did not. I was 
 hoping it had been set up.
 
 
 I would still hope we can talk about things here, because much of it would be 
 of general interest, mobile is becoming more important in general, and even 
 though I'm interested in mobile, I'm not interested in yet another email list!

Aside from talking about talking RevMobile here I would think that in general 
discussions about alpha software might need to be somewhat private about some 
things and have more active/visible participation by the developers of the 
software. 

Michael___
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: Storing an Array as a Custom Property

2010-10-03 Thread Michael D Mays
So true Gregory. 

Michael


On Oct 3, 2010, at 12:16 PM, Gregory Lypny wrote:

  But the documentation problem, both with the user guide and built-in help or 
 dictionary, goes far beyond updating.  Good writing, examples, organization, 
 and consistency in design take time.  If you type the word Array into the 
 built-in help, the only hits you will get is for ArrayEncode and ArrayDecode 
 but nothing for an array itself.  Someone new to LiveCode, who perhaps 
 coincidentally got far enough into the user guide to come across arrays, 
 would be hard-pressed to get any information about their uses or properties.  
 A benchmark for good documentation in my mind is the original HyperCard User 
 Guide and HyperCard Reference Manual.  The writing is clean and the example 
 code statements and handler snippets are carefully chosen to give the fullest 
 scope of usage of the item in question.  Another is Mathematica's built-in 
 documentation (and even their online documentation), where what they lack in 
 Apple's writing and publishing suave, they make up for in comprehensiveness.  
 My recommendation for the Rev team would be to spend less time on rebranding 
 and promotional splash screens and more polishing the software

___
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


RevMobile Discussions

2010-10-02 Thread Michael D Mays
Is this the or is there a place for RevMobile discussions?

Thanks,
Michael
___
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: RevMobile Discussions

2010-10-02 Thread Michael D Mays
Back in March and April in the pre-Alpha release notices there was mention of 
setting up a such discussion group. The release in August did not. I was hoping 
it had been set up.

Thanks,
Michael

On Oct 2, 2010, at 10:05 AM, Dar Scott wrote:

 On Oct 2, 2010, at 7:54 AM, Michael D Mays wrote:
 Is this the or is there a place for RevMobile discussions?
 
 I cannot answer your question.
 
 I can say that I would not mind.
 
 I had assumed this is where others would focus and I might focus on other 
 things, but it looks like revMobile is in my future, even in communicating 
 with my microcontroller work.
 
 The new licensing makes updating to revMobile licenses just-in-time and low 
 cost, so anybody is just a few steps away.
 
 Dar Scott
 


On Oct 2, 2010, at 10:04 AM, Colin Holgate wrote:

 
 On Oct 2, 2010, at 9:54 AM, Michael D Mays wrote:
 
 
 Is this the or is there a place for RevMobile discussions?
 
 I would think that here would be a good place. It's not really any different 
 than if you were asking about a standalone specific issue, there isn't a 
 special forum just for that.
___
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


Line Wrapping and Margins

2010-09-24 Thread Michael D Mays
Hi,

How can I tell where (at what position or character) a line wraps in a  field?

If I have a word which has a length greater than the width of the field it is 
contained in, how can I get it to wrap anywhere other than at the end of the 
word?


Thanks,
Michael___
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: Line Wrapping and Margins

2010-09-24 Thread Michael D Mays
Thanks Mark and Craig,

That's what I need.
Unfortunately that property doesn't show up in the dictionary as a property of 
a field (only a button) so it makes it a little hard to find. :(
And the syntax example for formatedWidth some punctuation.

Michael


On Sep 24, 2010, at 12:26 PM, Mark Schonewille wrote:

 Michael,
 
 That should be something like this:
 
 if the formattedWidth of word 1 to x of line y of fld z  the width of fld z 
 - item 1 of the margins of fld z - item 3 of the margins of fld z then
  put cr after word x of line y of fld z
 end if
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 Download the Installer Maker plugin for Runtime Revolution at 
 http://qurl.tk/ce Create installers for Mac and Windows on *every* 
 Rev-compatible platform. No additional software needed.
 
 On 24 sep 2010, at 19:05, Michael D Mays wrote:
 
 Hi,
 
 How can I tell where (at what position or character) a line wraps in a  
 field?
 
 If I have a word which has a length greater than the width of the field it 
 is contained in, how can I get it to wrap anywhere other than at the end of 
 the word?
 
 
 Thanks,
 Michael
 
 ___
 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: E-mailing data file

2010-08-05 Thread Michael D Mays
In a lot of places email is the only way. I have people whose parent 
corporation provides their internet connection. They have limited bandwidth and 
a less than stellar corporate IT. Emails of less than a few MB is the only way 
for them.  
Michael
On Aug 4, 2010, at 10:40 AM, Andre Garzia wrote:

 Charles,
 
 checkout libSMTP on revonline but I agree with Richard, it is easier to make
 your standalone ping a server cgi with the data. Email is just to cumbersome
 these days.
 
 Andre
 
 On Wed, Aug 4, 2010 at 9:57 AM, charles61 csz...@mac.com wrote:
 
 
 I created an app that generates a data file.  The files are saved on the
 user's hard drive.  I want to add an e-mail button that would allow the
 user
 to send the file by e-mail by selecting the file within the app to send to
 another person who is using my program.  How can I do that?
 --
 View this message in context:
 http://runtime-revolution.278305.n4.nabble.com/E-mailing-data-file-tp2313404p2313404.html
 Sent from the Revolution - User mailing list archive at Nabble.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: E-mailing data file

2010-08-05 Thread Michael D Mays
I think you misunderstood my comment.  And reading Charles comments I didn't 
think he was wanting to use mailto (cgi stuff) rather he was wanting a solution 
more along revMail. Email is not the best solution but many times it is more 
than adequate. 
Michael
On Aug 5, 2010, at 9:54 AM, Richard Gaskin wrote:

 Michael D Mays wrote:
 
  In a lot of places email is the only way. I have people whose
  parent corporation provides their internet connection. They
  have limited bandwidth and a less than stellar corporate IT.
  Emails of less than a few MB is the only way for them.
 
 Unless I misunderstood the original request, 

___
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: E-mailing data file

2010-08-05 Thread Michael D Mays
I think were both wrong.  revMail uses the user's email program to generate an 
email. The user then can send the email from their email program.

It seems like I used Rev some years back to send email via SMTP. If not it was 
with that other cross platform software. 

Sorry,
Michael
On Aug 5, 2010, at 10:38 AM, Richard Gaskin wrote:

 Michael D Mays wrote:
 
  I think you misunderstood my comment.  And reading Charles comments
  I didn't think he was wanting to use mailto (cgi stuff) rather he
  was wanting a solution more along revMail. Email is not the best
  solution but many times it is more than adequate.
 
 I think I'm still missing something because RevMail is just a wrapper for 
 mailto.

___
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: E-mailing data file

2010-08-05 Thread Michael D Mays
Ignorant me. I just tried revMail on Windows and if the file is too big the 
email program isn't launched or if running the email isn't generated. 

I think Sarah Reichelt's POP3 and SMTP stacks at 
  http://www.troz.net/rev/index.irev?category=Library#stacks 
are pretty good. 

Michael

On Aug 5, 2010, at 11:24 AM, Richard Gaskin wrote:

 Right: that's how the mailto protocol is usually handled on most systems, and 
 unfortunately the way Microsoft handles it is unpredictable for all but the 
 shortest messages.



___
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: E-mailing data file

2010-08-05 Thread Michael D Mays
But not everyone can get Gmail from anywhere. The example I sited in my first 
reply doesn't have access to Gmail they block it and a lot of other 
things/sites/ports. I can use SMTP and email a file from there. I don't use Rev 
for this and from what Andre says, one shouldn't.  

But if you don't have anything but email, then use email.  

Michael

On Aug 5, 2010, at 1:10 PM, Scott Rossi wrote:

 Also, what if someone uses a Web-based mail client and doesn't use an email
 app at all?  I know several people who use gmail directly within a browser
 because they can get to it from anywhere there's an internet connection.
 Doesn't seem like mailto would be of any use here.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 
 Recently, Michael D Mays wrote:
 
 Ignorant me. I just tried revMail on Windows and if the file is too big the
 email program isn't launched or if running the email isn't generated.
 
 I think Sarah Reichelt's POP3 and SMTP stacks at
  http://www.troz.net/rev/index.irev?category=Library#stacks
 are pretty good. 
 
 Michael
 
 On Aug 5, 2010, at 11:24 AM, Richard Gaskin wrote:
 
 Right: that's how the mailto protocol is usually handled on most systems, 
 and
 unfortunately the way Microsoft handles it is unpredictable for all but the
 shortest messages.
 

___
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: Location parameters in Size Inspector for stack

2010-06-30 Thread Michael D Mays

On Jun 30, 2010, at 12:16 AM, J. Landman Gay wrote:

 The default value for maxWidth and maxHeight is the topmost limit of the 
 allowable stack size. So if you click the up arrow, you're going to go off 
 into the weeds; the size will be an abstraction. The fix would be to script 
 the inspector not to accept larger values than the maximum. You could report 
 that in the Quality Control Center if you feel like it. 
 http://quality.runrev.com/

I think that 65535 is the largest unsigned 16 bit integer. Clicking the up 
arrow makes it
1     
If the magical engine thinks it is getting a 16 bit integer it throws away the 
1 and calls it zero. This is what I see if I ask the stack what its width is in 
the message box. 

But why me and not you? 

When you tab through the fields and reach the last one do you have to tab ten 
more times before going back to the first?

Michael___
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: Location parameters in Size Inspector for stack

2010-06-29 Thread Michael D Mays
If a field isn't recognizing the closefield message I would call that a major 
bug, if the closefield message isn't being trapped and/or acted upon correctly 
in a field I would call that minor. (yes I am nit picking like my cousins ;)

Re reproduction: If I create a new stack, double click the stack to open the 
inspector, go to size and position; click the up arrow for the Max. Width, my 
stack disappears. If I check the location width; height via the message box I 
find all of them are what is reported in the inspector except for the width 
which is 0. this time. I just 'reset' the stack's sizes and clicked that arrow 
again and the width was set to 1. 

Michael

On Jun 28, 2010, at 2:25 PM, J. Landman Gay wrote:

 Michael D Mays wrote:
 When I go to one of the location fields, type in a different number;
 tab: nothing happens. If I click either of the arrows for the
 location's input fields of the stack, the stack updates to the
 incremented value. I've quit and restarted Rev;  created a new empty
 mainstack with the same results.
 
 It looks like a very minor bug where those fields aren't recognizing a 
 closefield. If you use the Enter key after typing a value, it works.
 
 Here is something stranger: If I click the max or min width arrow the
 stack shrinks to about width=3, height=10 not at the location in the
 inspector. I can then click the size fields arrow to get the size and
 width to update but the stack is not at the location advertised. If I
 click one of the arrows associated with the location the location
 updates.
 
 I can't reproduct this one.

___
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: snapshot and background problems

2010-06-29 Thread Michael D Mays
So when I do something like
set the filename of image Image to filepath
that data is 'the text of the image or just 'the image' which backs the image 
in its original format. When I ask for 'the imagedata of the image' I get four 
bytes for each pixel in the image: one byte of zeroes, a byte representing red, 
blue and green. There is also an alphadata which has a byte of alphadata for 
each pixel in the image. This data is a serialized stream which  representing 
in sequence  the data : left top pixel ... right top pixel, left pixel of the 
second row ... right pixel of second, left pixel of third row ... right bottom 
pixel. In a sense the imagedata has alphadata information set to zero (no 
transparency). 

How do I put the image in an image into a variable or property?

Michael


On Jun 28, 2010, at 1:53 PM, J. Landman Gay wrote:

 Scott Rossi wrote:
 
 I have no data to suggest that setting the text of an image is any better or
 worse than the method of putting image-related data into an image.  I've
 only seen references by the programming dudes at RunRev to use the text
 property, so I do.
 
 They're different properties for different purposes. The imagedata is 
 basically just a screen shot and if you set the imagedata of an image object, 
 what you end up with is just a bitmap. All other binary info is lost, 
 including channel data. If you set the imagedata of an image object that 
 isn't exactly the same size as the original screen shot, the image will 
 corrupt and become unrecognizable. The imagedata must match the size of the 
 image object exactly to display properly. (Once it's set correctly, you can 
 then scale it, but it will look terrible.)
 
 Setting the text of an image (or just putting an image reference into an 
 image object, it's the same thing) stores all the binary data, including the 
 alpha channel, and the image is scalable and can be manipulated in lots of 
 ways. The size of the image object does not need to match anything in 
 particular, since the engine will scale the data as needed.
 
 Imagedata is useful for creating thumbnails, for example, or for reducing the 
 size footprint of an image in the stack when you know you'll never need to 
 change the displayed bitmap. You can reduce the size of the image internally 
 substantially by using imagedata. Setting the text of an image is more useful 
 if you want to retain all the image properties and manipulate it (rotate, 
 scale, etc.)
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 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

___
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: snapshot and background problems

2010-06-28 Thread Michael D Mays
Thanks Scott. I don't know what is going on. I  tried this before and I didn't 
get anything but trash. This morning when I ran the handler the image became 
grey. I had been saying 'set the imagedata ...' instead of '...text...'. I 
tried text and the same nothing changed. So I deleted and dragged a new  image 
into the background ( for the nth time) and ran the handler again and it 
worked!?? 

Michael


On Jun 27, 2010, at 11:51 PM, tsj wrote:

 On 28/06/10 1:42 PM, Scott Rossi sc...@tactilemedia.com wrote:
 
 Recently, I wrote:
 
export snapshot from rect 0,0,100,100 to someVar as PNG
set the text of image myimage to someVar
 
 Correction:

___
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


Location parameters in Size Inspector for stack

2010-06-28 Thread Michael D Mays
When I type in a new location and tab out of the field in the size  position 
inspector for a stack nothing happens. All other objects I've done this with 
update their location when I tab out. 
Is this a feature or a bug?
If it is a feature, why?
Thanks,
Michael___
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: Location parameters in Size Inspector for stack

2010-06-28 Thread Michael D Mays
Yes this works.

On Jun 28, 2010, at 10:16 AM, dunb...@aol.com wrote:

 Works for me. Something is going on at your end.
 
 If you click and hold on the small arrows, does the stack size change, 
 tracking the increase or decrease in the values?

___
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: Location parameters in Size Inspector for stack

2010-06-28 Thread Michael D Mays
When I go to one of the location fields, type in a different number; tab: 
nothing happens. If I click either of the arrows for the location's input 
fields of the stack, the stack updates to the incremented value. I've quit and 
restarted Rev;  created a new empty mainstack with the same results.

Here is something stranger: If I click the max or min width arrow the stack 
shrinks to about width=3, height=10 not at the location in the inspector. I can 
then click the size fields arrow to get the size and width to update but the 
stack is not at the location advertised. If I click one of the arrows 
associated with the location the location updates.

I'm running 4.0 on 10.6.4

Michael


On Jun 28, 2010, at 10:27 AM, dunb...@aol.com wrote:

 So the size tracks the changes when clicking on the arrows, but NOT when 
 you enter a value and leave the field?
 
 Craig Newman

___
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


snapshot and background problems

2010-06-27 Thread Michael D Mays
I have a revBrowser and I want to take a snapshot of it and save the image on a 
card and do this a lot of times for many pages.
I can take a snapshot of revBrowser and save the file:
export snapshot from rect 0,0,100,100 to aFile.png as png .
How do I save a copy of the snapshot to an image on the card? I have tried
export snapshot from rect 0,0,100,100 to someVar
set the imagedata of image myimage to someVar
and I have used the revBrowserSnapshot command also but all I get is garbage in 
the image. The rect of the snapshot is three times larger than the rect of the 
image.

It seems that if I have an image and a field in a group on a card with the 
behave as background property checked I can use that group as a template on 
that card with the create card command. The field has a sharedText property. 
Does the image have a shredImage property I can turn off. If I can't do I just 
create a new image on each new card. 

Thanks,
Michael___
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: Can't change directory with shell(cd)

2008-05-02 Thread Michael D Mays
Richard Hillen in September of last year was claiming on this list 25  
seconds to do a revcopyfile.


I typed CR into the dictionary and couldn't find it. I think I must  
have added an extra  or quote when I was  typing.


Michael

On May 1, 2008, at 10:06 PM, Sarah Reichelt wrote:

 The reason I was using shell() instead of a built in Rev command  
were:

 1.) I didn't know about it :)
 2.) My first objective was to copy a file into a folder. I had used
revCopyFile and it was taking 15 seconds to copy a small file. I   
new I
could use ditto and it would be (is) much faster. So I decided to  
do the

rest with shell().


Something seems wrong there. However if using ditto works for you,
then that's fine.
I haven't done much with copying files. Moving them is very fast using
the rename command, but copying is different. If the files are small
you could try:
  put URL (binfile:  tOriginalFile) into URL (binfile:   
tNewFile)

but if they are larger than a few MB, that might not be so good as it
reads the entire file into memory before writing it out again.



 Do you have cr defined as return?


cr is defined in Rev. I prefer using it instead of return because
return also means return a value from a function and I prefer to
make sure they are obviously different. And it's shorter to type :-)

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



___
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


Can't change directory with shell(cd)

2008-05-01 Thread Michael D Mays

I'm doing this

 answer folder 
 put it into aPath
 put cd aPath into aRequest
 put aRequest into fld 1
 put shell(aRequest) into fld 2
 put shell(ls) into fld 3

No matter which folder I chose, Rev's 'Home' folder is the directory  
listed.

When I cut and paste fld 1 into the Terminal, ls works as expected.

What am I doing wrong or is this a 'feature';)?

Thanks,
Michael
OS 10.5.2
2.16 GHz ICD
___
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: Can't change directory with shell(cd)

2008-05-01 Thread Michael D Mays
It was the two separate shell calls. I had enclosed file name in  
quotes. I neglected to type them into my email (my variable names in  
my script were too silly to cut and paste).


The reason I was using shell() instead of a built in Rev command were:
1.) I didn't know about it :)
2.) My first objective was to copy a file into a folder. I had used  
revCopyFile and it was taking 15 seconds to copy a small file. I  new  
I could use ditto and it would be (is) much faster. So I decided to  
do the rest with shell().


Do you have cr defined as return?

Thanks!
Michael

On May 1, 2008, at 6:04 PM, Sarah Reichelt wrote:

On Fri, May 2, 2008 at 8:54 AM, Michael D Mays  
[EMAIL PROTECTED] wrote:

I'm doing this

  answer folder 
  put it into aPath
  put cd aPath into aRequest
  put aRequest into fld 1
  put shell(aRequest) into fld 2
  put shell(ls) into fld 3

 No matter which folder I chose, Rev's 'Home' folder is the directory
listed.
 When I cut and paste fld 1 into the Terminal, ls works as expected.


I found 2 problems with this. Firstly, if the folder name contains a
space, this will not work, so I surrounded the aPath with single
quotes. Secondly, I think you are using 2 separate instances of the
shell as you do the commands in two separate shell calls. If you
combine them into a single command and just use one shell call, it
works.

Here is my edited version of your script:

answer folder 
put it into aPath
put cd '  aPath  ' into aRequest
put aRequest  cr  ls into tCmd
put shell(tCmd) into fld 1

However, why do you want to use a shell command for this, when the
same functionality is built into Revolution commands? You could try
something like this:

answer folder 
put it into aPath
set the defaultfolder to aPath
put the files  cr  the folders into fld 1

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



___
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: Can't change directory with shell(cd)

2008-05-01 Thread Michael D Mays
Yes you do if you have space and other evil MacOS filename  
characters. Sarah saw what I was doing wrong.


I wonder if each shell call is threaded separately.

Thanks,
Michael


On May 1, 2008, at 6:01 PM, Richard Gaskin wrote:


Michael D Mays wrote:


I'm doing this
  answer folder 
  put it into aPath
  put cd aPath into aRequest
  put aRequest into fld 1
  put shell(aRequest) into fld 2
  put shell(ls) into fld 3
No matter which folder I chose, Rev's 'Home' folder is the  
directory  listed.

When I cut and paste fld 1 into the Terminal, ls works as expected.
What am I doing wrong or is this a 'feature';)?


Does the path need to be in quotes? E.g.:

put cd quoteaPathquote into aRequest


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



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


How do I get dragStart message sent?

2007-05-17 Thread Michael D Mays

I have a locked field with the following handlers:

on mouseDown
  set the dragdata [text] to me
end mouseDown

on dragStart
   beep
  pass dragStart
end dragStart

I never get a beep. In the Message Watcher I see
mouseDown
dragLeave
dragEnter
dragMove

What do I do to get the dragStart to be sent?

(What are the numbers in parentheses at the end of each line in the  
Message Watcher?

What are the messages types and are they handled differently?)

Thanks,
Michael
___
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: Arithmetic operations on dates ?

2005-03-07 Thread Michael D Mays
Are we talking about the fact that when we do something like:
  get the date
  convert it to dateItems
The result is:
 2005,3,7,2,0,0,2
instead of perhaps:
  2005,3,7,0,0,0,2
??
Michael
On Mar 6, 2005, at 11:39 AM, Bill Vlahos wrote:
I believe it is 2am.
Bill Vlahos
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Arithmetic operations on dates ?

2005-03-06 Thread Michael D Mays
Paul,
If you say
 put 2005,2,29,0,0,0,0 into someDate
 convert someDate to dateItems
someDate will be 2005,3,1,0,0,0,3
If I say
 put 2005,3,6,23,59,59,0 into aTimeDate
 add 1 to 1 to item 6 of aTimeDate
 convert aTimeDate to long date
aTimeDate is
  'Monday, March 7, 2005'
What days is Rev starting the day at 1 am or 2 am or 3 am?
Michael
On Feb 26, 2005, at 3:40 PM, [EMAIL PROTECTED] wrote:
Sorry Michael,
 Your dateItems script is logical - it just will not work reliably 
with
Revolution - because...
Some days in Rev. start at 1 am, most start at 2 am, and even 3 am. 
This is
again related to the crazy way Rev. handles daylight saving time. Also 
Rev.
does not convert 2005,2,29, etc. to 2005,3,1 etc.
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: custom property searching speed question

2005-03-02 Thread Michael D Mays
Only 2 seconds?  I would think about a month. ;)
Michael
On Mar 2, 2005, at 4:36 PM, Richard Gaskin wrote:
PBG4/1KHz.
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Arithmetic operations on dates ?

2005-02-26 Thread Michael D Mays
Use the dateItem format of the date:
Convert your date to date items.
  convert myDate to dateItems
Now add your time increments to the appropriate item
  add 17 to item 5 of myDate -- hours
  add 3 to item 4 of myDate -- days
Then convert to dateItems again
  convert myDate to dateItems
Convert back to the date format you were using
To increment by weeks just add or subtract 7 days, item 3 of the 
dateItems.

To increment by months just add the number of months to item 2 of the 
dateItems.

Your February problem will be taken care of automatically if you are 
incrementing by the number of months.

Use seconds only when you want to know how many days are between two 
dates.
 put (dateInSeconds1-dateInSeconds2)/(86400) into theDaysInBetween

Using item 7 of the dateItems allows you to calculate dates such as 
'the second Monday of March.'

And so on.
Michael
On Feb 26, 2005, at 4:55 AM, jbv wrote:
Hi revolutionaries,
What is the best way to make artithmetic
operations on dates ? For instance I have
a list of events stored with the date  time
of occurence, and I'd like to quickly pick
up those that took place during the last 17
hours, or the last 3 days, or the last 7 weeks
or the last 19 months...
I know this can be done with SQL but I don't
want to set up a database just for that...
The best thing I came up with is to convert each
event date into seconds, subtract the amount of
seconds of the interval of time, and then pick up
all items greater than that...
But I have the feeling that computing the interval
in seconds might get tricky when there's a february
29 in it (for instance)...
Any better idea ?
Thanks,
JB
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Printing Again

2005-01-29 Thread Michael D Mays
This behavior, although logical, does not make since in a WYSIWYG 
environment. Does one ever see this inherited color except when 
printing? What would happen if the default was white instead of 
transparent? Is anyone actually printing on purpose the default color 
of the system on printed output? And if they are do they own stock in 
some ink cartridge company?:)

Michael
On Jan 28, 2005, at 5:17 PM, Frank D. Engel, Jr. wrote:
The gray background of the field is due to the fact that the default 
background color is being inherited from the card, 
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Random #s

2005-01-28 Thread Michael D Mays
If you are asking the random of a big number then that will be true.
I think I remember that to generate a list of random numbers what you 
should be doing is asking questions like
random(N)
random(N-1)
.
.
.
1

If you wanted to generate a random list with the numbers 1 thru 10
random(10) - 3
Now you pick the 3rd item of the list of integers{1,2,3,4,5,6,7,8,9,10} 
you pick 3 and remove the 3rd item.
Your random list is {3}
random(9)-3
Now you pick the 3rd item of the remaining integers 
{1,2,4,5,6,7,8,9,10}: you pick 4 and remove the 3rd item.
Your random list is {3,4}
And so on.

Michael
On Jan 27, 2005, at 7:35 AM, Dave Cragg wrote:
Although I'm sure this is fine in practice, this kind of solution 
always makes me a little nervous. In theory, it could take for ever to 
find a unique set of numbers. While my testing shows it never takes 
longer than a millisecond, Murphy's law says that the first time you 
put it into an application, it will take three days. :)
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Random #'s

2005-01-28 Thread Michael D Mays
What does it mean to sort  1,2,3,4,5  by 12?
Maybe it should be
 sort items of x numeric by random(1)
?
Michael
On Jan 27, 2005, at 4:21 PM, Dar Scott wrote:
On Jan 27, 2005, at 2:31 AM, D.Rothe wrote:
How can I include only unique numbers?
Here is an interesting variation:
on mouseUp
  put rlist()
end mouseUp
function rlist
  put 1,2,3,4,5,6,7,8,9,10 into x
  sort items of x by random(1)
  return item 1 to 6 of x
end rlist
Dar
**
DSC (Dar Scott Consulting  Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Offset with 'charstoskip' doesn't work? [was RunRev vs RealBasic (Richard Gaskin)]

2005-01-21 Thread Michael D Mays
I thought I would see if I could solve the RB/Rev/SC challenge and 
tried this as a first attempt:

on mouseUp
  put fld 1 into sFld
  put fld 2 into tFld
  put  into fld 3
  -- put 0 into it --*1
  put zero into t --*2
  repeat with i= 1 to the number of lines in tFld
repeat
  -- get offset(line i of tFld,sfld,it) --*1
  get offset(line i of tFld,sfld,t) --*2
  put it into t --*2
  if it is zero then exit repeat
  put line i of tFldiitreturn after fld 3
end repeat
  end repeat
end mouseUp
but what happens is along the way it finds a search string in question 
at char 246674 and then finds it again at 250675 and then finds it 
again at 246674 then at 250675 then at 246674 then at 250675 ...

Is offset not working or am I not?
Michael
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Offset with 'charstoskip' doesn't work? [was RunRev vsRealBasic (Richard Gaskin)]

2005-01-21 Thread Michael D Mays
On Jan 21, 2005, at 10:05 AM, Alex Tweedly wrote:
Michael D Mays wrote:
I thought I would see if I could solve the RB/Rev/SC challenge and 
tried this as a first attempt:

on mouseUp
  put fld 1 into sFld
  put fld 2 into tFld
  put  into fld 3
  -- put 0 into it --*1
  put zero into t --*2
  repeat with i= 1 to the number of lines in tFld
repeat
  -- get offset(line i of tFld,sfld,it) --*1
  get offset(line i of tFld,sfld,t) --*2
  put it into t --*2
  if it is zero then exit repeat
  put line i of tFldiitreturn after fld 3
end repeat
  end repeat
end mouseUp
but what happens is along the way it finds a search string in 
question at char 246674 and then finds it again at 250675 and then 
finds it again at 246674 then at 250675 then at 246674 then at 250675 
...

Is offset not working or am I not?
It's you :-)
When you do the second search, t already contains an 'skip' value; the 
result from the offset search is relative to that.
So instead of
 put it into t
you should do
 add it to t

-- Alex.
Someday I will read the complete description in the documentation all 
by myself.:)
Thanks.

But what is the advantage of returning the offset from the last offset 
rather than the offset from beginning?

I think I do need to insert
  put zero into t
after the first repeat and before the second repeat.
Michael
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: RunRev vs RealBasic (Richard Gaskin)

2005-01-20 Thread Michael D Mays
Yes 4000 times faster, once you take your shoes off.
One char, 4 char and 8 char replacement is fast.
on mouseUp
  repeat with i = 1 to 100
put 1234567890 after dd
  end repeat
  put 990 into a
  get the long seconds
  put a into char a of dd
  put abcd into char a to a+3 of dd
  put abcdefgh into char a to a+7 of dd
  put the long seconds - it
end mouseUp
Michael
On Jan 20, 2005, at 12:38 AM, Richard Gaskin wrote:
Richard Gaskin wrote:
Chipp Walters wrote:
  Richard Gaskin wrote:
  I've been pondering this new speed enhancement to same-size
  chunk replacements, specifically in regard to image processing.
  Since much of what image processing involves is replacing a
  specific number of bytes, I wonder if any of the folks here
  have made any recent experiments with writing image filters
  in native Transcript.  With the sort of speed Dar reports we
  may find that some types of filters can run acceptably well
  in Transcript alone.
 
  I did write some compositing and blur/sharpen filters in
  transcript some time ago, but I don't know the details of
  the 'same-size chunk' replacements. Where can I find more info?
All I know is what Dar posted here, but it sounded really tasty. 
Apparently he made a suggestion to Scott Raney about ways to optimize 
operations in which a string of a given length is used to replace a 
substring of the same length within a larger chunk.
In previous versions a very generalized approach was used for all 
replacement operations, requiring that the data be copied during the 
replacement, which can be computationally expensive with large 
chunks.
Since the data being inserted is the same length as the data being 
removed the handle size doesn't change, allowing the operation to 
work in-place, without copying.
IIRC, Raney reported that the new method should improve speed by 
roughly 4000 times for those cases.
Dar - got the details for us?
Found the Bugzilla notes:
http://support.runrev.com/bugdatabase/show_bug.cgi?id=586
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: RunRev vs RealBasic (Richard Gaskin)

2005-01-20 Thread Michael D Mays
see thread
 Bugzilla 586, the fast char replacement (was Revolution compilation)
I had a hard time counting to 4.
I get a 4000X improvement on my dual 2GHz PPC G5.
Michael
On Jan 20, 2005, at 4:43 PM, Richard Gaskin wrote:
For clarity, I should admit that I'd accidentally misquoted Scott 
Raney's claim from the Bugzilla report:  it's *only* 1000 times 
faster, not 4000 times.

What does once you take your shoes off mean in this context?
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Date Troubles

2005-01-18 Thread Michael D Mays
The date formats only works over a short period of time, about 2^32 
seconds (4 byte word). That is about 1934 to 2035. If you are using 
dates outside of that region then you need to work with dateItems and 
seconds. I think dateItems gives you the largest time span. To do this 
you have to convert your date to a dateItem with your own handler, not 
the convert function:

put 7/18/1868 into theDate
put myDateItemHandler(theDate) into theDate
function myDateItemHandler theDate
  get the itemDelimiter -- this get/set may not be needed
  set the itemDelimiter to /
  put item 1 of theDate into theMonth
  put item 2 of theDate into theDay
  put item 3 of theDate into theYear
  set the itemDelimiter to it-- this get/set may not be needed
  return theYearcommatheMonthcommatheDaycommacommacommacomma
end myDateItemHandler
You can convert this dateItem to seconds and do your calculations. If 
you want to return a date convert your seconds to dateItems and write a 
handler which creates your desired date format.

Michael
On Jan 17, 2005, at 6:58 PM, Sarah Reichelt wrote:
What do I need to do to make the following work right? To get the 
centuries
right?

put 7/18/1868 into temp
  put temp into  fld 1
  convert temp to seconds
  put   --  temp after fld 1
  convert temp to long date
  put   --  temp after  fld 1
Hi Nelson,
The only way I could get it to work was to use Julian dates. if you go 
to my web page, you will see a DateTime library: DateTime.rev.gz, 
which includes functions for translating dates to  from Julian 
format, originally written by Mark Weider.

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Why no closeField messages sent?

2005-01-13 Thread Michael D Mays
I see that now.:) RTM, right?
I was thrown off by the use of focus
-
Sent to a field when the focus is being removed from that field and the 
field's content has changed.
-
and the focus command. In my mind the user selects and types; the 
programer shifts focus. In fact the focus does change when the user 
selects a field. But also the focus can change without any user 
interaction.

In fact a put into the fld can stifle the closeField message. Make a 
card with two flds. In fld 1

 on keyDown theKey
  if theKey is r then
   put  rule  after fld 1
   exit keyDown
else
 pass keyDown
end if
end keyDown
In the card's script trap the closeField message
on closeField
  beep
end closeField
Now type 'dogsrtab' (where tab is the tab key).
No beep even though the user has clicked and typed in the field.
But you can type 'dogsrtheworldtab' and get a closeField to fire off.
I understand the compatibility problems with HyperCard and now in turn 
Revolution, but shouldn't there be a fieldTouched and/or fieldDirtied 
message?

Michael
On Jan 12, 2005, at 4:42 PM, Frank D. Engel, Jr. wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Look at the second paragraph under the Comments section of Rev's 
docs on the closeField message.

They explicitly state that the put command does *not* trigger a 
closeField message (at least as of 2.5).

On Jan 12, 2005, at 5:36 PM, Michael D Mays wrote:
Compatibilty is extended to the documentation. Neither docs state 
that the message is sent  only after user interaction.;)

Is there a message sent or property changed  when the field is 
dirtied?

On Jan 12, 2005, at 10:28 AM, J. Landman Gay wrote:
On 1/11/05 5:14 PM, Michael D Mays wrote:
If I do this from a handler
 select char 1 of fld 1
 select char 2 of fld 2
an exitField message is sent from fld 1. But I cannot 
programatically select a fld, modify it, exit it and generate a 
closeField message.
What am I doing wrong? Is it possible? If not, why not?:)
CloseField is only sent after user editing, not after changes from a 
script. It may be due to historical reasons, to maintain 
compatibility with HyperCard which does the same thing.

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

- ---
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.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFB5afS7aqtWrR9cZoRAhDWAJ0RhyEA38Khe4a0JpQbhOAHIbMvYQCdEg7K
9hKdYvQpE5kYFfSmFJk0QCs=
=VOVp
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 120MB 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
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Why no closeField messages sent?

2005-01-12 Thread Michael D Mays
Compatibilty is extended to the documentation. Neither docs state that 
the message is sent  only after user interaction.;)

Is there a message sent or property changed  when the field is dirtied?
On Jan 12, 2005, at 10:28 AM, J. Landman Gay wrote:
On 1/11/05 5:14 PM, Michael D Mays wrote:
If I do this from a handler
 select char 1 of fld 1
 select char 2 of fld 2
an exitField message is sent from fld 1. But I cannot programatically 
select a fld, modify it, exit it and generate a closeField message.
What am I doing wrong? Is it possible? If not, why not?:)
CloseField is only sent after user editing, not after changes from a 
script. It may be due to historical reasons, to maintain compatibility 
with HyperCard which does the same thing.

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


Re: OT: need real Apple Service email address

2005-01-11 Thread Michael D Mays
Is there a telephone number on the bill associated with the charge? 
Call it and tell them your situation. If this doesn't work call your 
credit card company and tell them Apple charged you for something you 
did not receive and you want to have the charge removed.

Michael
On Jan 10, 2005, at 3:40 PM, Wilhelm Sanke wrote:
Can anyone of the many list members that are Apple experts provide me 
with an Apple Service email address where I do not get *automated* 
responses, but real answers from real people?
The problem is, I bought a Quicktime Pro 6 license key on Dec 17 from 
the online Apple Store (U.S.A. website), got charged from my credit 
card account (the equivalent of 52 US$) the very same day, and didn't 
get the key .

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


Why no closeField messages sent?

2005-01-11 Thread Michael D Mays
If I do this from a handler
 select char 1 of fld 1
 select char 2 of fld 2
an exitField message is sent from fld 1. But I cannot programatically 
select a fld, modify it, exit it and generate a closeField message.

What am I doing wrong? Is it possible? If not, why not?:)
Michael
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Version() - 2.6.1

2005-01-08 Thread Michael D Mays
I typed
  put the version
into the message box and
  2.6.1
was the answer. I (and the splash screen) thinks it should be 
2.5.something. Are we wrong?

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


Crash when undo after editing Custom Property

2005-01-08 Thread Michael D Mays
When editing the Custom Properties with the Object Inspector I've 
crashed Revolution each time. Here is the formula:

Create a property for a field in the Inspector
Edit the property's name in the Inspector and save it
Select Undo
BB# 2537
Michael
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Version() - 2.6.1

2005-01-08 Thread Michael D Mays
Yes I think I need revAppVersion()
Michael
On Jan 8, 2005, at 8:58 AM, Alex Tweedly wrote:
Michael D Mays wrote:
I typed
  put the version
into the message box and
  2.6.1
was the answer. I (and the splash screen) thinks it should be 
2.5.something. Are we wrong?
I think the 2.6.1 is the version of the underlying engine (aka the 
Metacard engine), and is independent of the IDE version (which is 
available as revAppVersion() and should be 2.5 or 2.5.something).

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


Re: Unicode control pictures on OS X?

2005-01-08 Thread Michael D Mays
I did have a big fld on the card with the handles off screen. But it 
had to be under the field because even though I could still edit in the 
fld.

Now when I try to replicate the conditions on a new stack, I can't get 
the unicode chars which are visible in the fld to print. No matter 
where/what layer the flds are???

Michael

On Jan 4, 2005, at 12:25 PM, J. Landman Gay wrote:
On 1/4/05 10:20 AM, Michael D Mays wrote:
If I have a glyph that displays on the screen but doesn't print and I 
cover it with a transparent field it will then print. When it prints 
the resolution is much less than that displayed. ???
I hit this problem once. When a field is covered by a transparent 
object, the engine uses the screen bitmap underneath the transparency 
for printing rather than rendering the field text as a font. This is 
due to some weird behavior with graphics drivers or something; I can't 
remember exactly what. But that's why you can print what you see on 
screen, and why it is printing at screen resolution (i.e., bitmapped.)

And I have a field on a card where the cursor has disappeared (I can 
click and type in the field, but I cannot see the cursor) and in that 
field the Unicode prints OK.
If another object overlaps a field, the cursor can disappear. Check to 
make sure there isn't anything over that field. Also make sure the 
traversalOn is set to true for the field.

I guess I just need to figure out how I mucked up that field?:)
Combination of things, sounds like. ;)
--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bugzilla 586, the fast char replacement (was Revolution compilation)

2005-01-08 Thread Michael D Mays
Are you saying that replacing 4 chars is fast or should be fast? I 
can't make it fast. If it is suppose to be fast how do you do it?

Michael
On Jan 4, 2005, at 12:02 PM, Dar Scott wrote:
On Jan 4, 2005, at 10:00 AM, Michael D Mays wrote:
0.04  -- yy 10MB at char 999
Yes.  Perhaps a small growth near the end can be optimized some day.  
(Appending small amounts is fast on the average.)

I think that replacing 4 chars for 4 chars is fast.  Think imageData 
pixel.  I think that replacing 8 chars with 8 chars is fast.  Think 
matrix.

Dar
**
DSC (Dar Scott Consulting  Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bugzilla 586, the fast char replacement (was Revolution compilation)

2005-01-08 Thread Michael D Mays
Ag...,
I was doing
 put  into char  to 4448 of x
Michael
On Jan 8, 2005, at 12:24 PM, Dar Scott wrote:
  put  into char  to 4447 of x
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Why multiple votes in Bugzilla?

2005-01-06 Thread Michael D Mays
Does it make any difference if I use all my votes on one problem? Will 
that increase the likely hood of the problem getting fixed or will it 
just show that it is a very serious problem for me?

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


Re: Unicode won't print

2005-01-06 Thread Michael D Mays
Just to be clear, that Michael is not me.
But what you say is very true.  If a user inserts some unicode into a 
field in your application or stack which is to be printed your 
application or stack is going to break .


Michael
On Jan 4, 2005, at 5:02 AM, ron barber wrote:
See bug 1955, its been assigned to Michael last I heard. It would be 
great to get this fixed since its a large hole in the support for 
unicode.

Ron
On Jan 3, 2005, at 9:27 AM, Michael D Mays wrote:
I'm on Mac OSX.3.7
I make a stack with a card which has one field. I use the Character 
Palette to select and insert into the field the unicode character 
20A04, the currency pound symbol. It shows up beautifully in the 
field. Now I print. Nothing shows up.

What am I doing wrong?
Michael
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Unicode control pictures on OS X?

2005-01-04 Thread Michael D Mays
If I have a glyph that displays on the screen but doesn't print and I 
cover it with a transparent field it will then print. When it prints 
the resolution is much less than that displayed. ???

And I have a field on a card where the cursor has disappeared (I can 
click and type in the field, but I cannot see the cursor) and in that 
field the Unicode prints OK.

I guess I just need to figure out how I mucked up that field?:)
Michael
On Dec 24, 2004, at 12:12 AM, Dar Scott wrote:
 I remember the glyphs were very ugly, so maybe they were yanked from 
the font I was using.
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bugzilla 586, the fast char replacement (was Revolution compilation)

2005-01-04 Thread Michael D Mays
This is good for a single char but beware if you say something like
 put yy into char 12345
you see a tremendous  slow up:
0.08 -- y 100KB at char 9
0.13 -- y 10MB at char 999
0.000412 -- yy 100KB at char 9
0.04  -- yy 10MB at char 999
But this is good to know. I had some running sums which really dragged 
on moderate sized data sets. But when I say
 put char i of tt into char 99444+i  of x
things really speed up. On my tests one char inset took 13 microseconds 
and 15 chars using a repeat loop took 37 (on a 10MB string)

Michael
On Jan 3, 2005, at 8:52 PM, Dar Scott wrote:
Concerning bugzilla 586, the fast char replacement...
On Jan 3, 2005, at 7:00 PM, Alex Tweedly wrote:
So 2 questions
1. Is this fix already in 2.5 ?
Yes.  Here is a timing demo for OSes that have a high res long seconds:
on mouseUp
  put longString(10) into x
  put the long seconds into a  -- OS X only
  put y into char  of x
  put the long seconds into b
  put b-a
end mouseUp
function longString n
  put empty into s
  repeat n times
put x after s
  end repeat
  return s
end longString
==
.14
The fix is really an enhancement.  Either I goofed and labeled it a 
bug or it got turned into a bug by another.

2. Where in BZ do you look for that info ?
I think that is normally the target milestone.  Some of those fell 
in a crack, but currently, those those are getting set.
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Unicode won't print

2005-01-03 Thread Michael D Mays
I'm on Mac OSX.3.7
I make a stack with a card which has one field. I use the Character 
Palette to select and insert into the field the unicode character 
20A04, the currency pound symbol. It shows up beautifully in the field. 
Now I print. Nothing shows up.

What am I doing wrong?
Michael
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: RunRev vs RealBasic

2005-01-03 Thread Michael D Mays
There was CompileIt! for Hypercard which allowed you to compile your 
scripts. But the increase in performance wasn't obtained simply by 
compiling your script. In general an uncompiled HyperTalk script ran 
the same as the compiled script. In fact they could be slower. In some 
instances you could see about a thousand times increase in performance. 
But you weren't simply compiling a HyperTalk .

In general if you compared fast CompileIt! scripts to MetaTalk scripts 
on Mac OS 9 you could see a speed increase but only on the order of one 
not three orders of magnitude.

What is running so slow in Revolution?
Michael
On Jan 3, 2005, at 9:22 AM, Frank D. Engel, Jr. wrote:
I personally wonder what it would take to create a true compiler for 
Rev stacks?  Obviously this would introduce some limitations on 
certain operations, but for stacks which don't use those operations, 
it could substantially increase performance...
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OT: Scripting the UI in Windows

2005-01-03 Thread Michael D Mays
Thanks James, Ben and Doc for the information.
CESoft's Quickeys   http://www.cesoft.com/
AutoIt:  http://www.hiddensoft.com/AutoIt/
AutoHotKey:  http://www.autohotkey.com/
WinBatch  http://www.winbatch.com/
Michael
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Unicode won't print

2005-01-03 Thread Michael D Mays
That one prints.
But why doesn't the other one? Is there anyway to tell which ones will 
print and which ones won't?

Michael
On Jan 3, 2005, at 12:52 PM, Dar Scott wrote:
On Jan 3, 2005, at 7:27 AM, Michael D Mays wrote:
I make a stack with a card which has one field. I use the Character 
Palette to select and insert into the field the unicode character 
20A04, the currency pound symbol. It shows up beautifully in the 
field. Now I print. Nothing shows up.

What am I doing wrong?
This is not a real answer, not a general answer.  But maybe you want 
U+ (Pound Sign, used for Lira) instead of U+20A4 (Lira Sign).  
And maybe that will print.

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


OT: Scripting the UI in Windows

2005-01-01 Thread Michael D Mays
Is there an application in Windows such as FaceSpan
 http://www.facespan.com/facespan/pagespeed/url//Home/
I want to be able to click some buttons, window items; etc  
programatically in a program I think was written with VisualBasic.

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


Re: barcode scanner

2004-11-29 Thread Michael D Mays
In many cases this is true. But think about the case where you are 
scanning identical items. It would nice to be able to type 10 and then 
scan the item instead of scanning each identical item. Suppose you want 
to route the item somewhere. You need to be able to enter the routing 
information. How about using a scanner to log in? You would probably 
want to type a password.

If you just want to scan an item and then go to the next item and scan 
it, then not being able to tell where the input is from is fine. But in 
all the other cases you probably just want the scanned information 
going to a specific field (container) and it would be nice not to have 
to force the focus to that field with an addition mouseclick or tab(s) 
etc.

Michael
On Nov 27, 2004, at 10:48 AM, Frank D. Engel, Jr. wrote:
This is not normally a problem.  One would typically want the ability 
to key in the same data being scanned in the instance that the scanner 
fails to read the barcode (as sometimes can happen with an 
inaccessible or poorly conditioned barcode), so this overlap would 
actually make life easier.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: barcode scanner

2004-11-27 Thread Michael D Mays
The problem, I envision, is  when you integrate a keyboard with the 
scanner.

How can you differentiate between keyboard input and the input from the 
scanner? Is there a way to tell whether the input is from a scanner or 
the keyboard?

Michael
On Nov 25, 2004, at 5:46 AM, Andre Garzia wrote:
On Nov 25, 2004, at 9:06 AM, paolo wrote:
How can I  send data from  a barcode scanner  to a  revolution stack 
on WIN-PC?

Any of you experienced a software using   a barcode scanner as 
data-entry in a revolution stack?

Ciao Paolo Mazza
I do think that barcode scanners send their data as simple ascii 
numbers, like if the user had typed with the numeric keypad. Like you 
don't really access the scanner hardware, you just put a field, when 
the user uses the scanner, the scannner will send the numbers and the 
field will be filed. But please test this before beliving in my words, 
I don't really know if this is how they work, but I remember 
researching a little while ago, and seeing something like that. If 
indeed they work like this, then there's not a single problem when 
creating stacks...

cheers
andre
PS: I just saw a USB barcode scanner like those credit card 
scanners...


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

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


Two sided printing

2004-08-31 Thread Michael D Mays
Hi,
How do I set up my printer with a script to do two sided printing, pick 
which tray to print from, ...?

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


Can Rev Print Unicode?

2004-08-03 Thread Michael D Mays
Can Rev print unicode? And if it can how? I would like to be able to 
(Bprint mathmatical operators and such in a line of 'text' such as
(B
(B  A $B"@(B B  (A 'union' B)
(B
(BI can display the formula with the 'union' character in a field, but 
(Bnothing is printed
(B
(BThanks,
(BMichael
(B___
(Buse-revolution mailing list
(B[EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

Re: Can Rev Print Unicode?

2004-08-03 Thread Michael D Mays
I do not know what happened. I used Grab to copy an image of the 
(Boperator and pasted it on the card and printed it and the operators in 
(Bthe field appeared. 
(B
(BIt seems that the image's rect must cover the unicode for the unicode 
(Bto print.
(B??
(B
(BMichael
(B
(BOn Aug 3, 2004, at 9:41 AM, Michael D Mays wrote:
(B
(B Can Rev print unicode? And if it can how? I would like to be able to 
(B print mathmatical operators and such in a line of 'text' such as
(B
(B  A $B"@(B B  (A 'union' B)
(B
(B I can display the formula with the 'union' character in a field, but 
(B nothing is printed
(B
(B Thanks,
(B Michael
(B___
(Buse-revolution mailing list
(B[EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

Re: Can Rev Print Unicode?

2004-08-03 Thread Michael D Mays
I'm on a Mac.
revprintField prints everything in the filed except for the unicode.
The way I put the unicode into the field is via Apple's Character 
Palette.

Michael
On Aug 3, 2004, at 1:57 PM, Jan Schenkel wrote:
--- Michael D Mays [EMAIL PROTECTED] wrote:
Can Rev print unicode? And if it can how? I would
like to be able to
print mathmatical operators and such in a line of
'text' such as
  A ¢À B  (A 'union' B)
I can display the formula with the 'union' character
in a field, but
nothing is printed
Thanks,
Michael
Hi Michael,
Have you tried using the revPrintField command to
print the contents of the field ?
Also, is this on Windows, Mac, ... ?
Hope this helped,
Jan Schenkel.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to load a property with an Array?

2004-07-16 Thread Michael D Mays
Thanks to all! I was concerned about the cat to rat ratio, but Jacque 
cleared that all up.;)

Michael
On Jul 15, 2004, at 10:41 AM, Jeanne A. E. DeVoto wrote:
At 9:52 PM -0500 7/14/04, Michael D Mays wrote:
Can I set an array directly into a custom property or do I have to 
'combine' the array before setting it and then 'split' it after I get 
it in order to use it as an array?
You can set it directly.
Technically, what you get in this case is a custom property set - with 
each element being a property in that set. But for your purposes the 
distinction doesn't matter, because you address the properties in a 
custom property set with array notation:

  set the customProperties[pets] of this card to myPetInventory -- 
array
  put the pets[dog] of this card into field Number of Dogs
  set the pets[cat] of this card to 14
--
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.com

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


How to load a property with an Array?

2004-07-14 Thread Michael D Mays
Hi,
Can I set an array directly into a custom property or do I have to 
'combine' the array before setting it and then 'split' it after I get 
it in order to use it as an array?

I would like to do something like:
  put dog,13 cat,12 rat,129 into myPetInventory
  split myPetInventory by   and ,
  set the pets of this card to myPetInventory
Thanks,
Michael
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Saving a stack on OSX creates a 'classic' stack

2004-06-24 Thread Michael D Mays
That's it. I think it might have default to classic because I had 
downloaded some classic stacks on this machine and tried to open them 
before I had Rev installed. Of course my icons aren't updating. I guess 
I will have to rebuild my desktop :) ,joke

Thanks,
Michael
On Jun 23, 2004, at 9:45 PM, J. Landman Gay wrote:
That's an OS X Finder thing. Get Info on any stack that has a Classic 
icon. Look in the Open With panel of the Get Info box. Choose the OS 
X version of Rev as the app to open the file with. Then also check the 
box that says Use this application to open all documents like this. 
From then on, the Finder will open Rev stacks with the OS X version of 
Rev.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Paths to inside bundles [was Re: A clue for using Valentina by XCMD]

2004-06-22 Thread Michael D Mays
When I say a stack I mean a stack.
When I say an application I mean a standalone application.
;)
When I make the standalone, Rev puts the VXCMD_Macho_HC into the bundle  
and sets 'the externals' of the standalone. If I tell the standalone to
 put the externals in fld 2
I see
./VXCMD_Macho_MC Untitled 2.app/Contents/MacOS/externals/revdb.bundle
This isn't where Rev puts the Xcmd. The path to the Xcmd in the bundle  
is

./Contents/MacOS/externals/database_drivers/VXCMD_macho/Contents// 
MacOS/VXCMD_macho

I explicitly set 'the externals' to this path in the stack before I  
make it into a standalone application. But that doesn't work. I can put  
the Xcmd in the folder with the standalone outside of the bundle, set  
the externals to this location and after a couple of launches of the  
standalone, it sees the Xcmd. But I can't get the standalone to see the  
Xcmd in the bundle.

The Rev Docs lead  me to beleive I should be able to use pathnames such  
as the one above.

Is this the correct pathname?
In general, how does one put things in the bundle.? And where?
Michael
On Jun 21, 2004, at 5:28 PM, Robert Brenstein wrote:
 guess that by creating the stack you really mean creating a  
standalone. The path for standalone will be different than for a stack  
in IDE. Best is to figure it out programmatically.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A clue for using Valentina by XCMD

2004-06-21 Thread Michael D Mays
Are you using Windows or OSX. If you are I think you might need to type 
in the message box of the stack you are using
 set the externals of this stack to ./VXCMD_Macho_MC
so that the stack knows to use the Xcmd (p 4 of the VXCMD docs). You 
have to quit Rev or purge the stack from memory and then start afresh 
before the property is registered. If your file path or Xcmd is 
different then modify the set command accordingly. I think the macho 
version doesn't ship with OSX Rev so you will need to download it from 
Paridigmasoft.com. I don't know about windows but I think you need 
VXCMD_Win_MC.dll. That is what the docs say.

If you get the externals set to your stack you should be able to type
 put valentina(version)
into the message box and have the version returned.
Michael
On Jun 21, 2004, at 7:54 AM, Ben Rubinstein wrote:
Can anyone give me some clues about using Valentina from Rev via the 
XCMD?

I've been able to use it via the revdb functions with some limited 
success,
but had some crashes (sadly not been able to pin down) and I think not
everything can be done via the SQL interface - for example, I've not 
been
able to create a new database from scratch.  So I'd like to dig into 
the
direct interface.

I've looked at the documentation, both Rev's and Valentina's, but not 
got
anywhere.

As I understand it, Rev ships with the Valentina XCMD already 
integrated it.
Is that right, or should I need to do install anything else to get 
working?

My first - perhaps it's my only - problem is the name of the function. 
 The
documentation from Rev is nowhere (that I can find) explicit about 
this.
The documentation from Paradigma suggests that there should be a 
function
called Valentina, eg that there should be possible to execute
put Valentina( Version )

When I attempt the above, I get error in function handler.  (I also 
tried
it as a handler rather than a function - just get the equivalent, no 
such
handler.)  Do I need to do something else to make the Valentina 
functions
available?  Or is just a slightly different name?
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A clue for using Valentina by XCMD

2004-06-21 Thread Michael D Mays
For debugging:
get Valentina(SetDebugLevel,  3 )
The 3 parameter tells Valentina to log messages from the Valentina Xcmd 
to the Console program. When Rev crashes, look over at Console and you 
will see what was happening when you crashed or just to see if the xcmd 
is doing what you think it should be doing.  See page 5 of the VXCMD 
docs.

Michael
On Jun 21, 2004, at 11:45 AM, Ben Rubinstein wrote:

Thirdly - the VXCMD_Reference.pdf does not contain a reference to the 
error
codes.  These can be found in ValentinaKernel.pdf.

Well, that's got me started.  Thanks very much.  Here we go...
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Saving a stack on OSX creates a 'classic' stack

2004-06-21 Thread Michael D Mays
When I save a stack in OSX it is saved as a classic stack. Do I have 
something
configured wrong?

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


Re: A clue for using Valentina by XCMD

2004-06-21 Thread Michael D Mays
I am having trouble getting an application to work. I have a test stack 
which only has the mouseUp script in a button:
 put valentina(version) into fld 1.

As a stack, when I click the button the version is put into the fld.
When I create the stack nothing happens. I think I have the application 
settings correct. I see the xcmd is in the package
(./VXCMD_Macho_MC Untitled 2.app/Contents/MacOS/externals/revdb.bundle).

Any clues as to what I am doing wrong?
Thanks,
Michael
On Jun 21, 2004, at 3:42 PM, Ken Ray wrote:
Actually, I've been using and trapping errors in Valentina with 
MetaCard for
a long time and very rarely will it crash MetaCard; perhaps it's an IDE
interation thing with Rev?
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Serial Port Toolkit

2002-04-30 Thread Michael D Mays

Are you using Apple's HyperCard serial port XCMDS to talk to a serial port
via a USB to serial port adapter?

I have Apple's XCMDs. If you have some others you are willing to share, I
would appreciate you sending them to me.

Thanks,

michael 

David Vaughan of [EMAIL PROTECTED] wrote the following on 4/29/02 11:05 PM

 Michael
 
 If you like I can send them to you.
 
 regards
 David

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



Re: Open driver?

2002-04-29 Thread Michael D Mays

Which suit of XCMDs?

michael

David Vaughan of [EMAIL PROTECTED] wrote the following on 4/28/02 11:14 PM

 I can run HyperCard in the Classic environment under OS X and
 communicate through the USB using a suite of XCMDs, but nothing directly
 in OS X yet.

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



Re: BUG in CONVERT command - or I can't tell the time

2002-04-22 Thread Michael D Mays

When it is 12 midnight in Edinburgh (GMT) it is 6:00 PM the day before here
in Dallas (CST) (no daylight savings time). And that is the way it should
be. If a child was born at zero seconds, okay 1 second, in Edinburgh a year
later in Dallas at 6:00:01 PM on Dec 31st she would be a year old.

IMO, date and time formats should only be used to display dates and times.
Aside from formatting issues, as illustrated here time and date formats have
'hidden parameters' such as where (time zone) and when (daylight savings
time) associated with them.

If you use time and date formats to to calculate time differences you will
find several glitches in your calculations. Daylight savings time can add
and subtract an hour and even give you a negative time (which can be
particularly troublesome).

Using the additional 'system' parameter doesn't solve these problems.

Use seconds or dateItems to store and calculate your dates and times if you
need to do calculations with them. Note, dateItems records the date and time
information as local.

michael

Dar Scott of [EMAIL PROTECTED] wrote the following on 4/21/02 10:00 PM

 On Sunday, April 21, 2002, at 08:18 PM, Michael D Mays wrote:
 
 That is what the documentation says. 0 seconds is 12 midnight, Jan
 1, 1970
 GMT.
 
 I get 6:00 PM
 
 (I was sure 0 used to get an error for me, too, I'm not sure what's
 up with that.)

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



Re: BUG in CONVERT command - or I can't tell the time

2002-04-21 Thread Michael D Mays

That is what the documentation says. 0 seconds is 12 midnight, Jan 1, 1970
GMT.

Or at least close to it. There are discrepancies with convert for zero(s)
seconds and -1 seconds.

  -2 secs - 23:59:59
  -1 secs - 12:00:00 mid GMT
  -0 secs - 12:00:00 mid GMT
zero secs - 0 (the result = invalid date)
   0 secs - 0 (the result = invalid date)
  +0 secs - 12:00:00 mid GMT
   1 secs - 12:00:01

 get 0 -- and so on
 convert it to long time
 put itthe result

michael

Ian Summerfield of [EMAIL PROTECTED] wrote the following on
4/21/02 4:25 PM

 Maybe this only goes wrong under OS X.  I'm using OS X 10.1.4.  Maybe this
 only goes wrong depending on your date and time setting,  I'm set to time
 zone United Kingdom and my system indicates BST.
 
 Revolution is ONE hour out with it's results using CONVERT,  I think they
 have based something on GMT.

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



Re: Ram Management

2002-04-13 Thread Michael D Mays

use the hasMemory function.

If you know your loop uses 1 bytes then at the beginning of the loop
insert
  if hasMemory(15000) is false exit repeat

michael

David Kwinter of [EMAIL PROTECTED] wrote the following on 4/13/02 3:40 PM

 A revolution-build server program I have crashes reliably anywhere
 between the 1500-1800th repeat in a script that needs to make 9000 laps
 to complete. I know that the crash comes right as my computer runs out
 of ram. Is there an easy way to monitor the free system ram and quit
 then relaunch the program? I could make the script resume easily enough,
 but what's the best way of measuring when the ram's about the dry up?

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



Re: Revolution Book

2002-04-08 Thread Michael D Mays

J. Landman Gay of [EMAIL PROTECTED] wrote the following on 4/8/02
2:33 PM

 Unix community until
 a few years ago -- and you know how they don't do docs. :)

No problemo. Just type man

michael

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



Re: MOD function does not work! So be warned!

2002-04-07 Thread Michael D Mays

Actually the answer to my question is that there is no such thing as an
integer in xTalk. Any string which could be a number which seems to act like
an integer is a binary real which has an exact decimal representation during
computation. You can't define a range for an integer if your language does
not have the concept of type.

What I was trying to say is that an integer to a lot of people is a whole
number in the range of +/- infinity. If they add zero to a large integer and
the result is another large integer they are upset. Just like those people
who summed ten tenths and didn't get one.

This isn't a large problem in the since that most xTalk programmers aren't
going to be writing programs where they will encounter these situations.

The large problem I see is if an xTalk were ones first language one would be
ignorant of computer numerics.

michael

Rob Cozens of [EMAIL PROTECTED] wrote the following on 4/6/02 10:32 AM

 One problem is what is an integer?
 
 
 I would define an integer as any non-decimal number within the range
 of numbers supported by the interpreter.

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



Re: MOD function does not work! So be warned!

2002-04-05 Thread Michael D Mays

Rob Cozens of [EMAIL PROTECTED] wrote the following on 4/4/02 9:59 AM

 Or is the real issue here the failure of HyperTalk, MC,  RR
 documentation writers to add a line indicating only non-decimal
 arguments are legal?  The HC documentation just says numbers,
 implying one could legally script something like 999.999 mod
 333.333.

xTalks are purported to be 'typeless'. But they aren't. The engine which
drives the engine is a binary machine. Is one one, 1 or 1.0? It depends
upon the context. What this means in effect is that the rules for typing in
xTalk are more complex than the rules for typing in a 'typed' language.

99.9 and maybe a few more 9s of the time this doesn't matter or the
automatic typing rules work the way we think they should.

xTalk scripters are a prior ill equipped to deal with numbers. When
HyperTalk became PPC native, the precision to which numbers were calculated
decreased by two or three orders of magnitude. And as you point out, where
in any xTalk documentation does anyone talk about numbers. Only the
HyperCard documentation talks about SANE and number precision. But even that
discussion leaves one sadly lacking. And when Apple released the PPC version
of HyperCard, the documentation was not updated for the new PPC numerics.

Caveat emptor.:(

michael

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



Re: MOD function does not work! So be warned!

2002-04-05 Thread Michael D Mays

One problem is what is an integer?

Is 123456789112345678 an integer? Yes. No. Maybe

put 123456789112345678+0 on a PPC Mac results in
 123456789112345680

If we were C programmers we would know that this is the 'correct' answer.
But we are merely lowly xTalkers and we wonder where the seven went. ;)

If I would have done this 12 years ago on any Mac my results would have been
 123456789112345678

I don't know what our brethren in the windows world get. But it could be
different. (I get the same answer with Virtual PC running 2000.)

http://groups.yahoo.com/group/xtalks/

michael

Rob Cozens of [EMAIL PROTECTED] wrote the following on 4/5/02 11:00 AM

 I think Xtalk should follow normal programming convent and have mod
 reject non-integer values.  I'm ready to initiate a discussion on the
 topic on the Xtalk List, if someone would please send me subscription
 instructions.

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



Re: Trailing Zero Suppression

2002-04-04 Thread Michael D Mays

Use the numberFormat property.
 set the numberFormat to .
will show 8 digits to the right of the decimal unless they are a trailing
zero.

Note that you have to perform a mathematical operation on the number before
displaying it.

 set the numberFormat to .###
 put 1.2300

would display 1.2300 in the message box.

 set the numberFormat to .###
 put 1.2300+0

would display 1.23

michael


Richard Harrison of [EMAIL PROTECTED] wrote the following on 4/3/02
11:07 PM

 Hi there,
 
 Does anyone have a good trailing zero suppression
 routine for eliminating trailing zeroes from decimal numbers?

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



Re: MOD function does not work! So be warned!

2002-04-04 Thread Michael D Mays

It's not 5 Rob its 4.999... .

It only looks like 5 because the default numberFormat rounds it to 5. If you
set the numberFormat to a high enough precision you will see that the number
which is else rounded to the default numberFormat and displayed in the
message box is not 5.

anyIntegerNumber MOD 5 is never 5.

certainRealNumbers MOD 5 can look like 5 when rounded.

The default numberFormat wraps the MOD function with a round function which
rounds 4.999... to 5.

michael

Rob Cozens of [EMAIL PROTECTED] wrote the following on 4/4/02 9:08 AM

 MOD is working. = is working.
 
 Michael,
 
 MOD is NOT working: anyNumber mod 5 CANNOT = 5.

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



Re: MOD function does not work! So be warned!

2002-04-03 Thread Michael D Mays

Rob Cozens of [EMAIL PROTECTED] wrote the following on 4/3/02 9:59 AM

 on testMod
  put 249 into var1
  put var1 into var2
  add 1.0 to var1
  repeat 10
   add 0.1 to var2
  end repeat
  put (var1=var2)((var1 mod 5)=(var2 mod 5))
 end testMod

On the Mac with PPC numerics as I understand it 249 and 1 are represented
exactly as is the sum of 249+1.
 249   - 01001
+  1   - 1
=250   - 01010 - var1

 249   - 01001
+  0.1 - 0.00011001100110011001100110011 ...
+  0.1 - 0.00011001100110011001100110011 ...
+  0.1 - 0.00011001100110011001100110011 ...
+  0.1 - 0.00011001100110011001100110011 ...
+  0.1 - 0.00011001100110011001100110011 ...
+  0.1 - 0.00011001100110011001100110011 ...
+  0.1 - 0.00011001100110011001100110011 ...
+  0.1 - 0.00011001100110011001100110011 ...
+  0.1 - 0.00011001100110011001100110011 ...
+  0.1 - 0.00011001100110011001100110011 ...
=249.9*- 01001.0 ... - var2
*249.99...
var1var2

add this line to the beginning of the above script
 set the numberFormat to 0.
and append this to the penultimate line.
 var1var2 
Now the result is
 true false 250 249.94315658113919199

MOD returns the remainder left when one number divides into another. So we
are asking for
01001.00011001100110011001100110011 ... / 0101 - a remainder
vs
01010 / 0101 - no remainder

= on some systems wants an exact match. Not so using PPC numerics. They only
need to round to within 15 decimal digits or so (There two decimal orders of
rounding for Dar:). Which the above two numbers do. If you would have ran
the loop to 1000 and adjusted your parameters for 100 instead of 1 you would
have found
 false false

MOD is working. = is working. MOD is strictly a binary comparison. = does
rounding trying to conform to our decimal perception of the universe.:)

michael

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



Re: MOD function does not work! So be warned!

2002-03-31 Thread Michael D Mays

Richard Gaskin of [EMAIL PROTECTED] wrote the following on 3/31/02
10:00 AM

 Interestingly, when you type  put 5 mod 5 (or 255 md 5 or other number
 divisible by five that fails when inside a loop) into the Message Box the
 result is 0.
 
 Stranger still, if you rewrite the line like this so that the loop var is
 evaluated outside of the rest of the statement:
 
 do put loop tab loop mod 5  return after msg
 
 ...you get 0.

The reason it works in the msg box is because you are using a different
number. Inside the loop the number is
254.99988631316227838397 not the 255 you typed.

If you set the numberFormat large enough you will see that loop is never
255. And also your do statement in the loop will fail.

The situation is that when you convert .1 to binary and add it to 255 it is
actually adding a binary number whose value is a little less than the value
of decimal .10. .1 has no exact binary representation. if the increment were
some inverse power of two everything would 'work' the way we expect it to.

When you were using the do statement you are forcing loop to be converted to
a string at the precision of the default numberFormat (since you didn't set
it to anything else). This string is 255. When you increase the precision of
the numberFormat to max precision the string is
254.99988631316227838397.

michael

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



Re: MOD function does not work! So be warned!

2002-03-31 Thread Michael D Mays

Dar Scott of [EMAIL PROTECTED] wrote the following on 3/31/02 11:49 AM

 It is not the loop, it is addition.  Every Revolution number (a
 priori) has a potential error.  This accumulates.  (I say a
 priori because some numbers, can be represented exactly.)

It is not a bug. This is just the way MOD and decimal numbers which are
represented as binary numbers work.

It is not just a Revolution problem.

The error does not accumulate. Try summing a million .10. There is no
accumulation.

Run this handler.

on mouseUp
  set the numberFormat to \
  0.###
  put .10,.100012,.100013 into inc
  repeat with j=1 to 3
put item j of inc into incc
put 0 into a
repeat with i=1 to 10
  add incc to a
  put a into a
  put 0.i into ii
  put ii   a into line i+(j-1)*10 of fld 1
end repeat
  end repeat
end mouseUp

michael

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



Re: MOD function does not work! So be warned!

2002-03-29 Thread Michael D Mays

[I sent this message the first time from the wrong account. If it comes
through twice, sorry--mdm]

The MOD function works. The ROUND function might not.

Decimal 0.1 when converted to binary is actually slightly greater than
decimal 0.1. Set the numberFormat to something very precise and you will see
that .1 is really
 0.1555111512312578

When you keep adding increment eventually you reach a point where the sum of
all those 5.5e-19ths (if I counted right) become significant to the MOD
function. 

I think David Vaughan has said all this already but it is a very important
point. 

But the round is NOT the way to go
on mouseUp
  put 1 +.1 into aa
  put aa into line 1 of fld 1
  set the numberFormat to \
  0.##
  put aa into line 2 of fld 1
  put round(aa,1) into line 3 of fld 1
end mouseUp

fld 1 is
1.1
1.1000888178419700125
1.0998667732370449812

I don't see it in MetaCard 2.2.3 (line 2 and 3 are the same in 2.2.3) but
the results are the same as above in MC2.4.1. I think this might be a BUG.

If you want to be testing as is in this example increments of tenths, I
something like set the numberFormat to 0.# and add the line
 put loop into loop
to your repeat clause.

michael
 

Ian Summerfield of [EMAIL PROTECTED] wrote the following on
3/28/02 9:53 PM

 The code I give here might look inefficient, the code comes from a large
 project, so there are reasons for doing it this way!
 
 It's just taken me several hours to figure out why my code wasn't working,
 and it turns out to be a bug in Revolution.
 
 Revolution 1.1.1b2 (OS X 10.1.3) seems to think 5 mod 5 = 5 whereas it is
 zero.
 
 
 Try this code:
 
 on mouseup
  put 235 into startPoint
  put 255 into endPoint
  put 0.1 into increment
  put empty into msg
  put startPoint into loop
  repeat while loop=endPoint
   put loop  loop mod 5  return after msg
   add increment to loop
  end repeat
 end mouseup
 
 It will output to the message box a list of numbers.  The loop counter is on
 each line followed by a space and the loop mod 5.
 
 Here's my output:
 
 235 0    correct
 235.1 0.1
 235.2 0.2
 235.3 0.3
 SNIP
 240 5    wrong and impossible
 240.1 0.1

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



revShowPrintDialog: Cancel print and other things

2002-03-11 Thread Michael D Mays

Hi,

How do I cancel a print job when using revPrintText or revPrintFIeld?

I use
 revShowPrintDialog true,true
and I can cancel the printing if I select Cancel during page setup but if
I click Cancel during dialog the job still prints.

Also, how persistent and what is the scope of the showPageSetup and
showPrint parameters of revShowPrintDialog? When I comment out the rSPD
command, the last sPS and sP parameters used are still in effect.

Thanks,
michael

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



revShowPrintDialog: Cancel print and other things

2002-03-10 Thread Michael D Mays

Hi,

How do I cancel a print job when using revPrintText or revPrintFIeld?

I use
 revShowPrintDialog true,true
and I can cancel the printing if I select Cancel during page setup but if
I click Cancel during dialog the job still prints.

Also, how persistent and what is the scope of the showPageSetup and
showPrint parameters of revShowPrintDialog? When I comment out the rSPD
command, the last sPS and sP parameters used are still in effect.

Thanks,
michael

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