Re: More about hex and printing and gdi printers...

2009-12-28 Thread Peter Alcibiades

Just for the sake of completeness, something probably most people here know,
but in case some other luckless amateur ends up struggling with this again,
there is at least one other way of doing this.

The first way was to edit a text file using a hex editor, then use a shell
command that uses the Unix cat command to redirect the contents of the file
to the printer, in our case lp0.

A simpler method that clutters up the program directory a bit less, and
maybe is less open to user errors, because you don't have to have mysterious
text files lying around, is to use echo as in


   echo -e \x1B\x64\x30  /dev/usb/lp0

Presumably this works with OSX as well.  What is happening is that the -e
enables interpretation of the escaped character which follows, and the
escaped character x signals that the following pair is a hex character. 
Anyway, do this with my particular printer, and the result is magic:  the
paper cutter operates!

This is so simple, assuming you have the hex codes to do things, that one
starts having fantasies of writing very simple printer drivers in Bash.  No, 
that way madness lies!

Peter
-- 
View this message in context: 
http://n4.nabble.com/More-about-hex-and-printing-and-gdi-printers-tp963411p989668.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: More about hex and printing and gdi printers...

2009-12-28 Thread Peter Alcibiades

And by the way, one last thing.  When you do this, permissions will stop
ordinary users from addressing lp0.   Which obviously you will tell by
trying out the command from the terminal and discovering that it works with
su but not as ordinary user.   And putting the user into the lp group with
usermod does not fix this, I don't know why.  You could probably use suid,
but the simplest way may be to install sudo (which Ubuntu will already have)
and then edit the sudoers file to permit the user to use lp.  Otherwise
everything will be set up right, but it won't work.
-- 
View this message in context: 
http://n4.nabble.com/More-about-hex-and-printing-and-gdi-printers-tp963411p989671.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: Emulate an HTTP post in Rev

2009-12-28 Thread Jim Ault


On Dec 27, 2009, at 8:52 PM, Jim Bufalini wrote:


Hello,

Can someone tell me how to emulate an HTTP post in Rev for a Revlet or
Standalone? So... someone gives you an HTML code snippet to insert  
in a webpage.


The key word is the   POST   command in the dictionary.

Be sure to handle the issue of urlEncode-ing in your strings to avoid  
parsing errors in the destination script operations, especially if  
path names are sent.


Examples:
put urlEncode( John ) into  tName
put urlEncode( Hello ) into  tMessage
--now do key-value pairs
get libUrlFormData(name, tName,message, tMessage)
post  IT  to url http://www.someserver.com/cgi-bin/form.php;

--In this case, the data posted to the url will look like this:  
name=Johnmessage=Hello



The function accepts variable numbers of parameters and treats them as  
key-value pairs. The first parameter is the name of the first form  
part, the second the value of the first part, the third is the name of  
the second part, and so on.


Note: When using 'post' ... the Content-Type header is set to Content- 
Type: application/x-www-form-urlencoded by default. There is no need  
to set the httpHeaders unless you have previously set the Content-Type  
header to something else.


In order to fully emulate a post command coming from a web page, you  
may need to set the headers to match by using

 libURLSetCustomHTTPHeaders


Jim Ault
Las Vegas


On Dec 27, 2009, at 8:52 PM, Jim Bufalini wrote:


Hello,

Can someone tell me how to emulate an HTTP post in Rev for a Revlet or
Standalone? So... someone gives you an HTML code snippet to insert  
in a

webpage. It looks like:

form action=[URL] method=post
input type=hidden name=[abc] value=[123]
input type=hidden name=[def] value=[456]
...
/form

I want to use *post* from Rev to emulate their button code. How do I
structure the data string of a Rev Post command to emulate the  
above? And,
do I need to change the httpHeaders Property to emulate it coming  
from a

webpage?


___
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: Emulate an HTTP post in Rev

2009-12-28 Thread Jim Bufalini
Thanks Sarah and Jim. Both of your solutions work. :-)

Aloha from Hawaii,

Jim Bufalini

___
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


Searching for BitmapEffectsSampler.rev

2009-12-28 Thread Michael Kann
I updated my IDE today and read the following in the changelog:

For details of how to use the features as they currently stand, 
please see the BitmapEffectsSampler.rev stack that has been made available 
alongside the build.

