Re: Making the move...

2006-03-22 Thread Geoff Canyon
First, this isn't all that long -- 98 lines -- but in any case I'd  
consider:


 -- breaking out routines for local vs. server connection
 -- breaking out a routine for when we're just counting records that  
match vs. returning data
 -- breaking out a routine that, given a itemList describing a set  
of fields, returns the data from those fields


Some of the rest I'm still not clear on, so it's hard to say.

As I said, more art than science, but to me a routine like this is  
more than five times as difficult to understand/debug/manage than the  
five twenty line routines that might replace it.


Not that I haven't written my fair share of these ;-)

regards,

Geoff

On Mar 21, 2006, at 11:59 AM, Rob Cozens wrote:


Hi Geoff ,


Wow -- so what does this do?



From Serendipity Reference:



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


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


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


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


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


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


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


setPosition (boolean)  defaults to true.

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


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


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


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

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

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

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

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


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


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


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




Rob Cozens
CCW, Serendipity Software Company

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

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

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, 

Re: Progress Made?

2006-03-22 Thread Graham Samuel
I'm sorry for Arthur Urban and his experience of perpetual crashing  
on WinXP, and I'm glad to see Jacqueline's statement that the  
problem has been acknowledged and is being fixed. I just want to  
confirm that this doesn't affect everyone: at present I am switching  
an app I'm developing between OSX and and WinXP machine many times  
each day, with both machines running RR2.7.0, and for me both are  
entirely stable. Incidentally I also find that I don't have to zip  
my .rev files to swap them between machines (I use an external server  
for both archiving and swapping), which I believe is contrary to some  
other people's experience.


For me it would be interesting to find out what are the exact  
circumstances causing these crashes, just in case I suddenly create  
them by accident. But it certainly ain't a universal problem.


Graham




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

___
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: Getting started with libraries

2006-03-22 Thread Graham Samuel

On Sun, 19 Mar 2006 08:52:22 -0800, Rob Cozens [EMAIL PROTECTED] wrote:

[some good advice on the above subject, including]


I hate to confirm what you don't want to hear; but, yes, it ends up
being a messy job for the reasons you identified: creating a
generalized handler from two or more similar handlers in different
stacks often means changing the scripts in both.  To the extent that
your common handlers are generic, you might adopt your controls to use
handlers in existing rev libraries rather than generalizing your
handlers as well as the scripts of controls that call them.  
Serendipity

Library http://wecode.org/serendipity/ includes handlers for data
validation  formatting, date  time handlers, and list handlers in
addition to SDB database handlers.

The good news: when you are finished, the efficiency you will gain is
worth much more than the effort involved.


Well, I suppose that had to be the answer - but I just wanted to  
thank you, Rob, for troubling to reply and give me a bit of  
encouragement. As soon as my current app is out of the door I will  
make a determined effort to library-ize my core routines, which are  
mostly to do with the house style decided on by my publisher, so that  
apps from different sources give a similar user experience - this  
means that it all has to be pretty well homegrown..


Thanks

Graham



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

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


Re: revXMLfindNodecontent

2006-03-22 Thread Klaus Major

Bonjour Joel.


Hi Ken,


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

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

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

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

Are you dreaming Klaus?


Yes :-)


Or do you have preferential treatment from Runrev?


Yes, my mother-in-law does know the cousin of the women that is  
celanings

the household of one of Mr. Millers neighbours quite well (kind of) :-D

If yes, kindly suggest the manager to (censured, I am wasting my  
time). Actually I filled an enhancement request (#1893) on  
2004-07-26 for a revInsertXMLNode treeID,siblingPath,nodeContents  
and sent a recall on 2005-12-12 but the status is still UNCONFIRMED!


Welcome to the club!


So, be patient!


I AM patient since RunRev aquired the MetaCard engine ;-)

I know that I practice medicine but usually not that side! Or build  
your own externals for xml, xpath, etc.

;o(


I wish I could!


jg


Regards

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

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


Re: DRM for Images and Text in Stacks

2006-03-22 Thread Sivakatirswami


On Mar 21, 2006, at 10:13 AM, Richard Gaskin wrote:

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


Exactly the problem...

Scott wrote:

  but I would guess the likelihood of your users owning a copy of  
Rev is lower than folks' ability to snoop around file

contents.


true now and confirmed, both custom props and fields are encrypted  
contains on disk but our assumption that the possibilities of such  
extraction are low is based on the less than enthusiastic ontology  
that the number of rev developers in the world of manifest being is  
small i.e. the statistical chances of theft are low relative to the  
number of  users using the product (or who might try to hack it in  
BBedit or  whatever...) without the IDE...


but:  remember the Dream World I proposed initially on this thread  
posits a different ontology: Rev becomes very popular and the number  
of IDEs in the universe approaches infinity, (excuse the word fun)  
suddenly the chances for theft jump




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


I just put that feature request in...I didn't know SC had this (I  
haven't used SC in years)  I'm sorry to say I did not exercise due  
diligence  to determine if said enhancement  was already there...  
anyway, enhancement 3404 is now there and was assigned to the engine  
team. I'm not competent to recommend a password property name. But to  
get the ball rolling -- at the risk of using metaphorical terms (but  
why not? we use anchor in html, wizard for a small tool and  
firewall in net admin, and Tiger for and OS)


Would terms related to lock work?: (opening my thesaurus)

adjectives for the state of such a stack: (where the property is true  
or  false)


Where the propery being true means you cannot  open the stack:

bolted # like the door to a  house
lockout # those inside preventing entry to those outside
sealed
cryptic
taboo
kapu (taboo in Hawaiian)

Prosaic:
secure # as in an SSL transaction: completely opaque and unextractable
closed # as in a meeting in a room with the door shut
restricted
blocked

Nouns for a stack in such a state:

crypt
vault
strongbox

Where the property being true is the default and if set to false,  
means you cannot open the stack


penetrable
reveal
accessible



Sivakatirswami











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


Re: Making the move...

2006-03-22 Thread Alex Tweedly

Sarah Reichelt wrote:



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

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

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

I'd probably use parameters by reference for each of the result values. 
To me, that's one of the good ways to use pass by ref.


But if you didn't want to do that, and also didn't want to use an array, 
you could perhaps return a list of the result values. If you can find 
one more character that you can be sure won't appear in the results, 
simply use it to concatenate the results.


For example:


function getThreeThings pFrom
   .
 return tOne  numtochar(3) tTwo  numtochar(3)  tThree
end getThreeThings



and when you call it


put getThreeThings(tData) into temp
set the itemDel to numtochar(3)
put item 1 of temp into t1
put item 2 of temp into t2
etc.



btw - when are Rev going to implement the etc. keyword ?


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



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

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


Re: revXMLfindNodecontent

2006-03-22 Thread Klaus Major

Hi Sarah and all,


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

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


Hardly doable if your job is to only read and compute external (other  
peoples) XML files ;-)

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


I just added an enhacement request to godzilla: 3414

Throw some votes on it if you like :-)


Cheers,
Sarah


Regards

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

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


Acessing button scripts in a HC stack ? - Closing Thread

2006-03-22 Thread Francis Nugent Dixon

Hi from Paris,

Thanks for all your responses (especially Sarah 
Jacqueline).

I was stupid enough to think that in Rev, the reference
bg was invalid, so I didn't even try it.

I now have several ways to get what I want.

On the comments about WHY I want to convert my
HC stacks :

1 - My HC stacks look so DRAB, compared to Rev,
2 - My HC field contents are badly displayed in Rev,
3 - My HC stacks lean heavily on XFCN's and XCMD's,
 and so they don't run successfully,
4 - I want to leave the HC world (with regrets), before
 Apple pulls the plug on OS9, and all the applications
 that go with it,
5 - I want to run some of my stacks on the PC, to be able to
 distribute them to my family (Family Tree), or my music
 collegues (Song Catalogue). There are still a few people
 in this world who insist on using PC's ..
6 - I have unlimited time and patience on my 3 computers, and
 even after 40 years of programming, I love using Rev.

and finally :

I belong to that strange group of people who would rather
spend 10 days programming a solution to convert my HC
scripts, than spending 30 minutes doing it manually !

I will now return to the complex task of parsing HC scripts to
convert them to Rev format, PURELY for the joy of succeeding !

When I don't program for   48 hours, I get withdrawal symptoms !

-Francis

Learning is living
Progress is simply a succession of monumental -ups !

.. but nevertheless 

Nothing should ever be done for the first time !


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


Re: Get a handler from a script

2006-03-22 Thread David Burgun

Hi,

Nice Script!

There is just one thing I don't understand?

What are the:

get  /*  i

Statements for?

Thanks a lot
All the Best
Dave


On 21 Mar 2006, at 14:45, Wouter wrote:


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


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



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


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

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

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

Greetings,
Wouter

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

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

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

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

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

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

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

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


___
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


When closed, does a substack whose destroyStack is true remains in memory ?

2006-03-22 Thread André . Bisseret

Hi !

As far as a substack is concerned,
from the Doc (on save, close, destroyStack…)
I understand that :
even if its destroyStack property is set to true,
If I save and close this substack while the main stack remains opened,
then this substack remains in memory.

If this is true, then I understand that it is not judicious to set « 
formatForPrinting » to true for this substack.


So, for a specific « printing stack » I have to use a second main 
stack, instead of a substack.


Am I right ?
Thanks a lot in advance for validating (or invalidating) these claims.

P.S. : by the way, is it a means to check if a closed stack (or 
substack) is still in memory ?


Best regards from Grenoble
André




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


Re: Get a handler from a script

2006-03-22 Thread Wouter

Hi David,


On 22 Mar 2006, at 12:53, David Burgun wrote:


Hi,

Nice Script!

There is just one thing I don't understand?

What are the:

get  /*  i

Statements for?



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

This is to force the tokenizing.
The script is parsed line by line.
The first line of the block comment will be eliminated by token 1 to  
- 1 of  i
But the first token of  the  second line of the block comment will be  
the first word -- as
By adding a /* in front of that line the first token will be  
function




Thanks a lot
All the Best
Dave



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


How can I pass a handler a long ID as a string?

2006-03-22 Thread Graham Samuel
I've never come across this before, and it's got me confused. I have  
a handler, say myHandler that has a couple of parameters which are  
intended to be the long ids of objects (actually fields). The handler  
manipulates the fields, something like


  on myHandler para1

do put empty intopara1

...

  end myHandler

I find that this works if the parameters are set in the same context  
as the handler itself - for example in a 'mouseUp' handler on the  
card where I've put the code of myHandler, but if I call it from  
elsewhere with a call like


   myHandler (the long id of fld myField of cd myCard of stack  
myStack)


I find that during the call the engine evaluates the parameter and  
passes me the contents of the field, and not the reference to the  
field. What I want is to pass the long id to my handler as a  
**string**. I can't see why this doesn't work, and more importantly  
so far I'm stuck for a way round it. I've tried


  put the long id of fld myField of cd myCard of stack myStack  
into temp

  myHandler temp

but it has exactly the same effect.

What am I doing wrong?

TIA

Graham



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

___
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


Windows Dunce Question (probably OT)

2006-03-22 Thread Chris Carroll-Davis

Hello folks.

Question here from complete Windows dope.  What am I doing wrong?  
I've installed Rev on PC to test and tweak stuff I've written on Mac.  
But... any .rev files I see have the wrong icon. Presumably the file  
association is wrong on my system.  I have tried going to  
properties of file and choosing Revolution as the prog to open the  
file.  But a) Rev isn't in the list...  and b) if I then browse for  
Rev, the PC won't add Rev to the list or associate it with the file.


Upshot is, I can't double-click file (without opening wrong program)  
or drag file to Rev program (if I do, it opens Rev but Rev ignores  
file).  The only way I can open the file is by ctrl-O and choosing  
from dlog... - and that's just oh-so-last-century...


Do any of you Windows experts have any suggestions?  Do I have a  
screwed up registry or something?  Or just a screwed up Mac user?


Help!

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


Option Box

2006-03-22 Thread Jeff Honken
I'm using an option box in my application to allow a user to choose a
static list.  I'm using the on menuPick handler to save the
information to a database.  The information saves if you use the mouse
to choose the value.  The problem is when you a user tabs into the field
and then uses the down arrow to identify their choice. They then tab or
return out of the field.  The data doesn't update to the new value.  Is
there another handler I should be using?  Jeff

   


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


Re: Application Browser Anomaly

2006-03-22 Thread Rob Cozens

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


Thanks Sarah,

Rob

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


Re: Progress Made?

2006-03-22 Thread Rob Cozens


Hi Arthur,


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


I personally have made progress: I have not crashed the Script Editor 
(or anything else) in over a week.


What have I done?  I've made a conscious effort to apply the changes 
made to each handler in a script before changing another handler in the 
same script.


If you, like moi, tend to modify more than one handler in a large 
script before applying the changes, you might try doing what I'm doing 
and see if you find the SE more stable.


Or you might, as I promised RR Support I would, try opening a stack 
with a large script and start cutting and pasting between the script 
and a text file at random to see if you can force a crash.



Rob Cozens
CCW, Serendipity Software Company

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

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

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


Re: Making the move...

2006-03-22 Thread Rob Cozens


Hi Geoff,


 -- breaking out routines for local vs. server connection


You're ignoring my notes: application requirement: the calling syntax 
must be identical for client, server, and single user.


 -- breaking out a routine for when we're just counting records that 
match vs. returning data


Why? It is not used anywhere else but in this handler.  Like Chipp, if 
I find a need for the logic in another handler, I'll generalize it.


 -- breaking out a routine that, given a itemList describing a set of 
fields, returns the data from those fields




Why? It is not used anywhere else but in this handler.  Like Chipp, if 
I find a need for the logic in another handler, I'll generalize it.  
And actually, theSDRecordMatches function handles most of that logic.


to me a routine like this is more than five times as difficult to 
understand/debug/manage than the five twenty line routines that might 
replace it.




Where's the beef!  Show me the money!  Divide findSDRecord into five 
twenty-line routines and post the result.


I must say, Geoff, you seem to have a penchant for splitting handlers 
when there is no need to do so.


Rob Cozens
CCW, Serendipity Software Company

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

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

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


Re: imagedata in Word XML

2006-03-22 Thread Henk van der Velden

Hello Rob e.a.

On 19-mrt-2006, at 19:00, [EMAIL PROTECTED] wrote:

Indeed does the text of an image contain binary data, but it  
looks like it's in the PNG format.

I will do some testing.
If the text of an image is PNG binary data, and the Word file  
contains only PNG images, I would be able to set the text of an  
image to the decoded text from the WordXML node.


one could also try to simply put the data into an image!

- put url(binfile:image.png) into img 1
does work, so this is a least worth a try :-)



My assumption is that, just as changing an object's top property  
automatically changes other related properties (eg:  
topLeft,bottomRight, loc, etc.), changing an image's text property  
will automatically change imageData and other text-related  
properties of the image.  I'm a few days away from testing this  
issue myself.


I've done some testing, here are my results:
- when an image is loaded, it's text property is not set; when it is  
imported, it is.
- when the text property of an image is changed, the imageData,  
width, height etc also change.


So now I can use the binary data from the Word XML file,  decode  
them, create a new, empty image on the card and set the text of that  
image to the decoded binary data.


Henk
___
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: How can I pass a handler a long ID as a string?

2006-03-22 Thread Geoff Canyon

I've hit this before. I generally postfix a cr like so:

  put (the long id of fld myField of cd myCard of stack  
myStack)  cr into tParam

  myHandler tParam

Then in myHandler:

on myHandler pID
  delete char -1 of pID -- ready to go now

or if it could be a list:

on myHandler pIDList
  repeat for each line tID in pIDList

On Mar 22, 2006, at 6:47 AM, Graham Samuel wrote:

I've never come across this before, and it's got me confused. I  
have a handler, say myHandler that has a couple of parameters  
which are intended to be the long ids of objects (actually fields).  
The handler manipulates the fields, something like


  on myHandler para1

do put empty intopara1

...

  end myHandler

I find that this works if the parameters are set in the same  
context as the handler itself - for example in a 'mouseUp' handler  
on the card where I've put the code of myHandler, but if I call it  
from elsewhere with a call like


   myHandler (the long id of fld myField of cd myCard of stack  
myStack)


I find that during the call the engine evaluates the parameter and  
passes me the contents of the field, and not the reference to the  
field. What I want is to pass the long id to my handler as a  
**string**. I can't see why this doesn't work, and more importantly  
so far I'm stuck for a way round it. I've tried


  put the long id of fld myField of cd myCard of stack  
myStack into temp

  myHandler temp

but it has exactly the same effect.

What am I doing wrong?

TIA

Graham



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

___
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


clipboarddata[html] problem

2006-03-22 Thread pmbrig
I am using a button to put a text field on the clipboard. I set the 
clipboarddata[html] to the htmltext of the field, then when I try to paste 
into MS Word, my field formatting does not come through. Instead, the default 
textFont and textSize for the stack is what determines the format of the pasted 
text -- I have experimented with this, and changing the field properties has 
zero effect on the paste, whereas changing the stack properties changes the 
paste. As an added complication, though, setting the textFont of the stack 
works perfectly, but when I set the textSize of the stack to 10, it comes 
through as 12. All other sizes work the way they are supposed to: stack 
textSize of 9 results in size 9 text in the paste, stack textSize of 14 comes 
through as 14, etc. Only stack textSize of 10 comes through as 12.

here's the relevant portion of the script:

put fld wordPath into wordpath
put fld letterPath into letterPath
put theHdr into fld formatPrintText
set the textFont of fld formatPrintText to Bookman Old Style
set the textSize of fld formatPrintText to 10
set the clipboarddata[html] to the htmltext of fld formatPrintText
set the clipboarddata[text] to theHdr -- * see below
launch letterPath with wordpath

* (I've tried not setting the clipboarddata[text] and it makes no difference.)

I'm puzzled. The clipboarddata[html] clearly is not getting set properly. I 
am using Dreamcard v2.6.1 build 152 on a Mac iBook running OSX v10.4.5, and 
Word for Mac v11.2.3. The problem with the size 10 getting seen as size 12 
appears to be a Word problem, since the paste into another text app comes 
through as expected.

Why doesn't the htmlText of the field get onto the clipboard?
Why in the world should the default text properties of the stack have any 
effect here?

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


Re: Making the move...

2006-03-22 Thread Geoff Canyon


On Mar 22, 2006, at 7:34 AM, Rob Cozens wrote:



Hi Geoff,


 -- breaking out routines for local vs. server connection


You're ignoring my notes: application requirement: the calling  
syntax must be identical for client, server, and single user.


That's fine -- I'm just saying that the routine would look something  
like:


on doSomething pArg
  if tSingleUser then
doSomethingForSingleUser pArg
  else
doSomethingForMultiUser pArg
  end if
end doSomething pArg

This way the user can call the routine without regard to whether it's  
single user or multiuser, but you don't have two big chunks of code  
lumped together in one handler that can easily be separated.




 -- breaking out a routine for when we're just counting records  
that match vs. returning data


Why? It is not used anywhere else but in this handler.  Like Chipp,  
if I find a need for the logic in another handler, I'll generalize it.


Because it gets rid of a bunch of if statements in your repeat loop.  
It costs you a bit in that the repeat structure is duplicated in the  
routine that simply counts, so that's a tradeoff. But your repeat  
ends up being faster because you aren't doing tests each time through.


Further, your code ends up being easier to understand, because one  
routine simply counts, while one returns data -- more clear.




 -- breaking out a routine that, given a itemList describing a set  
of fields, returns the data from those fields




Why? It is not used anywhere else but in this handler.  Like Chipp,  
if I find a need for the logic in another handler, I'll generalize  
it.  And actually, theSDRecordMatches function handles most of that  
logic.


Just because something isn't used anywhere else doesn't mean it  
should be lumped in. If it can be clearly expressed as a single  
action (given an itemList describing a set of fields, return the data  
from those fields) it can be broken out, and both routines will be  
easier to understand as a result.




to me a routine like this is more than five times as difficult to  
understand/debug/manage than the five twenty line routines that  
might replace it.




Where's the beef!  Show me the money!  Divide findSDRecord into  
five twenty-line routines and post the result.


I must say, Geoff, you seem to have a penchant for splitting  
handlers when there is no need to do so.


I obviously don't know SDB well enough to:

 -- know what's right for it by my standards
 -- know what's right for it by your standards
 -- change code (or propose changes) in it without knowing the  
context in which the code operates


I thought a bit before offering comment. Maybe not long enough ;-) If  
I've offended, I apologize. It wasn't my intention to cast stones at  
anyone's house in particular.


If you can indulge me for just a moment longer, though, I'd like to  
throw out an analogy. Look at your comments above. The same thing  
could have been said as:


On Mar 22, 2006, at 7:34 AM, Rob Cozens wrote:
Hi Geoff, You're ignoring my notes: application requirement: the  
calling syntax must be identical for client, server, and single  
user. Why? It is not used anywhere else but in this handler.  Like  
Chipp, if I find a need for the logic in another handler, I'll  
generalize it. Why? It is not used anywhere else but in this  
handler.  Like Chipp, if I find a need for the logic in another  
handler, I'll generalize it.  And actually, theSDRecordMatches  
function handles most of that logic. Where's the beef!  Show me the  
money!  Divide findSDRecord into five twenty-line routines and post  
the result. I must say, Geoff, you seem to have a penchant for  
splitting handlers when there is no need to do so. Rob Cozens CCW,  
Serendipity Software Company And I, which was two fooles, do so  
grow three; Who are a little wise, the best fooles bee. from The  
Triple Foole by John Donne (1572-1631)


Breaking up your comments into paragraphs doesn't change the meaning  
of what you said, but it makes it clearer.


regards,

Geoff


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


Re: Making the move...

2006-03-22 Thread Rob Cozens

Geoff,


 -- breaking out routines for local vs. server connection



Client selection [server opens all dbs as local connections]:

replace return with numToChar(29) in itemList
replace return with numToChar(29) in searchCriteria
requestSDBService  
sdbBuffer,find,packArguments(9,exactKey,fieldDelimiter,itemList,setPos 
ition,searchForward,searchCriteria,cutoffKey,recordDelimiter,unlockRecor 
d)

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

put it into sdbParameters
return it

Every db access call has similar logic, but the second and third  
arguments are unique.  To generalize:


replace return with numToChar(29) in itemList
replace return with numToChar(29) in searchCriteria
put  
packArguments(9,exactKey,fieldDelimiter,itemList,setPosition,searchForwa 
rd,searchCriteria,cutoffKey,recordDelimiter,unlockRecord) into  
packedArguments

doGeoffsHandler sdBuffer,find,packedArguments
return the result

on doGeoffsHandler @sdBuffer,serviceType,packedArguments
requestSDBService sdbBuffer,serviceType,packedArguments
get the result
if not word 1 of it and setPosition then put word 4 of it into  
sdbPosition

put it into sdbParameters
return it
end doGeoffsHandler

I've saved two lines in the original handler...for what--the need to  
look up another handler to see the full picture?


Rob Cozens
CCW, Serendipity Software Company

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

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

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


Re: Making the move...

2006-03-22 Thread Rob Cozens

Geeze Geoff ,


 If I've offended, I apologize.


I thought you knew me better than that.  :{`)

If I've come off pedantic or emotionally upset, then I'm sorry.

There is no right or wrong answer, it's a matter of preference...and my 
preferences are closer to Chipp's than yours in this matter.


Your friend, Cousin Rob

___
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: imagedata in Word XML

2006-03-22 Thread Rob Cozens

Hi Henk,

- when an image is loaded, it's text property is not set; when it is 
imported, it is.
- when the text property of an image is changed, the imageData, width, 
height etc also change.


So now I can use the binary data from the Word XML file,  decode them, 
create a new, empty image on the card and set the text of that image 
to the decoded binary data.




That's good to know...I'm still a few days away from testing my logic.

Rob Cozens
CCW, Serendipity Software Company

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

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

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


Re: Making the move...

2006-03-22 Thread Rob Cozens

 Geoff:


on doSomething pArg
  if tSingleUser then
doSomethingForSingleUser pArg
  else
doSomethingForMultiUser pArg
  end if
end doSomething pArg





doSomethingForMultiUser pArg


is the seven lines I used as an example in my last post, the remaining 
90 lines comprise doSomethingForSingleUser pArg


Rob

___
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: How can I pass a handler a long ID as a string?

2006-03-22 Thread David Burgun

Hi,


Instead of doing:

myHandler (the long id of fld myField of cd myCard of stack  
myStack)


do

myHandler (the long id of me)


That should fix it!

All the Best
Dave

On 22 Mar 2006, at 14:47, Graham Samuel wrote:

I've never come across this before, and it's got me confused. I  
have a handler, say myHandler that has a couple of parameters  
which are intended to be the long ids of objects (actually fields).  
The handler manipulates the fields, something like


  on myHandler para1

do put empty intopara1

...

  end myHandler

I find that this works if the parameters are set in the same  
context as the handler itself - for example in a 'mouseUp' handler  
on the card where I've put the code of myHandler, but if I call it  
from elsewhere with a call like


   myHandler (the long id of fld myField of cd myCard of stack  
myStack)


I find that during the call the engine evaluates the parameter and  
passes me the contents of the field, and not the reference to the  
field. What I want is to pass the long id to my handler as a  
**string**. I can't see why this doesn't work, and more importantly  
so far I'm stuck for a way round it. I've tried


  put the long id of fld myField of cd myCard of stack  
myStack into temp

  myHandler temp

but it has exactly the same effect.

What am I doing wrong?

TIA

Graham



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

___
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: Making the move...

2006-03-22 Thread Rob Cozens


Geoff,

Because it gets rid of a bunch of if statements in your repeat loop. 
It costs you a bit in that the repeat structure is duplicated in the 
routine that simply counts, so that's a tradeoff. But your repeat ends 
up being faster because you aren't doing tests each time through.


Further, your code ends up being easier to understand, because one 
routine simply counts, while one returns data -- more clear.




The function here is to count, and optionally select data from, records 
that match search criteria.  To count and select in separate logic 
means parsing all records twice.


I did find this logic:

repeat for each line itemNumber in itemList
  put sdbFieldNumber(itemNumber) into itemNumber

that should be evaluated once all error checks are passed:

put empty into rawItemNumbers
repeat for each line itemNumber in itemList
  put sdbFieldNumber(itemNumber)return after rawItemNumers
end repeat
put rawItemNumers into itemList

and removed from the repeat loop...thanks.

Other than that, I don't see much efficiency to be gained here.

Also, if you look closely at if countOnly statements, you will find 
that they are in repeat exit logic, and never get executed more than 
once.


Rob Cozens
CCW, Serendipity Software Company

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

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

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


Why doesn't this select work???

2006-03-22 Thread David Burgun

Hi,

The following fails when executing:

select before line 1 of me

or

select before me

This is in a handler inside a List Field.

All I want to do is to deselect anything that is selected and scroll  
the list to the beginning.\


Thanks a lot
All the Best
Dave


___
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


Minimize stack...

2006-03-22 Thread Gilberto Cuba

Hi,

I have a Rev 2.6 in a Debian Sarge distributions, and I tried to minimize my
application in KDE, it work very fine, but I tried to minimized in GNOME
that is not work. Why?

How I can minimize my application in GNOME?

Best regards,

Gilberto Cuba 



___
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: Why doesn't this select work???

2006-03-22 Thread Mark Smith

set the hilitedLine of me to 0
set the vScroll of me to 0

should work.

Mark

On 22 Mar 2006, at 17:34, David Burgun wrote:


Hi,

The following fails when executing:

select before line 1 of me

or

select before me

This is in a handler inside a List Field.

All I want to do is to deselect anything that is selected and  
scroll the list to the beginning.\


Thanks a lot
All the Best
Dave


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

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


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


Re: HTML tags in XML

2006-03-22 Thread Mark Brownell

From: Devin Asay [EMAIL PROTECTED]
Hi Folks,

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

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

comments
Here are my comments.
Some of the text is colored font color=#FFred/font   
font color=#FFblue/font
/comments

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

Devin


Use a pull-parser function (see below)

Example :
put PNLPgetElement(pullThisTag, /pullThisTag, tPullThis) into 
tPullThisTag

for elements:

function PNLPgetElement tStTag, tEdTag, stngToSch
   put empty into zapped
   put the number of chars in tStTag into dChars
   put offset(tStTag,stngToSch) into tNum1
   put offset(tEdTag,stngToSch) into tNum2
   if tNum1  1 then
 return error
 exit PNLPgetElement
   end if
   if tNum2  1 then
 return error
 exit PNLPgetElement
   end if
   put char (tNum1 + dChars) to (tNum2 - 1) of stngToSch into zapped
   return zapped
end PNLPgetElement


For an array of elements:

function getPNLPelements tStartTag, tEndTag, StringToSearch
   put empty into tArray
   put 0 into tStart1
   put 0 into tStart2
   put 1 into tElementNum
   put the number of chars in tStartTag into dChars
   repeat
 put offset(tStartTag,StringToSearch,tStart1) into tNum1
 put (tNum1 + tStart1) into tStart1
 if tNum1  1 then exit repeat
 put offset(tEndTag,StringToSearch,tStart2) into tNum2
 put (tNum2 + tStart2) into tStart2
 if tNum2  1 then exit repeat
 --if tNum2  tNum1 then exit repeat
 put char (tStart1 + dChars) to (tStart2 - 1) of StringToSearch into zapped
 put zapped into tArray[tElementNum]
 add 1 to tElementNum
   end repeat
   return tArray
end getPNLPelements

___
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: Windows Dunce Question (probably OT)

2006-03-22 Thread Tariel Gogoberidze


On Mar 22, 2006, at 10:20 AM, Chris Carroll-Davis wrote:


Date: Wed, 22 Mar 2006 15:12:37 +
From: Chris Carroll-Davis [EMAIL PROTECTED]

Hello folks.

Question here from complete Windows dope.  What am I doing wrong?
I've installed Rev on PC to test and tweak stuff I've written on Mac.
But... any .rev files I see have the wrong icon. Presumably the file
association is wrong on my system.  I have tried going to
properties of file and choosing Revolution as the prog to open the
file.
 But a) Rev isn't in the list...  and b) if I then browse for
Rev, the PC won't add Rev to the list or associate it with the file.

Upshot is, I can't double-click file (without opening wrong program)



Any chance this wrong program is WinRAR ?

WinRAR uses the same file extension .rev as Revolution does  and if 
it's installed prior to Revolution it would change Rev icons to it's 
own.


My solution was to change .rev file association directly in registry. 
WinRAR applies .rev extension to rarely used archives (recovery 
volumes, which can be later used to reconstruct missing files in volume 
set and only for very specific cases on top of that).


So, in my case, because I'm not using such types of WinRAR archives, 
this solution was fine.


best regards
Tariel



or drag file to Rev program (if I do, it opens Rev but Rev ignores
file).  The only way I can open the file is by ctrl-O and choosing
from dlog... - and that's just oh-so-last-century...

Do any of you Windows experts have any suggestions?  Do I have a
screwed up registry or something?  Or just a screwed up Mac user?

Help!

Chris


___
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: Windows Dunce Question (probably OT)

2006-03-22 Thread Chris Carroll-Davis

Tariel -

good suggestion, but no.  Initially I thought it was something like  
that because the icons came up consistently with Adobe PDF icons.   
But I can change the file association to more or less any program  
using the file profile options.  The problem here though is the fact  
that Windows refuses to let me associate the files with *Rev*.  It  
lets me browse for for a program, but if I choose Rev it just ignores  
it.  (I think I got Adobe PDF icons simply because Adobe begins  
with A so that was  the first prog in the list!)


:-(

Driving me nuts, this one!

Thanks for the suggestion,

C


On 22 Mar 2006, at 18:02, Tariel Gogoberidze wrote:



On Mar 22, 2006, at 10:20 AM, Chris Carroll-Davis wrote:


Date: Wed, 22 Mar 2006 15:12:37 +
From: Chris Carroll-Davis [EMAIL PROTECTED]

Hello folks.

Question here from complete Windows dope.  What am I doing wrong?
I've installed Rev on PC to test and tweak stuff I've written on Mac.
But... any .rev files I see have the wrong icon. Presumably the file
association is wrong on my system.  I have tried going to
properties of file and choosing Revolution as the prog to open the
file.
 But a) Rev isn't in the list...  and b) if I then browse for
Rev, the PC won't add Rev to the list or associate it with the file.

Upshot is, I can't double-click file (without opening wrong program)



Any chance this wrong program is WinRAR ?

WinRAR uses the same file extension .rev as Revolution does  and  
if it's installed prior to Revolution it would change Rev icons to  
it's own.


My solution was to change .rev file association directly in  
registry. WinRAR applies .rev extension to rarely used archives  
(recovery volumes, which can be later used to reconstruct missing  
files in volume set and only for very specific cases on top of that).


So, in my case, because I'm not using such types of WinRAR  
archives, this solution was fine.


best regards
Tariel



or drag file to Rev program (if I do, it opens Rev but Rev ignores
file).  The only way I can open the file is by ctrl-O and choosing
from dlog... - and that's just oh-so-last-century...

Do any of you Windows experts have any suggestions?  Do I have a
screwed up registry or something?  Or just a screwed up Mac user?

Help!

Chris


___
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: Option Box

2006-03-22 Thread Jeff Honken
I figured this on out.  I was grabbing the selectedtext vs the label. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeff
Honken
Sent: Wednesday, March 22, 2006 8:32 AM
To: use-revolution@lists.runrev.com
Subject: Option Box

I'm using an option box in my application to allow a user to choose a
static list.  I'm using the on menuPick handler to save the
information to a database.  The information saves if you use the mouse
to choose the value.  The problem is when you a user tabs into the field
and then uses the down arrow to identify their choice. They then tab or
return out of the field.  The data doesn't update to the new value.  Is
there another handler I should be using?  Jeff

   


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



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


Editing a VB script from within Revolution

2006-03-22 Thread Thomas McGrath III

Hello,

Does anyone know or can show me how to edit and run a VB script from  
with a Rev stack?


I want to change item's in the VB script and then run it like I am  
doing with Applescript on the Mac side.


I know how to launch an external script from within REV but I want to  
run a script stored in a field or custom property within REV.


answer file Run VB script with OK and Cancel
if it is not  then launch it with WScript.exe

Also, Does anyone know how to get VB scripts to execute with out  
having the user to instal WSH WScript.exe ?



Thanks for any help in advance.

Tom


Thomas J McGrath III
[EMAIL PROTECTED]

Lazy River Software™ - http://www.lazyriversoftware.com

Lazy River Metal Art™ - http://www.lazyriversoftware.com/metal.html

Meeting Wear™ - http://www.cafepress.com/meetingwear

Semantic Compaction Systems - http://www.minspeak.com

SCIconics, LLC - http://www.sciconics.com/sciindex.html







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


Re: Editing a VB script from within Revolution

2006-03-22 Thread Ken Ray
On 3/22/06 12:26 PM, Thomas McGrath III [EMAIL PROTECTED] wrote:

 Hello,
 
 Does anyone know or can show me how to edit and run a VB script from
 with a Rev stack?
 
 I want to change item's in the VB script and then run it like I am
 doing with Applescript on the Mac side.
 
 I know how to launch an external script from within REV but I want to
 run a script stored in a field or custom property within REV.
 
 answer file Run VB script with OK and Cancel
 if it is not  then launch it with WScript.exe
 
 Also, Does anyone know how to get VB scripts to execute with out
 having the user to instal WSH WScript.exe ?

Yes, you can use 'cscript.exe' and run it from the command-line. Here's my
all-purpose handler for running scripts from Rev:

function stsDoScript pScript,pScriptType,pDirectToConsole
  if pScriptType = then put AppleScript into pScriptType
  
  replace ` with quote in pScript
  switch pScriptType
  case AppleScript
  case AS
do pScript as AppleScript
put the result into tResult
break
  case VB Script
  case VBS
set the hideConsoleWindows to true
if pDirectToConsole =  then
  put C:\libVBS_temp.vbs into tVBSPath
  put pScript into url (file:  tVBSPath)
  get shell(cscript.exe //nologo  tVBSPath)
else
  get shell(cscript.exe  pScript)
end if
put it into tResult
if there is a file tVBSPath then
  send delete file  quote  tVBSPath  quote to me in 1 second
end if
break
  case JS
  case JavaScript
if javascript is among the lines of the alternateLanguages then
  do pScript as JavaScript
  put the result into tResult
else
  put Error: JavaScript OSA component not installed. into tResult
end if
break
  end switch
  return tResult
end stsDoScript

To call it, do something like:

put the uVBScript of this stack into tScript
-- or wherever you have your VBS code
get stsDoScript(tScript,VBS)
if it   then
  answer it
end if

HTH,

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

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


Re: imagedata in Word XML

2006-03-22 Thread Ken Ray
On 3/22/06 9:40 AM, Henk van der Velden [EMAIL PROTECTED] wrote:

 I've done some testing, here are my results:
 - when an image is loaded, it's text property is not set; when it is
 imported, it is.
 - when the text property of an image is changed, the imageData,
 width, height etc also change.
 
 So now I can use the binary data from the Word XML file,  decode
 them, create a new, empty image on the card and set the text of that
 image to the decoded binary data.

Henk, is this code that can be shared with the Rev community? If so, that
would be great...


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

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


Weirdness Passing Messages

2006-03-22 Thread David Burgun

Hi,

I have a 2 Stacks, StackMain and StackUtil. I used StackUtil as a  
library stack via the start using command.


In the Stack Script for StackUtil I have the following functions:

PutMessage()
ListenForMessages()

In StackMain Card 2 ObjectX, I do:

function InitObject
get ListenForMessages(MessageX)
end InitObject

on MessageX
put MessageX into me
get PutMessage(MessageY)
end MessageX

on mouseUp
put MessageX into me
get PutMessage(MessageY)
end mouseUp


In StackMain Card 2 ObjectY, I do:

function InitObject
get ListenForMessages(MessageY)
end InitObject

on MessageY
put MessageY into me
end MessageY


In StackMain Card 2 ObjectA, I do:

on mouseUp
get PutMessage(MessageX)
end mouseUp


If I press the button associated with Card 1 Object, then MessageX  
gets called in Card 2 ObjectX ok and ObjectX gets set to MessageX.  
All is fine. MessageY in Card 2 ObjectY gets called ok too, BUT the  
field is NOT set to MessageY as expected? However if I press  
the button associated with Card 2 ObjectX, again the MessageY in Card  
2 ObjectY gets called AND the field is set ok. All is fine.


The message passing has been tested and it works fine in general, but  
it seems like the following path does not work:


Card1:ObjectA:mouseUp --Card2:MessageX:Card2:MessageY does not work.

But

Card2:ObjectX:mouseUp --Card2:MessageY works ok.

The weird thing is that the handlers do get called and I have stepped  
over the statement that does:
put MessageY into me and that seems to work. However, when you  
select card 2, the field has not been changed.


Any Ideas???
Thanks in Advance
All the Best
Dave






___
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: Windows Dunce Question (probably OT)

2006-03-22 Thread Arthur Urban

I have the exact same problem. I've had no luck fixing it so far.

Chris Carroll-Davis wrote:

Tariel -

good suggestion, but no.  Initially I thought it was something like 
that because the icons came up consistently with Adobe PDF icons.  But 
I can change the file association to more or less any program using 
the file profile options.  The problem here though is the fact that 
Windows refuses to let me associate the files with *Rev*.  It lets me 
browse for for a program, but if I choose Rev it just ignores it.  (I 
think I got Adobe PDF icons simply because Adobe begins with A so 
that was  the first prog in the list!)


:-(

Driving me nuts, this one!

Thanks for the suggestion,

C


On 22 Mar 2006, at 18:02, Tariel Gogoberidze wrote:



On Mar 22, 2006, at 10:20 AM, Chris Carroll-Davis wrote:


Date: Wed, 22 Mar 2006 15:12:37 +
From: Chris Carroll-Davis [EMAIL PROTECTED]

Hello folks.

Question here from complete Windows dope.  What am I doing wrong?
I've installed Rev on PC to test and tweak stuff I've written on Mac.
But... any .rev files I see have the wrong icon. Presumably the file
association is wrong on my system.  I have tried going to
properties of file and choosing Revolution as the prog to open the
file.
 But a) Rev isn't in the list...  and b) if I then browse for
Rev, the PC won't add Rev to the list or associate it with the file.

Upshot is, I can't double-click file (without opening wrong program)



Any chance this wrong program is WinRAR ?

WinRAR uses the same file extension .rev as Revolution does  and if 
it's installed prior to Revolution it would change Rev icons to it's 
own.


My solution was to change .rev file association directly in 
registry. WinRAR applies .rev extension to rarely used archives 
(recovery volumes, which can be later used to reconstruct missing 
files in volume set and only for very specific cases on top of that).


So, in my case, because I'm not using such types of WinRAR archives, 
this solution was fine.


best regards
Tariel



or drag file to Rev program (if I do, it opens Rev but Rev ignores
file).  The only way I can open the file is by ctrl-O and choosing
from dlog... - and that's just oh-so-last-century...

Do any of you Windows experts have any suggestions?  Do I have a
screwed up registry or something?  Or just a screwed up Mac user?

Help!

Chris


___
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: Editing a VB script from within Revolution

2006-03-22 Thread Thomas McGrath III

Ken,

Thanks for the quick response. Is cscript.exe available on All  
windows computers OR does it need to be installed with some certain  
software?


I have installed so many things now on the PC that I don't know what  
will work without relying on these other installs.


I am off to test your script and see what i can do.

Thanks again,

Tom

On Mar 22, 2006, at 1:32 PM, Ken Ray wrote:

On 3/22/06 12:26 PM, Thomas McGrath III [EMAIL PROTECTED]  
wrote:



Hello,

Does anyone know or can show me how to edit and run a VB script from
with a Rev stack?

I want to change item's in the VB script and then run it like I am
doing with Applescript on the Mac side.

I know how to launch an external script from within REV but I want to
run a script stored in a field or custom property within REV.

answer file Run VB script with OK and Cancel
if it is not  then launch it with WScript.exe

Also, Does anyone know how to get VB scripts to execute with out
having the user to instal WSH WScript.exe ?


Yes, you can use 'cscript.exe' and run it from the command-line.  
Here's my

all-purpose handler for running scripts from Rev:

function stsDoScript pScript,pScriptType,pDirectToConsole
  if pScriptType = then put AppleScript into pScriptType

  replace ` with quote in pScript
  switch pScriptType
  case AppleScript
  case AS
do pScript as AppleScript
put the result into tResult
break
  case VB Script
  case VBS
set the hideConsoleWindows to true
if pDirectToConsole =  then
  put C:\libVBS_temp.vbs into tVBSPath
  put pScript into url (file:  tVBSPath)
  get shell(cscript.exe //nologo  tVBSPath)
else
  get shell(cscript.exe  pScript)
end if
put it into tResult
if there is a file tVBSPath then
  send delete file  quote  tVBSPath  quote to me in 1 second
end if
break
  case JS
  case JavaScript
if javascript is among the lines of the alternateLanguages then
  do pScript as JavaScript
  put the result into tResult
else
  put Error: JavaScript OSA component not installed. into  
tResult

end if
break
  end switch
  return tResult
end stsDoScript

To call it, do something like:

put the uVBScript of this stack into tScript
-- or wherever you have your VBS code
get stsDoScript(tScript,VBS)
if it   then
  answer it
end if

HTH,

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

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

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


Thomas J McGrath III
[EMAIL PROTECTED]

Lazy River Software™ - http://www.lazyriversoftware.com

Lazy River Metal Art™ - http://www.lazyriversoftware.com/metal.html

Meeting Wear™ - http://www.cafepress.com/meetingwear

Semantic Compaction Systems - http://www.minspeak.com

SCIconics, LLC - http://www.sciconics.com/sciindex.html







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


Re: Weirdness Passing Messages

2006-03-22 Thread Mark Smith

What do these functions do?

Mark

On 22 Mar 2006, at 18:51, David Burgun wrote:


PutMessage()
ListenForMessages()


___
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: Editing a VB script from within Revolution

2006-03-22 Thread Ken Ray
On 3/22/06 12:57 PM, Thomas McGrath III [EMAIL PROTECTED] wrote:

 Ken,
 
 Thanks for the quick response. Is cscript.exe available on All
 windows computers OR does it need to be installed with some certain
 software?

All computers going back to Win98. Win95 (prior to Internet Explorer 4.0)
didn't have it yet, but Exporer 4.0 installed it. Which basically means
everyone has it.

:-)

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


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


Re: Editing a VB script from within Revolution

2006-03-22 Thread Thomas McGrath III

Ken,

If I understand this the  VBS will run if  VB Script is in  
pSriptType because there is no break after the case VB Script?
I just never wrote a switch that way and well, this is the first time  
I've seen that.


What is the difference between straight to console and not? Why is  
that important?


Lastly, I notice that Python is not among the parameters. Is it not a  
choice or is it so different as to not work in this case?


P.S. I just tried a vb script stored in a field and it worked and is  
awesome.


Thank you so much for this.

Tom


On Mar 22, 2006, at 1:32 PM, Ken Ray wrote:


 case VB Script
  case VBS
set the hideConsoleWindows to true
if pDirectToConsole =  then


Thomas J McGrath III
[EMAIL PROTECTED]

Lazy River Software™ - http://www.lazyriversoftware.com

Lazy River Metal Art™ - http://www.lazyriversoftware.com/metal.html

Meeting Wear™ - http://www.cafepress.com/meetingwear

Semantic Compaction Systems - http://www.minspeak.com

SCIconics, LLC - http://www.sciconics.com/sciindex.html







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


Re: Weirdness Passing Messages

2006-03-22 Thread David Burgun

Hi,

function ListenForMessages theMessageID,theHanlderLocation

Adds to an Array (stored in a GlobalProperty of StackUtil) as so:

MessageArray[theMessageID] =  theHanlderLocation

If theMessageID is already in the Array and the Location is not  
already in the data part of the array, then it is appended, so the  
array looks like this:


   Key  Data
MessageX  ObjectX of Card 2 of Stack StackMain,ObjectY of  
Card 2 of Stack StackMain


and is called like so:

ListenForMessages(MessageX,the long name of me)


function PutMessage theMessageID

Looks up theMessageID in the Array built in ListenForMessages and  
calls (via a send statement) the handler with the name theMessageID  
at the location(s) specified in the data part of the array.


As I said the Message handling functions seem to work fine in  
general, but not when PutMessage() is called from within a message  
handler OR when called from a different card that the one that called  
the initial message. Not sure which!


Thanks a lot
All the Best
Dave

On 22 Mar 2006, at 19:02, Mark Smith wrote:


What do these functions do?

Mark

On 22 Mar 2006, at 18:51, David Burgun wrote:


PutMessage()
ListenForMessages()


___
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: Acessing button scripts in a HC stack ? - Closing Thread

2006-03-22 Thread Stephen Barncard
Remember to convert the XCMDs  XFCNs to revolution equivalents or no 
operation  FIRST. Name the replacements with the same name of the 
XFCN. Then getting it all to work together will be a lot easier.




Hi from Paris,

Thanks for all your responses (especially Sarah 
Jacqueline).

I was stupid enough to think that in Rev, the reference
bg was invalid, so I didn't even try it.

I now have several ways to get what I want.

On the comments about WHY I want to convert my
HC stacks :

1 - My HC stacks look so DRAB, compared to Rev,
2 - My HC field contents are badly displayed in Rev,
3 - My HC stacks lean heavily on XFCN's and XCMD's,
 and so they don't run successfully,
4 - I want to leave the HC world (with regrets), before
 Apple pulls the plug on OS9, and all the applications
 that go with it,
5 - I want to run some of my stacks on the PC, to be able to
 distribute them to my family (Family Tree), or my music
 collegues (Song Catalogue). There are still a few people
 in this world who insist on using PC's ..
6 - I have unlimited time and patience on my 3 computers, and
 even after 40 years of programming, I love using Rev.



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


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

2006-03-22 Thread Robert Sneidar
Thanks Sarah great tip! It works great for development, which I  
needed presently. I will in the future be making a card which will  
act as a table listing function for various tables and their  
respective data sets, and so I will need to change them on the fly,  
by passing the tab stops along with the table and fields I want to  
display. To that end I wrote a simple function which converts column  
widths eg. 1,2,3,4 into tab stops eg 1,3,6,10. I will post it as soon  
as I am sure I have the bugs worked out.


Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On Mar 21, 2006, at 7:53 PM, [EMAIL PROTECTED]  
wrote:



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

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

Cheers,
Sarah



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


Re: Editing a VB script from within Revolution

2006-03-22 Thread Ken Ray
On 3/22/06 1:10 PM, Thomas McGrath III [EMAIL PROTECTED] wrote:

 Ken,
 
 If I understand this the  VBS will run if  VB Script is in
 pSriptType because there is no break after the case VB Script?
 I just never wrote a switch that way and well, this is the first time
 I've seen that.

Yes you're right. If there's no break, the case will fall through to the
next case. I use this to provide different options to the end user.

 What is the difference between straight to console and not? Why is
 that important?

Excellent question, and unfortunately one I can't remember! :-)

I remember putting it into the code for others that may want to use the
option, but I never have. And after looking on Microsoft's site, it looks
like it may be no longer an option. So just ignore it for now.
 
 Lastly, I notice that Python is not among the parameters. Is it not a
 choice or is it so different as to not work in this case?

To be honest, I know so little about Python that I didn't know if you can
execute Python code in a similar way as VB Script. Do you know if it can?
I'd love to extend stsDoScript, but don't know what needs to be done.
 
 P.S. I just tried a vb script stored in a field and it worked and is
 awesome.
 
 Thank you so much for this.

My pleasure!

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


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


Re: Weirdness Passing Messages

2006-03-22 Thread David Burgun

Hi,

Update:

If I put a breakpoint in Card2:ObjectX on the statement:

put MessageY into me

and then press the button in Card1:ObjectA and when I hit the  
breakpoint use the App Browser Window to manually select Card2 (so  
that it is shown instead of Card1, then the field is set to  
MessageY as expected, so it looks like the fact that the message  
handler is being called when Card2 is not selected is causing the put  
statement to not work!!!


Any Ideas??
Cheers
Dave

Hi,

function ListenForMessages theMessageID,theHanlderLocation

Adds to an Array (stored in a GlobalProperty of StackUtil) as so:

MessageArray[theMessageID] =  theHanlderLocation

If theMessageID is already in the Array and the Location is not  
already in the data part of the array, then it is appended, so the  
array looks like this:


   Key  Data
MessageX  ObjectX of Card 2 of Stack StackMain,ObjectY of  
Card 2 of Stack StackMain


and is called like so:

ListenForMessages(MessageX,the long name of me)


function PutMessage theMessageID

Looks up theMessageID in the Array built in ListenForMessages and  
calls (via a send statement) the handler with the name theMessageID  
at the location(s) specified in the data part of the array.


As I said the Message handling functions seem to work fine in  
general, but not when PutMessage() is called from within a message  
handler OR when called from a different card that the one that called  
the initial message. Not sure which!


Thanks a lot
All the Best
Dave

On 22 Mar 2006, at 19:02, Mark Smith wrote:


What do these functions do?

Mark

On 22 Mar 2006, at 18:51, David Burgun wrote:


PutMessage()
ListenForMessages()


___
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: Editing a VB script from within Revolution

2006-03-22 Thread Thomas McGrath III

Ken,

Thanks, So which would the default be? straight to console =  or not?

I will look into Python. Not sure myself since python scripts use  
Python or PythonWin to execute.



Thanks again,

Tom

On Mar 22, 2006, at 2:27 PM, Ken Ray wrote:



What is the difference between straight to console and not? Why is
that important?


Excellent question, and unfortunately one I can't remember! :-)

I remember putting it into the code for others that may want to use  
the
option, but I never have. And after looking on Microsoft's site, it  
looks

like it may be no longer an option. So just ignore it for now.


Lastly, I notice that Python is not among the parameters. Is it not a
choice or is it so different as to not work in this case?


To be honest, I know so little about Python that I didn't know if  
you can
execute Python code in a similar way as VB Script. Do you know if  
it can?

I'd love to extend stsDoScript, but don't know what needs to be done.


Thomas J McGrath III
[EMAIL PROTECTED]

Lazy River Software™ - http://www.lazyriversoftware.com

Lazy River Metal Art™ - http://www.lazyriversoftware.com/metal.html

Meeting Wear™ - http://www.cafepress.com/meetingwear

Semantic Compaction Systems - http://www.minspeak.com

SCIconics, LLC - http://www.sciconics.com/sciindex.html







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


Re: clipboarddata[html] problem

2006-03-22 Thread J. Landman Gay

[EMAIL PROTECTED] wrote:

I am using a button to put a text field on the clipboard. I set the
clipboarddata[html] to the htmltext of the field, then when I try
to paste into MS Word, my field formatting does not come through.
Instead, the default textFont and textSize for the stack is what
determines the format of the pasted text -- I have experimented with
this, and changing the field properties has zero effect on the paste,
whereas changing the stack properties changes the paste. As an added
complication, though, setting the textFont of the stack works
perfectly, but when I set the textSize of the stack to 10, it comes
through as 12. All other sizes work the way they are supposed to:
stack textSize of 9 results in size 9 text in the paste, stack
textSize of 14 comes through as 14, etc. Only stack textSize of 10
comes through as 12.

here's the relevant portion of the script:

put fld wordPath into wordpath
put fld letterPath into letterPath
put theHdr into fld formatPrintText
set the textFont of fld formatPrintText to Bookman Old Style
set the textSize of fld formatPrintText to 10
set the clipboarddata[html] to the htmltext of fld formatPrintText
set the clipboarddata[text] to theHdr -- * see below
launch letterPath with wordpath

* (I've tried not setting the clipboarddata[text] and it makes no
difference.)

I'm puzzled. The clipboarddata[html] clearly is not getting set
properly. I am using Dreamcard v2.6.1 build 152 on a Mac iBook
running OSX v10.4.5, and Word for Mac v11.2.3. The problem with the
size 10 getting seen as size 12 appears to be a Word problem, since
the paste into another text app comes through as expected.

Why doesn't the htmlText of the field get onto the clipboard? Why in
the world should the default text properties of the stack have any
effect here?


When you set the text properties of a field, the text it contains has no 
styling of its own, it uses inheritance of the field's properties to 
give an appearance of styling. Therefore, when you copy that text, there 
is no particular htmltext assigned to it.


To fix that, set the styling of the actual characters in the text 
itself, which does assign html properties to the text:


set the textfont of char 1 to -1 of fld formatPrintText \
 to Bookman Old Style
set the textsize of char 1 to -1 of fld formatPrintText to 10

This should give the results you are looking for.

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


Re: Progress Made?

2006-03-22 Thread J. Landman Gay

Chipp Walters wrote:

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

I'm not sure. It appears to have something to do with copying and 
pasting into the script editor, so that's when you should be most 
careful. Save a lot.



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

The update release, due out Very Soon.

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


Re: Progress Made?

2006-03-22 Thread J. Landman Gay

Arthur Urban wrote:
 It would be great if I could help out. Is there a specific means to
 generate a crash log?

I'd like some confirmation about this from a regular XP user, but it is 
my understanding that if you get the error dialog from Windows saying 
the program must exit, there will be a button at the bottom of the 
dialog offering to show more detail. If you click that, you will see a 
bunch of gibberish. That gibberish is the crash log, which you can copy 
and paste into a text file.


However, I don't use Windows as my daily platform so if someone knows 
more, please post.


And thanks for your willingness to help. I think they have this one 
isolated now, but in the future any crashes should always be reported to 
Bugzilla.


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


Automated testing

2006-03-22 Thread Richard Gaskin
I'm putting together an article and toolkit to help with code base 
analysis for revJournal, and after slicing and dicing my way through 
dozens of stacks it had me wondering about the role of automated testing 
in Rev projects.


What sorts of automated tests are common with other languages, and what 
would be valuable in Rev?


Do any of you do automated testing?  If so, what do you test and how?

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


Re: clipboarddata[html] problem

2006-03-22 Thread André . Bisseret


Le Wednesday, 22 Mar 2006, à 17:21 Europe/Paris, [EMAIL PROTECTED] a 
écrit :


I am using a button to put a text field on the clipboard. I set the 
clipboarddata[html] to the htmltext of the field, then when I try to 
paste into MS Word, my field formatting does not come through. 
Instead, the default textFont and textSize for the stack is what 
determines the format of the pasted text -- I have experimented with 
this, and changing the field properties has zero effect on the paste, 
whereas changing the stack properties changes the paste. As an added 
complication, though, setting the textFont of the stack works 
perfectly, but when I set the textSize of the stack to 10, it comes 
through as 12. All other sizes work the way they are supposed to: 
stack textSize of 9 results in size 9 text in the paste, stack 
textSize of 14 comes through as 14, etc. Only stack textSize of 10 
comes through as 12.


here's the relevant portion of the script:

put fld wordPath into wordpath
put fld letterPath into letterPath
put theHdr into fld formatPrintText
set the textFont of fld formatPrintText to Bookman Old Style
set the textSize of fld formatPrintText to 10
set the clipboarddata[html] to the htmltext of fld formatPrintText
set the clipboarddata[text] to theHdr -- * see below
launch letterPath with wordpath

* (I've tried not setting the clipboarddata[text] and it makes no 
difference.)


I'm puzzled. The clipboarddata[html] clearly is not getting set 
properly. I am using Dreamcard v2.6.1 build 152 on a Mac iBook running 
OSX v10.4.5, and Word for Mac v11.2.3. The problem with the size 10 
getting seen as size 12 appears to be a Word problem, since the paste 
into another text app comes through as expected.


Hi Peter,


Why doesn't the htmlText of the field get onto the clipboard?

I recently discovered that, after select text of fld suchField :

1 - put the selectedText into fld essai  -- doesn't keep format 
when paste

2 - put the selection into fld essai --  idem
3 - set the clipboardData[text] to the selectedText -- idem
4 - set the clipboardData[text] to the selection --  idem
BUT :
5 - copy the selectedText -- paste in Word remains formatted
6 - copy the selection --  remains formatted
(Mac G4 ; 0SX 10.2.8 ; RR ; Word 10.1.0)

Best regards from Grenoble
André

Why in the world should the default text properties of the stack have 
any effect here?


Peter M. Brigham
___
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: imagedata in Word XML

2006-03-22 Thread Henk van der Velden

Ken,

putting binary data from a Word XML file into an image on a Rev card  
is quite straightforward.

There is a node w:binData containing the image data.

put revXMLNodeContents(treeID, node) into theData
create img
put it into theImg
set the text of image theImg to base64Decode(theData)


The hard part of course is to parse Word XML in a proper manner. I'm  
working on that right now. I'll see where I get. If it works OK, I'm  
willing to share my code, of course.


Henk


On 22-mrt-2006, at 19:00, [EMAIL PROTECTED] wrote:


I've done some testing, here are my results:
- when an image is loaded, it's text property is not set; when it is
imported, it is.
- when the text property of an image is changed, the imageData,
width, height etc also change.

So now I can use the binary data from the Word XML file,  decode
them, create a new, empty image on the card and set the text of that
image to the decoded binary data.


Henk, is this code that can be shared with the Rev community? If  
so, that

would be great...


___
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


MVC in Rev?

2006-03-22 Thread Richard Gaskin


I've been reworking my framework and its data management engine to 
explore ways it can shorten my development time even more.  Since MVC is 
the buzzword du jour, I've been looking into ways of implementing MVC in 
Rev.


Factoring code, data, and presentation is generally easy in Rev, and 
with getProp and setProp it's not hard to establish triggers for 
updating UI elements.  But as for MVC per se, I'm not yet certain that 
particular OOP pattern is a good fit for Transcript.


With Cocoa it makes a lot of sense, mostly because Cocoa is inherently 
OOP and the MVC classes are built in from the ground up.  There it fits 
like a glove; in fact, it *is* the glove.


But if we step back from the specifics of MVC implementations in other 
languages and look instead to the goals it serves and the benefits it 
provides, I'm left wondering:


Are there simpler ways to get the same productivity benefits in Rev 
without adhering to formal definitions of MVC for other languages?


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


ANN: Hinduism Today Digital Edition Credits

2006-03-22 Thread Sivakatirswami
The Hinduism Today Digital Edition remote client PDF downloader and  
back issues manager will be released on April 1st.  Code name  
Brazil (smile). More later... Bottom line for today's announcement:


Your Name May Be In the Credits!

more below:

-

While I have not offered much to others on this list through the  
years, we have received a lot.. Our small attempt to give back is  
in the About field where we have major credits for Rev.


250,000 unique IP's hit our web sites every month, factor out  
multiple rotated IP's on  single proxy session we may have real  
visitor count of about 220,000 a month. It's not Newsweek, but is  
also not peanuts.


Of course just because people bums into your site doesn't mean  
anything... but, suffice it to say, our Revolutiobn application will  
be getting a some exposure and much of this is from within the India,  
Indian-American, Southeast Asian, Hindu software developer world,  
which is huge.


If you DO NOT want to be on this list please email me right away... 
(off list of course) If you DO want to be on this list, email me the  
web site URL that we should use to link your name... We have set up a  
referrals CGI, people clicking on the links in the about field will  
be logged on our server (transparently) and then redirected to your  
site. I will be able to get stats on click thrus...


This whole thing, top to bottom is Rev driven including all the CGIs,  
with a PostGRESQL back end on the web server.


Please email me off list with your proper name and web site you want  
your link to go to. I've tried to include all the great ones who  
have been helping all of us for over 5 years. If you see some name  
missing of someone who has done yoeman service to ll of us.. please  
send that.


If you prefer only your company name that's also fine... let me know.  
Of course, if you don't want to be on the list we can remove your name.


===
Hinduism Today Digital Edition
Application and Web Services

Developed by Andre Alves Garzia, Niteroi, Brazil

With code library contributions from:
Ken Ray, Sons of Thunder (libXML); AltuitInc (altSplash.rev);
Dan Shafer SmartEbooks; Shao Sean (getMXRecords)


Created in and driven by Runtime Revolution.

 REV LOGO HERE:

Appreciation

Thanks to the members of the Revolution users community for their  
generous technical support:


Richard Gaskin, Fourth World (for Leading the Way); Pierre Sahores,  
France; Frederic Rinaldi, Many Bases, France; Ro Nagey, Royal  
Software Inc.;  Ken Ray, Sons of Thunder; Scott Rossi, Tactile Media;  
Jan Schenkel, Professional Software; Sarah Reichelt, educator; Klaus  
Major, Germany; Rob Cozens, Serendipity Software; Jacqueline Landman  
Gay, HyperActive Software; Troy Rollins, RPSystems, Ltd. Chipp  
Walters, Altuit; Hugh Senior, The Flexible Learning Company, UK;  
Jerry Daniels, Daniels and Mara; Geoff Canyon, Inspired Logic; Shao  
Sean, Canada; Andu Novac, Archeopterix Engineering; Eric Chatonet, So  
Smart Software, France; Monte Goulding, Sweat Technologies and many  
others.

==

[Who did I miss?]

Best Wishes from Hawaii

Sivakatirswami




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


Re: Making the move...

2006-03-22 Thread Rob Cozens


Sarah, Mark, et al:


arrays are things that don't come
naturally to me, so I probably ignore them when they would be useful.



Arrays, in the traditional sense (ie: element(1)...element(n)), were 
part and parcel of my programming instruction in BASIC and my first 
professional programming in FORTRAN; but I rarely use them today.


But Transcript keyed arrays make wonderful run-time tables.

SDB Client/Server uses:

local clientDbList -- array by clientId:dbId1, dbId2, etc
local dbClientList -- array by dbId:client id,writeAccessType,current 
position

local indexList -- array by dbId:cardIndex
local lockedRecordList -- array by dbId: record id, client id
local sdbDbPathList -- array by dbId: db stack path, autoLockOn, 
readLocksEnforced

local sdbFieldDelimiter -- array by record type
local sdbFieldEdits -- array by record type
local sdbFieldList -- array by recordType: field name list
local sdbTranslationList -- array by clientId: 1=ASCIIANSI, 0=None, or 
-1=ANSIASCII + tab  ipcProtocol [tp,ae,pc,dc,sf]


so...

clientDbList[sdbClientId] gives me a list of the ids of all dbs the 
client has open
dbClientList[sdbDbId] gives me a list of all clients using the db, 
including access type  current record position

indexList[sdbDbId] gives me the index to the db
lockedRecordList[sdbDbId] gives me a list of the ids of all locked 
records along with the id of the user with the lock


etc.

I find this very powerful and easier to implement than alternative 
syntax.


Rob Cozens
CCW, Serendipity Software Company

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

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

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


Re: How can I pass a handler a long ID as a string?

2006-03-22 Thread Graham Samuel
Yes, Dave's suggestion works in context - but my problem that the  
context of the handler is different from that of the field whose id I  
want to pass as a parameter: this has to be true if the handler is to  
be at all worthwhile, as it does its work on ids of objects from  
various stacks etc. That's where the difficulty lies. Geoff Canyon's  
idea of making sure the RR engine can't parse the id reference seems  
to be the way to go:



I've hit this before. I generally postfix a cr like so:

   put (the long id of fld myField of cd myCard of stack
myStack)  cr into tParam
   myHandler tParam

Then in myHandler:

on myHandler pID
   delete char -1 of pID -- ready to go now

or if it could be a list:

on myHandler pIDList
   repeat for each line tID in pIDList


Although somehow I would expect there to be a way of passing a 'parse- 
able' string **as** a string, but apparently not.


Thanks to both of you.

Graham

On Wed, 22 Mar 2006 17:09:33 +, David Burgun  
[EMAIL PROTECTED] wrote:

Hi,


Instead of doing:

myHandler (the long id of fld myField of cd myCard of stack
myStack)

do

myHandler (the long id of me)


That should fix it!

All the Best
Dave

On 22 Mar 2006, at 14:47, Graham Samuel wrote:



I've never come across this before, and it's got me confused. I
have a handler, say myHandler that has a couple of parameters
which are intended to be the long ids of objects (actually fields).
The handler manipulates the fields, something like

  on myHandler para1

do put empty intopara1

...

  end myHandler

I find that this works if the parameters are set in the same
context as the handler itself - for example in a 'mouseUp' handler
on the card where I've put the code of myHandler, but if I call it
from elsewhere with a call like

   myHandler (the long id of fld myField of cd myCard of stack
myStack)

I find that during the call the engine evaluates the parameter and
passes me the contents of the field, and not the reference to the
field. What I want is to pass the long id to my handler as a
**string**. I can't see why this doesn't work, and more importantly
so far I'm stuck for a way round it. I've tried

  put the long id of fld myField of cd myCard of stack
myStack into temp
  myHandler temp

but it has exactly the same effect.

What am I doing wrong?




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

___
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: When closed, does a substack whose destroyStack is true remains in memory ?

2006-03-22 Thread Ken Ray
On 3/22/06 6:32 AM, André.Bisseret [EMAIL PROTECTED] wrote:

 Hi !
 
 As far as a substack is concerned,
 from the Doc (on save, close, destroyStackŠ)
 I understand that :
 even if its destroyStack property is set to true,
 If I save and close this substack while the main stack remains opened,
 then this substack remains in memory.

Yes, this is true - actually when you loaded the mainstack, all of its
substacks get loaded into memory automatically and can't be purged until the
mainstack itself is closed.

 P.S. : by the way, is it a means to check if a closed stack (or
 substack) is still in memory ?

Well, as I mentioned above, closed substacks are still in memory if the
mainstack is, so you could check for the mainstack in the windows or in
the stacks to see if it is in memory.

You can also use the mainstacks to get a list of stacks that are in
memory.


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

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


Re: Keeping windows together on Windows XP

2006-03-22 Thread Ken Ray
On 3/22/06 4:33 PM, Graham Samuel [EMAIL PROTECTED] wrote:

 Is it just me, or is it rather difficult to keep a number of
 different windows (stacks) together on Windows XP without the
 possibility of a window from another application getting in between
 them? For example, I have a mainstack, a couple of palettes, and a
 kind of homegrown backdrop. I can force the palettes to the front,
 the mainstack to the middle and the backdrop to the back, but I can't
 stop for example a Windows Explorer window from getting in between
 the two non-palette stacks. What I would like is to take charge of
 the whole front of the screen while my app is active - is this
 possible? Haven't found anything about it in the RR docs. I know
 about the resumeStack message but I'm not sure if I could use it to
 accomplish what I want.

This is a problem on OS X too, Graham. Unfortunately there isn't a way to do
this without reopening all of your stacks as soon as one gets a resumeStack
message (and that has other unwanted effects - both visual and not).

However you're not alone - this happens with Word, Excel, and a whole host
of other applications that have multiple windows up.


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

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


Message Box ?

2006-03-22 Thread thulme

Hi All,

I'm a newbie reading through Dan Shafer's ebook. My question has to do with
page 273  of the book which states that typing (open file MyToDo.txt) into
the message box will create a file if none exisits. Nothing gets created
when I do this. All that happens is the line I entered gets highlighted. No
file created and no error message is displayed in the result frame. I have
entered other commands and they work ok. Can anyone (Dan) explain what I'm
doing wrong?

Regards,
Tim
--
View this message in context: 
http://www.nabble.com/Message-Box--t1327177.html#a3542723
Sent from the Revolution - User forum 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: Message Box ?

2006-03-22 Thread Devin Asay

On Mar 22, 2006, at 3:40 PM, thulme wrote:



Hi All,

I'm a newbie reading through Dan Shafer's ebook. My question has to  
do with
page 273  of the book which states that typing (open file  
MyToDo.txt) into
the message box will create a file if none exisits. Nothing gets  
created
when I do this. All that happens is the line I entered gets  
highlighted. No
file created and no error message is displayed in the result frame.  
I have
entered other commands and they work ok. Can anyone (Dan) explain  
what I'm

doing wrong?


One common reason for this to happen is that you do not have write  
permission for the defaultFolder. (It's more of a problem on Unix and  
Mac OS X systems.) On startup, the defaultFolder property is always  
set to the folder that contains the Revolution application. Not all  
users on a system will have write access to that folder. Try changing  
the defaultFolder to a folder that you do have write permission for  
(I'm assuming OSX here):


set the defaultFolder to /Users/myusername/Desktop/

Then try it again. Chances are it will work this time. If this  
doesn't fix it, try switching to the multi-line message box and enter:


openFile myfile.txt
put the result

Then hit the enter key. If there is an error 'the result' should  
contain information about the error.


HTH

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: Message Box ?

2006-03-22 Thread thulme

set the defaultFolder to /Users/myusername/Desktop/

Then try it again. Chances are it will work this time. If this  
doesn't fix it, try switching to the multi-line message box and enter:

openFile myfile.txt
put the result

Then hit the enter key. If there is an error 'the result' should  
contain information about the error.

Verified I have permissions (Win XP) and entered the two line above in
multiline.

I get:  Message execution error:
 Error description: Handler: can't find handler

If I enter closeFile command i get result of : file not open

--
View this message in context: 
http://www.nabble.com/Message-Box--t1327177.html#a3543393
Sent from the Revolution - User forum 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: Message Box ?

2006-03-22 Thread thulme

Figured it out - have to hit enter key twice - then file shows up in my
defalut folder.
Go figure!

Thanks Devin
--
View this message in context: 
http://www.nabble.com/Message-Box--t1327177.html#a3543696
Sent from the Revolution - User forum 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


numberFormat

2006-03-22 Thread liamlambert

I have this bit of code the numberFormat
is not giving me two zeros after the decimal point
Why ???
thanks in advance

global gConID
 get fld showid
  put it into tshowid
  set the numberFormat to #0.00
  put SELECT sum (child) FROM Booking where showid = ' tshowid   
' into tChild

  put revdb_querylist(,,gConID,tChild) into tcSeats
  put tCseats into fld child
  put SELECT sum (adult) FROM Booking where showid = ' tshowid   
' into tAdult

  put revdb_querylist(,,gConID,tAdult) into tAseats
  put tAseats into fld Adult
  put SELECT sum (cashDb) FROM Booking where showid = ' tshowid   
' into tCash

  put revdb_querylist(,,gConID,tCash) into tCashFld
  put tCashFld into fld cash

Liam Lambert
[EMAIL PROTECTED]
IRELAND


___
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: Message Box ?

2006-03-22 Thread wouter

On 23 Mar 2006, at 00:25, thulme wrote:


openFile myfile.txt
put the result




I get:  Message execution error:
 Error description: Handler: can't find handler


Hi Thulme,

This means you should have a handler  on openFile 
or you can enter in the msg box:

open file myfile.txt

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


Re: numberFormat

2006-03-22 Thread Chipp Walters

Hi Liam,

You need to perform a math action on it first.

So, do:

put it into tShowid
add 0 to tShowID

should do it.

liamlambert wrote:

I have this bit of code the numberFormat
is not giving me two zeros after the decimal point
Why ???
thanks in advance

global gConID
 get fld showid
  put it into tshowid
  set the numberFormat to #0.00
  put SELECT sum (child) FROM Booking where showid = ' tshowid   ' 
into tChild

  put revdb_querylist(,,gConID,tChild) into tcSeats
  put tCseats into fld child
  put SELECT sum (adult) FROM Booking where showid = ' tshowid   ' 
into tAdult

  put revdb_querylist(,,gConID,tAdult) into tAseats
  put tAseats into fld Adult
  put SELECT sum (cashDb) FROM Booking where showid = ' tshowid   
' into tCash

  put revdb_querylist(,,gConID,tCash) into tCashFld
  put tCashFld into fld cash

Liam Lambert
[EMAIL PROTECTED]
IRELAND


___
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




--
--
Chipp Walters
www.altuit.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


FTP and cross platform issues...

2006-03-22 Thread John Patten
Hello All...

I searched the archives and could not come up with a solution to an FTP problem 
I'm having.

I have an OSX Tiger Server configured for FTP. Everything works like it 
supposed to with both Fetch (Mac side) and FTP Commander on the WinXP side. No 
problem.

However, I've been trying to get the WindowsXP box and Rev to upload a simple 
text file to the server. No success. I have tried Andre FTP utility, a couple 
others from the member area, my own hacks using the examples in the rev docs, 
and finally Chip's FTPer utility. None of them would work. The best I could see 
was that I was getting a time out error.

Then I fired up an OSX Tiger Powerbook. I tried Chip's FTPer utility again, 
same info as on the WindowsXP machine, and it worked without any problem.

Anybody have an idea why it would work on a MAc and not work on the WindowsXP 
box?

Thanks in advance!!

John Patten
SUSD
___
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


numberFormat

2006-03-22 Thread liamlambert

Thanks Chipp
Liam Lambert
[EMAIL PROTECTED]
IRELAND


___
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: FTP and cross platform issues...

2006-03-22 Thread Mark Schonewille

Hi John,

Make sure that both the server and the client (Rev) are set to 
use either passive or active FTP. If you enable passive FTP, you 
have to set Rev's ftp mode to passive as well:


libURLSetFTPMode passive

You may have to set the socketTimeoutInterval to a really big 
number.


If you'd like to do a test, I'm working on an FTP client. 
Contact me off-list if you would like to give it a try.


Best,

Mark



John Patten wrote:

Hello All...

I searched the archives and could not come up with a solution to an FTP problem 
I'm having.

I have an OSX Tiger Server configured for FTP. Everything works like it 
supposed to with both Fetch (Mac side) and FTP Commander on the WinXP side. No 
problem.

However, I've been trying to get the WindowsXP box and Rev to upload a simple 
text file to the server. No success. I have tried Andre FTP utility, a couple 
others from the member area, my own hacks using the examples in the rev docs, 
and finally Chip's FTPer utility. None of them would work. The best I could see 
was that I was getting a time out error.

Then I fired up an OSX Tiger Powerbook. I tried Chip's FTPer utility again, 
same info as on the WindowsXP machine, and it worked without any problem.

Anybody have an idea why it would work on a MAc and not work on the WindowsXP 
box?

Thanks in advance!!

John Patten
SUSD


--

Consultant and Software Engineer
mailto:[EMAIL PROTECTED]
http://www.economy-x-talk.com

eHUG coordinator
mailto:[EMAIL PROTECTED]
http://www.ehug.info

Advertise with us and reach 1000 truely interested internet 
users every month. See http://economy-x-talk.com/advertise.html 
for more information.


___
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


the shiftkey suddenly doesn't work

2006-03-22 Thread Sieg Lindstrom
I just replaced a crashed hard drive and after reinstalling Revolution,  the
shiftKey and the optionKey return up even if my shift or option key is
down. The shift and option keys work fine, but Revolution doesn't seem to
know what the state of the keys is. Thanks in advance for any suggestions!

Sieg Lindstrom


___
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: MVC in Rev?

2006-03-22 Thread HyperChris
to my fellow ludites also not familiar with that particular acronym ...

http://en.wikipedia.org/wiki/Model-view-controller

Looks like great fun! I can't wait to buy 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: Arming a pulldown menu button -- a hack

2006-03-22 Thread Sarah Reichelt
On 3/23/06, Sivakatirswami [EMAIL PROTECTED] wrote:
 As we know, at least on Mac OSX, for a pulldown menu button, setting
 the autoArm, autohilite and Armed to true and applying a different
 icon to those states does not take effect. Nothing happens.. Worse:
 In fact one of those properties, if set to true, interferes with the
 proper action (menu does not open) So, we see now why those
 properties are not offered in the inspector for such menu buttons.

 So, I tried this work around... and it seems to work just  fine...

 on mousewithin
set the icon of me to 1115
 end mousewithin
 on mouseleave
 set the icon of me to 1114
 end mouseleave

 on menuPick pItemChosen

 switch pItemChosen
 ## do stuff here

 end switch
 end menupick

 Does anyone know if there are any caveats to this? the two mouse
 activity handlers to not see to interfere at all with functionality.


You may want to add a mouseRelease handler as well. This allows for
the user mousing down on the control, moving off it and mousing up.
I'm not sure that mouseLeave would get sent in those circumstances.

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


Re: Weirdness Passing Messages

2006-03-22 Thread Mark Smith

Is it a context problem?

It might be worth trying to replace
put MessageY into me
with
put MessageY into long name of control

I've always thought that 'me' always referred to the control whose  
script it appears in, but that's an assumption, not  necessarily a  
fact...


Mark

On 22 Mar 2006, at 19:14, David Burgun wrote:


Hi,

function ListenForMessages theMessageID,theHanlderLocation

Adds to an Array (stored in a GlobalProperty of StackUtil) as so:

MessageArray[theMessageID] =  theHanlderLocation

If theMessageID is already in the Array and the Location is not  
already in the data part of the array, then it is appended, so the  
array looks like this:


   Key  Data
MessageX  ObjectX of Card 2 of Stack StackMain,ObjectY  
of Card 2 of Stack StackMain


and is called like so:

ListenForMessages(MessageX,the long name of me)


function PutMessage theMessageID

Looks up theMessageID in the Array built in ListenForMessages and  
calls (via a send statement) the handler with the name  
theMessageID at the location(s) specified in the data part of the  
array.


As I said the Message handling functions seem to work fine in  
general, but not when PutMessage() is called from within a message  
handler OR when called from a different card that the one that  
called the initial message. Not sure which!


Thanks a lot
All the Best
Dave

On 22 Mar 2006, at 19:02, Mark Smith wrote:


What do these functions do?

Mark

On 22 Mar 2006, at 18:51, David Burgun wrote:


PutMessage()
ListenForMessages()


___
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: Keeping windows together on Windows XP

2006-03-22 Thread Jim Ault
Actually, I use the F10 key... tap it twice and Expose will show/bring to
the front all the windows in the frontmost app.

Also, tab-switching by ( cmd-tab, cmd-shift-tab ) which will show the tab
display, then bring you back the the left-most app.


Jim Ault
Las Vegas


On 3/22/06 2:49 PM, Ken Ray [EMAIL PROTECTED] wrote:

 On 3/22/06 4:33 PM, Graham Samuel [EMAIL PROTECTED] wrote:
 
 Is it just me, or is it rather difficult to keep a number of
 different windows (stacks) together on Windows XP without the
 possibility of a window from another application getting in between
 them? For example, I have a mainstack, a couple of palettes, and a
 kind of homegrown backdrop. I can force the palettes to the front,
 the mainstack to the middle and the backdrop to the back, but I can't
 stop for example a Windows Explorer window from getting in between
 the two non-palette stacks. What I would like is to take charge of
 the whole front of the screen while my app is active - is this
 possible? Haven't found anything about it in the RR docs. I know
 about the resumeStack message but I'm not sure if I could use it to
 accomplish what I want.
 
 This is a problem on OS X too, Graham. Unfortunately there isn't a way to do
 this without reopening all of your stacks as soon as one gets a resumeStack
 message (and that has other unwanted effects - both visual and not).
 
 However you're not alone - this happens with Word, Excel, and a whole host
 of other applications that have multiple windows up.
 
 
 Ken Ray
 Sons of Thunder Software
 Web site: http://www.sonsothunder.com/
 Email: [EMAIL PROTECTED]
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution


___
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


(no subject)

2006-03-22 Thread pmbrig
OK I did what you suggest, but it's not working:

put theHdr into fld formatPrintText
set the textFont of char 1 to -1 of fld formatPrintText to Bookman Old Style
set the textSize of char 1 to -1 of fld formatPrintText to 10
set the clipboarddata[html] to the htmltext of fld formatPrintText
-- set the clipboarddata[text] to theHdr
launch letterPath with wordpath

This still gives a paste (into Word for OSX, or into a hypercard stack, or into 
Word 4 for OS9) in the textFont and textSize of the default stack properties, 
not what I set the properties of the field text to. I even tried using

set the clipboarddata[html] to the htmltext of char 1 to -1 of fld 
formatPrintText

and that doesn't do it either.

(Just for fun, I tried setting the stack textFont/textSize properties to empty, 
and my paste then was in Lucia Grande size 11 -- hunh?)

Next experiment:

put theHdr into fld formatPrintText
set the textFont of char 1 to -1 of fld formatPrintText to Bookman Old Style
set the textSize of char 1 to -1 of fld formatPrintText to 10
put the htmlText of char 1 to -1 of fld formatPrintText into fld testFld
exit to top

This shows the htmltext of the chunk in the test field, namely:

pIphegenia Aardvaark/p
p123 So. Huntington Ave,/p
pBoston, MA  02114/p

So apparently the htmlText property isn't giving font or size info...

I tried the rtfText of the field and of char 1 to -1 of the field and I get

{\rtf\mac 
Iphegenia Aardvaark
\par 123 So. Huntington Ave,
\par Boston, MA  02114}

So the rtfText property doesn't give font or size info either.

The rev documentation says (under HTMLtext):
Revolution uses a subset of HTML tags that includes font, size, style, and text 
color information.

So is this a bug? Is it something about my version of Dreamcard?

-- Peter M. Brigham

__

Original message:

[EMAIL PROTECTED] wrote:
 I am using a button to put a text field on the clipboard. I set the
 clipboarddata[html] to the htmltext of the field, then when I try
 to paste into MS Word, my field formatting does not come through.
 Instead, the default textFont and textSize for the stack is what
 determines the format of the pasted text -- I have experimented with
 this, and changing the field properties has zero effect on the paste,
 whereas changing the stack properties changes the paste. As an added
 complication, though, setting the textFont of the stack works
 perfectly, but when I set the textSize of the stack to 10, it comes
 through as 12. All other sizes work the way they are supposed to:
 stack textSize of 9 results in size 9 text in the paste, stack
 textSize of 14 comes through as 14, etc. Only stack textSize of 10
 comes through as 12.
 
 here's the relevant portion of the script:
 
 put fld wordPath into wordpath
 put fld letterPath into letterPath
 put theHdr into fld formatPrintText
 set the textFont of fld formatPrintText to Bookman Old Style
 set the textSize of fld formatPrintText to 10
 set the clipboarddata[html] to the htmltext of fld formatPrintText
 set the clipboarddata[text] to theHdr -- * see below
 launch letterPath with wordpath
 
 * (I've tried not setting the clipboarddata[text] and it makes no
 difference.)
 
 I'm puzzled. The clipboarddata[html] clearly is not getting set
 properly. I am using Dreamcard v2.6.1 build 152 on a Mac iBook
 running OSX v10.4.5, and Word for Mac v11.2.3. The problem with the
 size 10 getting seen as size 12 appears to be a Word problem, since
 the paste into another text app comes through as expected.
 
 Why doesn't the htmlText of the field get onto the clipboard? Why in
 the world should the default text properties of the stack have any
 effect here?

When you set the text properties of a field, the text it contains has no 
styling of its own, it uses inheritance of the field's properties to 
give an appearance of styling. Therefore, when you copy that text, there 
is no particular htmltext assigned to it.

To fix that, set the styling of the actual characters in the text 
itself, which does assign html properties to the text:

set the textfont of char 1 to -1 of fld formatPrintText \
  to Bookman Old Style
set the textsize of char 1 to -1 of fld formatPrintText to 10

This should give the results you are looking for.

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


(no subject)

2006-03-22 Thread pmbrig
Thanks Andre -- this solves the practical problem (except for Word's inability 
to actually paste size 10 text in any font -- ah, Microsoft!) -- it gives the 
proper formatting as specified in the formatting field.

I'm still curious about the failure of the htmltext function to include font  
size info. Is the documentation just plain wrong?

-- Peter M. Brigham

_

Original message:

Hi Peter,

 Why doesn't the htmlText of the field get onto the clipboard?
I recently discovered that, after select text of fld suchField :

1 - put the selectedText into fld essai  -- doesn't keep format 
when paste
2 - put the selection into fld essai --  idem
3 - set the clipboardData[text] to the selectedText -- idem
4 - set the clipboardData[text] to the selection --  idem
BUT :
5 - copy the selectedText -- paste in Word remains formatted
6 - copy the selection --  remains formatted
(Mac G4 ; 0SX 10.2.8 ; RR ; Word 10.1.0)

Best regards from Grenoble
André
___
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: Keeping windows together on Windows XP

2006-03-22 Thread Ken Ray
On 3/22/06 8:40 PM, Jim Ault [EMAIL PROTECTED] wrote:

 Actually, I use the F10 key... tap it twice and Expose will show/bring to
 the front all the windows in the frontmost app.
 
 Also, tab-switching by ( cmd-tab, cmd-shift-tab ) which will show the tab
 display, then bring you back the the left-most app.

Didn't know this... good to know, Jim!

What I meant was that I didn't see other apps providing this ability to
bring all of their windows to the front and so Graham shouldn't worry too
much about providing that feature in *his* software.

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

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


Re: Keeping windows together on Windows XP

2006-03-22 Thread Jim Ault
so true.
On OSX I think you can do the system call to System Events via AppleScript,
but this is certainly not a good solution, since users may not be accustomed
to this behavior.

Jim Ault
Las Vegas


On 3/22/06 7:04 PM, Ken Ray [EMAIL PROTECTED] wrote:

 On 3/22/06 8:40 PM, Jim Ault [EMAIL PROTECTED] wrote:
 
 Actually, I use the F10 key... tap it twice and Expose will show/bring to
 the front all the windows in the frontmost app.
 
 Also, tab-switching by ( cmd-tab, cmd-shift-tab ) which will show the tab
 display, then bring you back the the left-most app.
 
 Didn't know this... good to know, Jim!
 
 What I meant was that I didn't see other apps providing this ability to
 bring all of their windows to the front and so Graham shouldn't worry too
 much about providing that feature in *his* software.
 
 Ken Ray
 Sons of Thunder Software
 Web site: http://www.sonsothunder.com/
 Email: [EMAIL PROTECTED]
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution


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


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

2006-03-22 Thread Robert Sneidar
Check to see if passive mode is enabled on the client. This is  
typically what goes wrong. Whatever it is set to on the Win client,  
change it.


Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On Mar 22, 2006, at 3:54 PM, [EMAIL PROTECTED]  
wrote:



Hello All...

I searched the archives and could not come up with a solution to an  
FTP problem I'm having.


I have an OSX Tiger Server configured for FTP. Everything works  
like it supposed to with both Fetch (Mac side) and FTP Commander on  
the WinXP side. No problem.


However, I've been trying to get the WindowsXP box and Rev to  
upload a simple text file to the server. No success. I have tried  
Andre FTP utility, a couple others from the member area, my own  
hacks using the examples in the rev docs, and finally Chip's FTPer  
utility. None of them would work. The best I could see was that I  
was getting a time out error.


Then I fired up an OSX Tiger Powerbook. I tried Chip's FTPer  
utility again, same info as on the WindowsXP machine, and it worked  
without any problem.


Anybody have an idea why it would work on a MAc and not work on the  
WindowsXP box?


Thanks in advance!!

John Patten
SUSD



___
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: FTP and cross platform issues...

2006-03-22 Thread Mark Wieder
John-

 libURLSetFTPMode passive

If you're testing things you might want to set both the server and the
client NOT to use passive mode, and make sure there aren't any
firewalls or routers in the way that might block ports 20 and 21.

Also, if you've got the internal firewall running on the XP box (you
shouldn't) then turn it off.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


Syntax Highlighting Routine - Need help

2006-03-22 Thread Garrett Hylltun

Rev 2.6.1

Greetings,

I made a routine for checking a FIELD from start to end for html tags, 
then to change their color.  Worked great!  That is with a small html 
file of maybe 4000 characters.  But then I ran a html file that was 
about 28000 characters, and found my routine was not so good after all.


the FIELD handlers;

on rawKeyUp
  SubHighlight
end rawKeyUp

on backspaceKey
  SubHighlight
end backspaceKey

might not be best, but I don't know if there's any other way to keep 
track of the contents of the FIELD, except to check on keyup events.


Here's the sub;

on SubHighlight
  lock screen
  put number of characters of field fHtmlEditor into varTotal
  set the textstyle of char 1 to varTotal of field 1 to plain
  put 1 into varCounter
  put 1 into varStartChunk
  put 1 into varEndChunk
  repeat until varStartChunk = varTotal or varGetOut is 1
put varCounter into field fStatusBar
put char varEndChunk to varEndChunk of field 1 into varTemp
put empty into varTagType
if varTemp is  then
  put varEndChunk + 3 into varTemp
  put char varEndChunk to varTemp of field 1 into varTemp
  if varTemp is !-- then
put comment into varTagType
  end if
  put varEndChunk + 6 into varTemp
  put char varEndChunk to varTemp of field 1 into varTemp
  if varTemp is script then
put script into varTagType
  end if
  put varEndChunk + 7 into varTemp
  put char varEndChunk to varTemp of field 1 into varTemp
  if varTemp is /script then
put script into varTagType
  end if
  put varEndChunk + 1 into varEndChunk
  put char varEndChunk to varEndChunk of field 1 into varTemp
  repeat until varTemp is  or varGetOut is 1 or varCounter = 
varTotal

put varCounter into field fStatusBar
put char varEndChunk to varEndChunk of field 1 into varTemp
if varTemp is  then
  put 1 into varGetOut
end if
if varTemp is  then
  if varTagType is comment then
set the textstyle of char varStartChunk to varEndChunk of 
field 1 to Italic
set the foregroundColor of char varStartChunk to 
varEndChunk of field 1 to #404040

  else if varTagType is script then
set the foregroundColor of char varStartChunk to 
varEndChunk of field 1 to #ff

  else
--set the textstyle of char varStartChunk to varEndChunk of 
field 1 to Bold
set the foregroundColor of char varStartChunk to 
varEndChunk of field 1 to #FF

  end if
end if
put varEndChunk + 1 into varEndChunk
put varCounter + 1 into varCounter
--put varTotal  /  varCounter into field fStatusBar
  end repeat
else
  put varStartChunk + 1 into varStartChunk
  put varEndChunk + 1 into varEndChunk
end if
put varCounter + 1 into varCounter
put varEndChunk into varStartChunk
--put varTotal  /  varCounter into field fStatusBar
  end repeat
  unlock screen
end SubHighlight

It's not optimized code and there's some extra stuff in there for 
testing.  And I know it's not pretty code either, it's merely a few 
hours worth of thinking and trying code.


I do not know of any other way to check the contents of the FIELD 
without having to check the entire contents.


Does anyone have any ideas, thoughts, suggestions or have done some code 
like this before, that could help me out with this?


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


Re: revXMLfindNodecontent

2006-03-22 Thread Joel Guillod

Throw some votes on it if you like :-)


Also do it for features request/bug ID 1893: revInsertXMLNode and  
XSLT routines ID 2809.

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