The stack must be in an obvious place, but I can't seem to locate it. Can 
anyone point me to it? Thanks




  
___
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: Context menu for Header of DataGrid

2009-12-28 Thread Trevor DeVore

On Dec 27, 2009, at 10:50 PM, Mark Stuart wrote:

I was wondering if there is a way to have 2 context menus for the  
DataGrid,

1 for the rows and one for the header?
Where I'd like to have a different menu set for the header  
(pertinent to the
DataGrid itself) and the rows context menu would be specific to the  
record

itself.
The header menu would be for DataGrid properties and the complete  
data set

in the grid, like exporting to HTML or Excel.


I just added two new lessons to the manual that show how to do  
determine if the user clicks in the header and how to display a  
contextual menu for a column header. You would just build off of the  
example and show a different contextual menu based on what the user  
clicked on.


How Do I Determine If a User Clicks In The Table Header?: http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/8410-How-Do-I-Determine-If-a-User-Clicks-In-The-Table-Header- 



How Do I Display a Contextual Menu When the User Clicks on a Column  
Header?: http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/8411-How-Do-I-Display-a-Contextual-Menu-When-the-User-Clicks-on-a-Column-Header- 



Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: Searching for BitmapEffectsSampler.rev

2009-12-28 Thread J. Landman Gay

Michael Kann wrote:

I updated my IDE today and read the following in the changelog:

For details of how to use the features as they currently stand, 
please see the BitmapEffectsSampler.rev stack that has been made

available alongside the build.

The stack must be in an obvious place, but I can't seem to locate it.
Can anyone point me to it? Thanks


Urf. Looks like they forgot to put it in there. I don't see it either. 
I'm making a list of the things you're finding. :)


If you go to RevOnline and search for Ben Beaumont, you'll see a list of 
all the (amazing) stacks he's done to demo the various capabilities of 
Rev's bitmap effects. The advanced multimedia one shows all the new 
effects added in Rev 4.


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


MacTech magazine

2009-12-28 Thread Mark Wieder
All-

For the next few days (through the end of the year) MacTech magazine
is offering a special deal (as in free) for new subscribers if you pay
the postage costs. This as part of their 25th anniversary celebration.

https://www.mactech.com/phpq/fillsurvey.php?sid=128

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
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


Help with audio

2009-12-28 Thread Emmett Gray
I've converted another HC stack, a multi-timer which includes a 
metronome function. I'm having an issue with the audio: the 
Click.wev imported audioClip sounds awful and very often sounds 
different or has no sound at all. The original is a 48k 24-bit file 
and sounds fine in Rev if I access it instead of the imported one. I 
imported it using the import command. Do I need to downsample or 
change the bit rate or do something else before importing to make it 
sound OK in Rev?

___
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


[ANN] The tRev Adoption Program

2009-12-28 Thread Jerry Daniels

tRev users,

If you already had tRev when you bought the RevSelect MegaBundle, you  
now have two licenses to tRev. What to do? You can put your extra  
license up for adoption. Someone who really wants it can then adopt it  
for $10.


Those with extra licenses can read all about the adoption program here:

http://twhez.com/ks59

Those who might otherwise not be able to afford the $50 retail price  
of tRev, but want sincerely to use it, read about adopting here:


   http://twhez.com/pJod

Best,

Jerry Daniels

The latest Rev Editor Video:
http://reveditor.com/feature-friday-drag-a-handler-to-any-tab








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


Re: Help with audio

2009-12-28 Thread stephen barncard
Probably the 24 bit thing.

Try using the player and quicktime and the file as an external source (set
the filename of player 1 to ) as opposed to being imbedded. Quicktime
should properly handle 24 bit audio, but not sure about the native play
component.

If you need to imbed the sounds, then convert and dither the 24 bit files
down to 16 bits with the same sample rate.   Peak, Sound Studio, Audacity,
quicktime should do this. Monkey Tools can do this in batches.

If indeed the internal play command is 16 bit only we should know that.
Thanks for reporting this.
-
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2009/12/28 Emmett Gray fi...@handheldfilm.com

 I've converted another HC stack, a multi-timer which includes a metronome
 function. I'm having an issue with the audio: the Click.wev imported
 audioClip sounds awful and very often sounds different or has no sound at
 all. The original is a 48k 24-bit file and sounds fine in Rev if I access it
 instead of the imported one. I imported it using the import command. Do I
 need to downsample or change the bit rate or do something else before
 importing to make it sound OK in Rev?
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Help with audio

2009-12-28 Thread J. Landman Gay

Emmett Gray wrote:
I've converted another HC stack, a multi-timer which includes a 
metronome function. I'm having an issue with the audio: the Click.wev 
imported audioClip sounds awful and very often sounds different or has 
no sound at all. The original is a 48k 24-bit file and sounds fine in 
Rev if I access it instead of the imported one. I imported it using the 
import command. Do I need to downsample or change the bit rate or do 
something else before importing to make it sound OK in Rev?


Rev can't use any compressed audio format, so in addition to what 
Stephen said, make sure when you convert the sound file that it isn't 
compressed.


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


Re: Help with audio

2009-12-28 Thread stephen barncard
ALTHOUGH - when you use the 'set the filename to' and quicktime, you can
play any file that quicktime handles, especially MP3 compression --- AND
EVEN A LIVE MP3 STREAM

there's a big gap between the two technologies here...

regardless of the politics (and perceived reluctance) surrounding Quicktime,
it's still the first and best technology for this purpose. They've been
doing this for a long time.

The new Quicktime is leaner and meaner, and should be an improvement.
-
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2009/12/28 J. Landman Gay jac...@hyperactivesw.com

 Emmett Gray wrote:

 I've converted another HC stack, a multi-timer which includes a metronome
 function. I'm having an issue with the audio: the Click.wev imported
 audioClip sounds awful and very often sounds different or has no sound at
 all. The original is a 48k 24-bit file and sounds fine in Rev if I access it
 instead of the imported one. I imported it using the import command. Do I
 need to downsample or change the bit rate or do something else before
 importing to make it sound OK in Rev?


 Rev can't use any compressed audio format, so in addition to what Stephen
 said, make sure when you convert the sound file that it isn't compressed.

 --
 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: Help with audio

2009-12-28 Thread J. Landman Gay

stephen barncard wrote:

ALTHOUGH - when you use the 'set the filename to' and quicktime, you can
play any file that quicktime handles, especially MP3 compression --- AND
EVEN A LIVE MP3 STREAM


Very true. I only mentioned the compression issue because the OP said he 
was importing a sound clip. I figured since it's just a click sound, 
using a player with an external file seemed like overkill.


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


Re: Help with audio

2009-12-28 Thread Jerry Daniels

Jacque,

OP? Are Aunt Bee and Andy involved?

Jerry

On Dec 28, 2009, at 3:11 PM, J. Landman Gay wrote:


because the OP said he was importing a sound clip


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


Re: Help with audio

2009-12-28 Thread stephen barncard
no but the old sound stuff is very Gomer Plye and Barney
Fifehttp://www.youtube.com/watch?v=oBuPQgV8yBM
.
-
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2009/12/28 Jerry Daniels jerry.dani...@me.com

 Jacque,

 OP? Are Aunt Bee and Andy involved?

 Jerry


 On Dec 28, 2009, at 3:11 PM, J. Landman Gay wrote:

  because the OP said he was importing a sound clip


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

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


Re: Help with audio

2009-12-28 Thread J. Landman Gay

Jerry Daniels wrote:

Jacque,

OP? Are Aunt Bee and Andy involved?


You just don't read enough lists, Jerry. Clearly (any post that contains 
the word clearly is always true, you know...it's like, a rule) you 
haven't been around enough. OP = original poster. Like the old 
Grateful Dead ones hanging down in the basement. The paper ones. Not the 
guys in the shackles.


No smiley because you've banned the good ones. :)

Oops, sorry. :/ Oops. I mean :P

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


Re: Help with audio

2009-12-28 Thread Jerry Daniels

Jacque,

You went for the bait. Hehe. Been around awhile, I have (Yoda voice).

Incidentally, I don't ban winks, only limit them on chats to 1 every  
15 minutes. This is out of compassion. Your face could stay that way.  
Aunt Bee said so many times to OP. I think that was spelled Opee but  
I don't want to start a coagulated milk product discussion here. That  
does result in banning or suspension at least.


Best,

Jerry Daniels

The latest Rev Editor Video:
http://reveditor.com/feature-friday-drag-a-handler-to-any-tab

On Dec 28, 2009, at 3:39 PM, J. Landman Gay wrote:


Jerry Daniels wrote:

Jacque,
OP? Are Aunt Bee and Andy involved?


You just don't read enough lists, Jerry. Clearly (any post that  
contains the word clearly is always true, you know...it's like, a  
rule) you haven't been around enough. OP = original poster. Like  
the old Grateful Dead ones hanging down in the basement. The paper  
ones. Not the guys in the shackles.


No smiley because you've banned the good ones. :)

Oops, sorry. :/ Oops. I mean :P

--
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: Help with audio

2009-12-28 Thread stephen barncard
Nope

O P I E

http://en.wikipedia.org/wiki/Opie_Taylor

-
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2009/12/28 Jerry Daniels jerry.dani...@me.com

 Jacque,

 You went for the bait. Hehe. Been around awhile, I have (Yoda voice).

 Incidentally, I don't ban winks, only limit them on chats to 1 every 15
 minutes. This is out of compassion. Your face could stay that way. Aunt Bee
 said so many times to OP. I think that was spelled Opee but I don't want
 to start a coagulated milk product discussion here. That does result in
 banning or suspension at least.

 Best,

 Jerry Daniels

 The latest Rev Editor Video:
 http://reveditor.com/feature-friday-drag-a-handler-to-any-tab


 On Dec 28, 2009, at 3:39 PM, J. Landman Gay wrote:

  Jerry Daniels wrote:

 Jacque,
 OP? Are Aunt Bee and Andy involved?


 You just don't read enough lists, Jerry. Clearly (any post that contains
 the word clearly is always true, you know...it's like, a rule) you haven't
 been around enough. OP = original poster. Like the old Grateful Dead ones
 hanging down in the basement. The paper ones. Not the guys in the shackles.

 No smiley because you've banned the good ones. :)

 Oops, sorry. :/ Oops. I mean :P

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

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


Re: Help with audio

2009-12-28 Thread Jerry Daniels

Stephen,

I fear that's too sophisticated for my Texas palette. A word like  
Opie is used here-abouts to show surprise at getting pie for dessert  
instead of pralines or flan.


Best,

Jerry Daniels

The latest Rev Editor Video:
http://reveditor.com/feature-friday-drag-a-handler-to-any-tab


On Dec 28, 2009, at 5:12 PM, stephen barncard wrote:


Nope

O P I E

http://en.wikipedia.org/wiki/Opie_Taylor

-
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2009/12/28 Jerry Daniels jerry.dani...@me.com


Jacque,

You went for the bait. Hehe. Been around awhile, I have (Yoda voice).

Incidentally, I don't ban winks, only limit them on chats to 1  
every 15
minutes. This is out of compassion. Your face could stay that way.  
Aunt Bee
said so many times to OP. I think that was spelled Opee but I  
don't want
to start a coagulated milk product discussion here. That does  
result in

banning or suspension at least.

Best,

Jerry Daniels

The latest Rev Editor Video:
http://reveditor.com/feature-friday-drag-a-handler-to-any-tab


On Dec 28, 2009, at 3:39 PM, J. Landman Gay wrote:

Jerry Daniels wrote:



Jacque,
OP? Are Aunt Bee and Andy involved?



You just don't read enough lists, Jerry. Clearly (any post that  
contains
the word clearly is always true, you know...it's like, a rule)  
you haven't
been around enough. OP = original poster. Like the old Grateful  
Dead ones
hanging down in the basement. The paper ones. Not the guys in the  
shackles.


No smiley because you've banned the good ones. :)

Oops, sorry. :/ Oops. I mean :P

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


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

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


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


Re: Help with audio

2009-12-28 Thread J. Landman Gay

Jerry Daniels wrote:

Stephen,

I fear that's too sophisticated for my Texas palette. A word like Opie 
is used here-abouts to show surprise at getting pie for dessert instead 
of pralines or flan.


But...but...opee looks like...oh, never mind.

And BTW, Aunt Bee was right. My face did stick that way.

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


Re: Help with audio

2009-12-28 Thread Mark Wieder
Jacque-

Monday, December 28, 2009, 1:39:56 PM, you wrote:

 Grateful Dead ones hanging down in the basement. The paper ones. Not the
 guys in the shackles.

Cold iron shackles, ball and chain
Listen to the whistle of the evenin' train

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
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: 4.0 not displaying text field changes

2009-12-28 Thread Kee Nethery
Thank you Mark! 
That was the secret to making the field changes appear.
Kee

On Dec 27, 2009, at 9:27 AM, Mark Schonewille wrote:

 wait 0 millisec with messages




-
I check email roughly 2 to 3 times per business day. 
Kagi main office: +1 (510) 550-1336


___
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


local variables

2009-12-28 Thread Kee Nethery
OK this is weird, also in 4.0. A local variable appears to be treated as a 
global variable.

local x, y, myvariable

on mouseup
  put empty into myvariable
  repeat with x = 1 to 1000
repeat with y = 1 to 1000
  put x  somefunction(y)  return after myvariable
end repeat
  end repeat
end mouseup

on somefunction y
  repeat with x = y down to 1
add 1 to y
  end repeat
  return y  x
end somefunction

In code that looks a lot like this, x in the mouseup gets reset to 1 after 
somefunction(y) is called. If x was a global, OK I'd expect that, but I have to 
declare x a local to use it and it is being treated as a global. Also, x 
appears twice in the variable section of the debug window. What should I be 
doing to get the behavior I used to get in 2.9?

Thanks, Kee


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

2009-12-28 Thread stephen barncard
You are using it as a script variable. It's a local variable that is
available from any handler in the script. If you want true local, then put
the declaration inside the desired handler

sqb
-
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2009/12/28 Kee Nethery k...@kagi.com

 OK this is weird, also in 4.0. A local variable appears to be treated as a
 global variable.

 local x, y, myvariable

 on mouseup
  put empty into myvariable
  repeat with x = 1 to 1000
repeat with y = 1 to 1000
  put x  somefunction(y)  return after myvariable
end repeat
  end repeat
 end mouseup

 on somefunction y
  repeat with x = y down to 1
add 1 to y
  end repeat
  return y  x
 end somefunction

 In code that looks a lot like this, x in the mouseup gets reset to 1 after
 somefunction(y) is called. If x was a global, OK I'd expect that, but I have
 to declare x a local to use it and it is being treated as a global. Also, x
 appears twice in the variable section of the debug window. What should I be
 doing to get the behavior I used to get in 2.9?

 Thanks, Kee


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

2009-12-28 Thread Kee Nethery
OK so there are locals that are local to a specific script, and locals to a 
specific handler. That's interesting. Thank you!
Kee Nethery

On Dec 28, 2009, at 5:50 PM, stephen barncard wrote:

 You are using it as a script variable. It's a local variable that is
 available from any handler in the script. If you want true local, then put
 the declaration inside the desired handler
 
 sqb
 -
 Stephen Barncard
 San Francisco
 http://houseofcubes.com/disco.irev
 
 
 2009/12/28 Kee Nethery k...@kagi.com
 
 OK this is weird, also in 4.0. A local variable appears to be treated as a
 global variable.
 
 local x, y, myvariable
 
 on mouseup
 put empty into myvariable
 repeat with x = 1 to 1000
   repeat with y = 1 to 1000
 put x  somefunction(y)  return after myvariable
   end repeat
 end repeat
 end mouseup
 
 on somefunction y
 repeat with x = y down to 1
   add 1 to y
 end repeat
 return y  x
 end somefunction
 
 In code that looks a lot like this, x in the mouseup gets reset to 1 after
 somefunction(y) is called. If x was a global, OK I'd expect that, but I have
 to declare x a local to use it and it is being treated as a global. Also, x
 appears twice in the variable section of the debug window. What should I be
 doing to get the behavior I used to get in 2.9?
 
 Thanks, Kee
 
 
 ___
 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




-
I check email roughly 2 to 3 times per business day. 
Kagi main office: +1 (510) 550-1336


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

2009-12-28 Thread Mark Wieder
Kee-

Monday, December 28, 2009, 5:50:19 PM, you wrote:

 You are using it as a script variable. It's a local variable that is
 available from any handler in the script. If you want true local, then put
 the declaration inside the desired handler

Additionally, you're using y as both a script variable and a
parameter passed to somefunction().

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
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


What cell in the data grid was clicked?

2009-12-28 Thread James Hurley

The user clicks on a data grid cell.

What variables determine the row and column numbers of the cell?

And the text of the cell?

Thanks,

Jim Hurley
___
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