Re: screen resolution problems

2004-12-10 Thread Jonathan Cooper
On Wednesday, December 8, 2004, at 02:56  PM, Chipp Walters wrote:
The easiest solution is to check on startup the screen resolution (get 
the screenRect) and if it's not big enough popup an answer warning 
dialog telling the user to please quit and change resolutions and 
relaunch.

[snip]
[EMAIL PROTECTED] wrote:
Hi,
I have been developing software for testing in schools - built as a 
windows standalone.  The program is made for a 1024 x 768 screen size 
(the card filling about 2/3rds of the screen with a backdrop) - the 
stack is quite complex, it contains lots script, lots of cards, each 
with different fonts, buttons and fields.  Some of the computers we 
wanted to use are networked and set to a screen resolution of 800 x 
600.   Can anyone suggest a good solution to this?  The easiest 
solution would be to change the resolution of the host computers 
during testing - at the end change it back.  Would this be an okay 
thing to do and does anyone have a script that would allow me to do 
this?   An alternative solution would be to change everything on the 
stack?  Is this solution the best and is there any easy way to do 
this?

What about a variation of Chipp's suggestion? (Not tested,but it should 
work) :
Create a small standalone that just changes the screen resolution if 
necessary then launches the REAL standalone, then quits itself.

Jonathan Cooper
Manager of Information / WWW
Art Gallery of New South Wales   Art Gallery website:
Sydney, Australiahttp://www.artgallery.nsw.gov.au
Tel +61 2 9225 1796 Personal website:
Fax +61 2 9221 5129  http://www.artgallery.nsw.gov.au/sub/jcooper
Jonathan Cooper
Manager of Information / WWW
Art Gallery of New South Wales   Art Gallery website:
Sydney, Australiahttp://www.artgallery.nsw.gov.au
Tel +61 2 9225 1796 Personal website:
Fax +61 2 9221 5129  http://www.artgallery.nsw.gov.au/sub/jcooper
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


simple applescript?

2004-12-10 Thread Chipp Walters
Hi all. Need a bit of help here...why doesn't this work?
on mouseUp
  answer file 
  if it is empty then exit to top
  put it into pPDFpath
  replace / with : in pPDFpath
  if char 1 of pPDFpath is : then delete char 1 of pPDFpath
  put tell application  quote Finder  quote  cr into tScript
  put set the file type of  quote pPDFpath quote \
 to  quote PDF  quote cr after tScript
  put end tell after tScript
  do tScript as Applescript
  put the result into sError
end mouseUp
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


are we beaten yet?

2004-12-10 Thread xbury . cs
Check out 

http://slashdot.org/articles/04/12/09/2323242.shtml?tid=100tid=152tid=1

According to it, PDAs will get flash software and developpers before we 
do!

It would be great to just port a stack to palm and have it work. Old 
newton
dreams again...

X


-
Visit us at http://www.clearstream.com
IMPORTANT MESSAGEInternet communications are not secure and therefore
Clearstream International does not accept legal responsibility for the
contents of this message.The information contained in this e-mail is
confidential and may be legally privileged. It is intended solely for the
addressee. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically states
them to be the views of Clearstream International or of any of its
affiliates or subsidiaries.END OF DISCLAIMER
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: have we eaten yet?

2004-12-10 Thread Klaus Major
Hi Xavier,
Check out
http://slashdot.org/articles/04/12/09/2323242.shtml? 
tid=100tid=152tid=1

According to it, PDAs will get flash software and developpers before we
do!
Yes, sad but true...
It would be great to just port a stack to palm and have it work. Old
newton dreams again...
If only Jan Schenkel would share his secret on how to clone fine  
developers!!! ;-)

Imagine having 2 or more Tuviahs!!!
Blasting MicroMedia (and others) away would be snap then :-D
X
Best
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] young developer

2004-12-10 Thread Jan Schenkel
--- Sarah Reichelt [EMAIL PROTECTED] wrote:
 Hi All,
 
 Sorry for the irrelevant email but I had to share my
 news with you :-)
 My middle son (aged 12) just graduated from primary
 school yesterday 
 and was awarded the school's technology prize. Among
 his list of 
 accomplishments that was read out, was the fact that
 he has now started 
 making his own games. WOW! said the person giving
 the speech.
 
 You'll never guess what he uses to write his
 games... one of them even 
 has a music track that he wrote in GarageBand.
 
 Anyone who wants to have a look can go to 
 http://www.troz.net/jacksgames/. I'm sure he would
 welcome any 
 feedback.
 
 Cheers,
 Sarah
 

Hi Sarah,

Never announce that sort of thing while I'm having
breakfast : I was almost late for work, trying to
defeat that puny Jedi !
Nice job ; one remark though : in the version with
music, if you close the window, the exe doesn't quit
and the music keeps playing.

Jan Schenkel.

=
As we grow older, we grow both wiser and more foolish at the same time.  (La 
Rochefoucauld)



__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: simple applescript?

2004-12-10 Thread Ben Rubinstein
Chipp wrote:

 Hi all. Need a bit of help here...why doesn't this work?
 
 on mouseUp
  answer file 
  if it is empty then exit to top
  put it into pPDFpath
  replace / with : in pPDFpath
  if char 1 of pPDFpath is : then delete char 1 of pPDFpath
  put tell application  quote Finder  quote  cr into tScript
  put set the file type of  quote pPDFpath quote \
 to  quote PDF  quote cr after tScript
  put end tell after tScript
  do tScript as Applescript
  put the result into sError
 end mouseUp


Hi Chip,

I think you need file before the path, ie

  put set the file type of file  quote pPDFpath quote \
 to  quote PDF  quote cr after tScript

HTH,
 
  Ben Rubinstein   |  Email: [EMAIL PROTECTED]
  Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
  http://www.cogapp.com|  Fax  : +44 (0)1273-728866


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


Re: simple applescript?

2004-12-10 Thread Dave Cragg
On 10 Dec 2004, at 10:03, Chipp Walters wrote:
Hi all. Need a bit of help here...why doesn't this work?
on mouseUp
  answer file 
  if it is empty then exit to top
  put it into pPDFpath
  replace / with : in pPDFpath
  if char 1 of pPDFpath is : then delete char 1 of pPDFpath
  put tell application  quote Finder  quote  cr into tScript
  put set the file type of  quote pPDFpath quote \
 to  quote PDF  quote cr after tScript
  put end tell after tScript
  do tScript as Applescript
  put the result into sError
end mouseUp
Just guessing, but don't you need a file reference in there somewhere. 
Perhaps this:

put set the file type of  quote file  pPDFpath quote \
 to  quote PDF  quote cr after tScript
Or is that one of those cases when you need alias instead of file.
Dave
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: parsing comments in scripts

2004-12-10 Thread Alex Tweedly
At 23:01 09/12/2004 -0800, Mark Wieder wrote:
All-
In the last few days I've started to realize how many ways comments
and non-comments that look like comments can be embedded into lines of
script code. In trying to get to what's actually code I've tried
getting the offset of a -- string, which has complications if it is
quoted. So I tried looking for quoted text and seeing if the comment
was after quoted text - this also presents problems. We can have:
#comment
text --comment
text more text -- still more
text more text --comment
text more text text -- text
text more text text still more --comment
(did I leave any out)
text # comment
and variants of that.
I came across an interesting combination of tokens and words: tokens
ignore comments, words don't make that distinction. However, the token
delimiter isn't necessarily where I want it to be:
put the tokens of put  quote  something  quote  --comment
results in
put something
without the trailing quote.
That's not quite what I see - I get just
put something
i.e. without either quote; that makes sense because once the line is 
tokenized, the quotes are unnecessary.

But using tokens as counters and words to get the text works. Bizarre
but true (AFAIKT).
Sorry Mark, it won't work in all cases. In particular, any case where there 
are more tokens than words.

put a+b into c
has 6 tokens
  put
  a
  +
  b
  into
  c
but only 4 words
  put
  a+b
  into
  c
I don't have any suggestions, yet  but it's an intriguing question, so 
I'll use it as an excuse to avoid gardening this afternoon :-)

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


Re: parsing comments in scripts

2004-12-10 Thread Robert Brenstein
#comment
text --comment
text more text -- still more
text more text --comment
text more text text -- text
text more text text still more --comment
(did I leave any out)
plenty :) although it may be that only MetaCard allows to use both 
quoting modes.

from the above set
text more text -- still more --comment
same with hash
text #comment
text more text # still more
text more text #comment
text more text text # text
text more text text still more #comment
text more text # still more #comment
mixed instances
text more text # still more --comment
text more text -- still more #comment
I also use the following combinations to mark debugging code
text text -- #comment
text text #-- comment
You could also consider other combo cases
text more text --- still more #comment
text more text -- still more -- still more #comment
text more text -- # -- still more #comment
text more text ### still more #comment
In these cases it matters whether you first check for # or -- so you 
should really check both cases and see which has has lower offset.

In general, I think you need to use the offset function for each line 
and check for either -- or # and count whether there is an even 
number of double-quotes before it (setting for example itemdelim to 
quote and get the item count). If count is odd, you are within 
literal and should continue. If count is even, then you hit a 
beginning of comment. I think this approach will work with all cases.

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


Re: parsing comments in scripts

2004-12-10 Thread Richard Gaskin
Robert Brenstein wrote:
#comment
text --comment
text more text -- still more
text more text --comment
text more text text -- text
text more text text still more --comment
(did I leave any out)

plenty :) although it may be that only MetaCard allows to use both 
quoting modes.
Make that three:  recently (v2.5?) they added support for multiline 
C-style comments: /* */

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Christmas Special - we'll even solve your christmas shopping problem

2004-12-10 Thread Heather Nagey
Dear list members,

www.runrev.com/revbears.php

Having a tough day? Code not doing what it should? Need a mascot to turn
things around? Sometimes what you need is not technical support, but a hug.
These bears are designed to fill this need in every developers' life. Your
unique revBear will provide 24 hour support from your desktop or pocket.
They are excellent and sympathetic listeners - once you explain that knotty
problem in language your bear can understand, you will find it a snip to
write the code.

A revBear is not just for Christmas: he or she will be your friend for life!

Lovingly handcrafted by renowned collectors-bear maker, Tiiu-Imbi Miller,
the bears are 4 tall, made of high quality mohair with shiny glass eyes,
fully jointed and wearing a Runtime Revolution t-shirt. Each bear is hand
crafted and individualized by using various fabrics and facial expressions.
They are collectors' bears and not suitable for children under 14 years of
age.

These bears - without the customized Power to the Developer t-shirts -
normally retail for £25 each. We're selling them to you for only £20 or
$30(US) inclusive of post and packing. A limited quantity of these bears are
available to ship before Christmas so it's strictly first-come,
first-served - order now to avoid disappointment! Your bear is waiting for
you to give it both a loving home and a fulfilled and interesting life!

Happy Holidays to one and all

Heather
-- 

** For a faster response to all licensing, support, and technical issues,
please now send mail to [EMAIL PROTECTED] **

Heather Nagey ~ [EMAIL PROTECTED] ~ http://www.runrev.com/
Runtime Revolution - User-Centric Development Tools
Tel +44 (0) 870 747 1165 Fax +44 (0) 845 4588487
~~~ Check our web site for new Revolution editions  special offers ~~~

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


Re: screen resolution problems

2004-12-10 Thread Frank D. Engel, Jr.
Except that if it quits right away, then what is left to change the 
resolution back?  It should stick around and wait for the other 
standalone to exit, then restore the original screen resolution.

Not a bad idea, really...
On Dec 10, 2004, at 3:53 AM, Jonathan Cooper wrote:
On Wednesday, December 8, 2004, at 02:56  PM, Chipp Walters wrote:
The easiest solution is to check on startup the screen resolution 
(get the screenRect) and if it's not big enough popup an answer 
warning dialog telling the user to please quit and change resolutions 
and relaunch.

[snip]
[EMAIL PROTECTED] wrote:
Hi,
I have been developing software for testing in schools - built as a 
windows standalone.  The program is made for a 1024 x 768 screen 
size (the card filling about 2/3rds of the screen with a backdrop) - 
the stack is quite complex, it contains lots script, lots of cards, 
each with different fonts, buttons and fields.  Some of the 
computers we wanted to use are networked and set to a screen 
resolution of 800 x 600.   Can anyone suggest a good solution to 
this?  The easiest solution would be to change the resolution of the 
host computers during testing - at the end change it back.  Would 
this be an okay thing to do and does anyone have a script that would 
allow me to do this?   An alternative solution would be to change 
everything on the stack?  Is this solution the best and is there any 
easy way to do this?

What about a variation of Chipp's suggestion? (Not tested,but it 
should work) :
Create a small standalone that just changes the screen resolution if 
necessary then launches the REAL standalone, then quits itself.

Jonathan Cooper
Manager of Information / WWW
Art Gallery of New South Wales   Art Gallery website:
Sydney, Australiahttp://www.artgallery.nsw.gov.au
Tel +61 2 9225 1796 Personal website:
Fax +61 2 9221 5129  http://www.artgallery.nsw.gov.au/sub/jcooper
Jonathan Cooper
Manager of Information / WWW
Art Gallery of New South Wales   Art Gallery website:
Sydney, Australiahttp://www.artgallery.nsw.gov.au
Tel +61 2 9225 1796 Personal website:
Fax +61 2 9221 5129  http://www.artgallery.nsw.gov.au/sub/jcooper
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

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


___
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: parsing comments in scripts

2004-12-10 Thread MisterX
It may not be the fastest but its been quite reliable.
This is the comment stripper for Transcriptolator.
It removes the comments and THEN puts them back (optional...)

It works line be line...

hope it helps...

cheers
Xavier

--

-- Comments Handlers
-- a comment stripper rejoiner
-- made to prevent comments translation
-- left locally for local variable usage

--

local commentdata


on ClearLineComments
  put empty into commentdata[handler]
  put empty into commentdata[comment]
  put false into commentdata[has2ndcomment]
  put empty into commentdata[comment2]
  put true into commentdata[commentfinished]
end ClearLineComments

function StripComments aline
  local a,b
  local has2ndcomment,acomment2
  ClearLineComments
  -- clean up aline
  repeat while char 1 of aline is  
delete char 1 of aline
  end repeat
  repeat while char -1 of aline is  
delete char -1 of aline
  end repeat
  put offset(/*,aline) into a
  put offset(*/,aline) into b
  if a  0 then
if b  0 then
  put true into commentdata[commentfinished]
  get char a to b+1 of aline
  delete char a to b+1 of aline
else
  put false into commentdata[commentfinished]
  get char a to -1 of aline
  delete char a to -1 of aline
end if
put it into acomment
 
  else if commentdata[commentfinished] is false then
if b0 then
  -- middle of a comment
  put aline into acomment
  put empty into aline
else
  -- end of comment
  if b0 then
put char 1 to b+1 of aline into acomment
if length(aline)b+1 then 
  put char b+2 to -1 of aline into aline
end if
delete char 1 to b+1 of aline
put true into commentdata[commentfinished]
  end if
end if
  end if
   
  put offset(//,aline) into a
  if a  0 and offset(*/,aline)  a then
put true into commentdata[commentfinished]
get char a to -1 of aline
delete char a to -1 of aline
 
put true into has2ndcomment 
-- finally
if has2ndcomment is false then
  put it into acomment
  put false into has2ndcomment
else 
  put it into acomment2
  put true into has2ndcomment
end if
 
   -- this part is commented since this code was meant
   -- for not xtalk languages. untested...
--  else 
---- search for -- comments
-- 
--put offset(--,aline) into a
--if a  0 then
--  get char a to -1 of aline
--  delete char a to -1 of aline
--   
--  put true into has2ndcomment 
--  -- finally
--  if has2ndcomment is false then
--put it into acomment
--put false into has2ndcomment
--  else 
--put it into acomment2
--put true into has2ndcomment
--  end if
--end if
  end if
   
  repeat while char 1 of aline is  
delete char 1 of aline
  end repeat
  repeat while char -1 of aline is  
delete char -1 of aline
  end repeat
  put aline into commentdata[handler]
  repeat while char 1 of acomment is  
delete char 1 of acomment
  end repeat
  repeat while char -1 of acomment is  
delete char -1 of acomment
  end repeat
  put acomment into commentdata[comment]
   
  get has2ndcomment is true
  repeat while char 1 of acomment2 is  
delete char 1 of acomment2
  end repeat
  repeat while char -1 of acomment2 is  
delete char -1 of acomment2
  end repeat
  put it into commentdata[has2ndcomment]
  if it then put acomment2 into commentdata[comment2]
   
  return aline
end StripComments
  
function linewocomments
  -- return statement without comments
  return commentdata[handler]
end linewocomments

function LineComments
  get commentdata[has2ndcomment]
  if it then
get commentdata[comment]  commentdata[comment2]
  else 
get commentdata[comment]
  end if
  return it
end LineComments

function RestoreOrigComments
  local thisline,linecomment
  get commentdata[handler] into thisline
  put LineComments() into linecomment
  if linecomment is empty then return thisline
  else return thisline  linecomment
  ClearLineComments
end RestoreOrigComments


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


Re: Arrays in Rev

2004-12-10 Thread Richard Gaskin
Mark Brownell wrote:
This thing is not a real array within an array, it just acts like one. 
I hate to reinforce any perceptions of my curmudgeonliness, but for the 
benefit of newcomers here it may be useful to remind folks that while 
this indexed array is scripted, Rev's built-in associative arrays are 
just as real as associative arrays in any other language (and sometime 
more useful than strictly numerically indexed ones).

That said, your lib looks quite enticing. Good work!
--
 Richard Gaskin
 Fourth World Media Corporation
 __
 Rev tools and more: http://www.fourthworld.com/rev
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: parsing comments in scripts

2004-12-10 Thread Alex Tweedly
At 13:01 10/12/2004 +, Alex Tweedly wrote:
At 23:01 09/12/2004 -0800, Mark Wieder wrote:
I came across an interesting combination of tokens and words: tokens
ignore comments, words don't make that distinction. However, the token
delimiter isn't necessarily where I want it to be:
put the tokens of put  quote  something  quote  --comment
results in
put something
without the trailing quote.
That's not quite what I see - I get just
put something
i.e. without either quote; that makes sense because once the line is 
tokenized, the quotes are unnecessary.
Sorry - my error. I had already changed my script to investigate the case 
described later in my email (put a+b into c)

So (naturally enough, with hindsight) using something like
  token N
returns JUST the token itself, whereas
  token N to K
returns the intervening delimiters, but not any trailing one.
So we only need to restore any trailing quote, which is only needed if the 
final token started out being quoted, therefore

function StripComments theLine
  local theResult
  put token 1 to -1 of theLine into theResult
   if quote is in token -2 to -1 of theLine then put quote after theResult
  return theResult
end StripComents
should do it OK. Seems to work for my simple testing so far - but there may 
be cases I haven't thought of yet.

Unfortunately, it appears that token DOES include the C-style comment 
delimiters recently introduced, and they can be multi-line, so you'll need 
to do something more to deal with that.

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


Re: Arrays in Rev

2004-12-10 Thread Mark Brownell
Hi,
I fooled around with array's and pull-parsers for an easier solution.
Dimensional Arrays:
This thing is not a real array within an array, it just acts like one. 
It provides a way to store the data as MTML, like simple XML. This 
version is created with functions that can be copied to your own 
scripts.

Paste this into the message window:
go URL http://www.gizmotron.org/revolution/dimensionalList.rev;
  -- see stack scripts for functions
  -- function addArray dataString, spotArray, theData
  -- Note: addArray() will replace data that already exists in the 
dataString
  -- Example for adding multi-dimensional data:
  -- put addArray(myMTMLDataString, [1][4][5], John Doe) into field 
showMTML
  -- put addArray(myMTMLDataString, 1,4,5, John Doe) into field 
showMTML

  -- see stack scripts for functions
  -- function getArray dataString, spotArray
  -- Example for getting multi-dimensional data:
  -- put getArray(myMTMLDataString, [1][4][5]) into field showData
  -- put getArray(myMTMLDataString, 1,4,5) into field showData
An old eperiment from the past:
put: go url http://www.gizmotron.org/frogbreath.rev; into the message 
window with a active internet connection.

Regarding a comment about my pull-parser used in this I have been using 
it to run my MTML browser and speed. In that browser I was using set 
the htmlText of field offScreenField1 to thisVar and then using put 
the htmlText of field offScreenField1 to thatVar after that. This 
turned out to be the choke point in my parser. I needed to clean up 
fragments of html that didn't have completed syntax because only a 
smaller portion of the full markup was being used in the thisVar 
variable above. Rev has the ability to correct bad html. An example of 
that would be in grabbing the front part of an anchor tag while not 
including the end tag. the htmlText function adds it in so that the 
anchor works properly.

Once I used lock screen and unlock screen my cleanup script went from 
356 ticks to 0 ticks when parsing a once considered very large 
document. So it now looks like I have my solution to fast enough 
pull-parsing.

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


Re: parsing comments in scripts

2004-12-10 Thread Alex Tweedly
At 05:29 10/12/2004 -0800, Richard Gaskin wrote:
Make that three:  recently (v2.5?) they added support for multiline 
C-style comments: /* */
I love it when you get two, very different ways to create comments, and 
they can interact

Any votes for how to interpret
put asd  /* comment -- this here */ def  into msg
Choices are
1. The /* starts a comment, so the -- is part of that comment, and the */ 
ends it; i.e. it is   equivalent to   put asd  def into msg

2. The /* starts a comment, AND the -- starts a comment and everything 
after that is part of a comment - all the way to the end of the line.

The script interpreter thinks version 1, while the script colorizer thinks 
something very close to 2.
Sometimes it colors everything from the /* to the end of the line as a 
comment; other times it colors the /* and -- onwards (but not the word comment)

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


Re: Arrays in Rev

2004-12-10 Thread Troy Rollins
On Dec 10, 2004, at 2:44 PM, Alex Tweedly wrote:
It's real, but it is NOT *within* another array.
In Rev, you cannot do something equivalent to
put abc into a[1]
put  def into a[2]
put ghi into b[z]
put a into b[y]
which you can (with different syntax) in Perl, Python, (I think) Ruby, 

Or in Lingo -
myVar = [#check: [#this: [#out: Cool]]]
put myVar.check.this.out
-- Cool
put myVar[1][1][1]
-- Cool
People will debate the usefulness of such constructs, but I have yet to 
see anything in Transcript which is nearly so elegant for complex 
iterative evaluations. I strongly believe that Transcript needs this 
type of data structuring... but then of course, I don't let go easily 
to what I've learned and switch to what some Rev users would consider 
more native data management techniques which *are* available, though 
*much* more wordy to get there, and certainly do not iterate as 
elegantly.
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net

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


Re: testing on case

2004-12-10 Thread Dar Scott
On Dec 10, 2004, at 9:12 AM, [EMAIL PROTECTED] wrote:
put matchText( z, ^[A-Z])
I definitely get false returned.
matchText( mom, ^[A-Z])
==
false
matchText( Mom, ^[A-Z])
==
true
matchText( =Mom, ^[A-Z])
==
false
matchText( \Mom, ^[A-Z])
==
false
This is consistent with testing whether the first character is a 
capital (ASCII) letter.

The regex looks good.
But when I do this in the messagebox
put matchText( z, ^[aA-zZ])
I get true.  This is the way I would expect it to behave.
put matchText( mom, ^[aA-zZ])
==
true
put matchText( Mom, ^[aA-zZ])
==
true
put matchText( =Mom, ^[aA-zZ])
==
false
put matchText( \Mom, ^[aA-zZ])
==
true
Here is what is going on.  The pattern [aA-zZ] will match any of these 
letters:

a
ABCDEFGHIJKLMNOPQRSTUVWZYZ[\]^_`abcdefghijklmnopqrstuvwxyz
Z
The range portion is usually environment dependent and depends on the 
collating order or the coding order used in an implementation.  For 
ASCII and code sets that are supersets of ASCII, the pattern A-z would 
result in matching the middle line above.

charToNum(A)==  65
charToNum(\)==  92
charToNum(z)==  122
An alternative that might be better for the future is this:
matchText( mom, ^[[:upper:]])
or better
matchText( mom, \A[[:upper:]])
The matching is currently ASCII, but the library can handle UTF-8, 
somewhat, and if Revolution is ever extended to handle that, that 
pattern should be ready.  It might be that the library will also be 
extended to handle other popular high codes.

Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

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


Re: Arrays in Rev

2004-12-10 Thread Trevor DeVore
On Dec 10, 2004, at 12:17 PM, Troy Rollins wrote:
Or in Lingo -
myVar = [#check: [#this: [#out: Cool]]]
put myVar.check.this.out
-- Cool
put myVar[1][1][1]
-- Cool
People will debate the usefulness of such constructs, but I have yet 
to see anything in Transcript which is nearly so elegant for complex 
iterative evaluations. I strongly believe that Transcript needs this 
type of data structuring... but then of course, I don't let go easily 
to what I've learned and switch to what some Rev users would consider 
more native data management techniques which *are* available, though 
*much* more wordy to get there, and certainly do not iterate as 
elegantly.
I too think Transcript could use some work in this area.  I really like 
dealing with arrays in PHP.  It is very easy to create nested arrays 
and to iterate over them since you can get the number of children of an 
array element.  There are a whole bunch of fun functions for 
manipulating them as well.  Though many things I would use arrays for 
in PHP can be accomplished using lines and items in Transcript I find 
myself needing a data type which supports nesting and iteration to more 
easily model certain types of data.  I would really like to see an 
improvement in this area in the future.

--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Arrays in Rev

2004-12-10 Thread Gordon
Dear Revolutionaries

Thanks for all the suggestions - I appreciate the
help.

I have to say that I agree with Troy - it seems like
rr could really use some kind of elegant solution to
this problem. Sure - it's possible to work around it,
but having to code these kind of basic housekeeping
functions introduces more room for the unexpected to
occur and ultimately makes rr less robust if you have
to rely on a bunch of extra code to do something that
could be innate in the language.

IMHO, the single greatest feature in the Python
language is the nestable keyed libraries that can be
freely mixed with lists. How beautiful, simple,
elegant and still readable ten years later it is, when
you can use something like:

for client in myBusiness[clients][european]:
   if client[city] == Munich:
   dataBase[My Munich Clients].append(client)

I would vote for something like this in rr :)

Best

Gordon


--- Troy Rollins [EMAIL PROTECTED] wrote:

 
 On Dec 10, 2004, at 2:44 PM, Alex Tweedly wrote:
 
  It's real, but it is NOT *within* another array.
  In Rev, you cannot do something equivalent to
 
  put abc into a[1]
  put  def into a[2]
 
  put ghi into b[z]
  put a into b[y]
 
  which you can (with different syntax) in Perl,
 Python, (I think) Ruby, 
  
 
 Or in Lingo -
 
 myVar = [#check: [#this: [#out: Cool]]]
 
 put myVar.check.this.out
 -- Cool
 
 put myVar[1][1][1]
 -- Cool
 
 People will debate the usefulness of such
 constructs, but I have yet to 
 see anything in Transcript which is nearly so
 elegant for complex 
 iterative evaluations. I strongly believe that
 Transcript needs this 
 type of data structuring... but then of course, I
 don't let go easily 
 to what I've learned and switch to what some Rev
 users would consider 
 more native data management techniques which *are*
 available, though 
 *much* more wordy to get there, and certainly do
 not iterate as 
 elegantly.
 --
 Troy
 RPSystems, Ltd.
 http://www.rpsystems.net
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]

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


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


Re: parsing comments in scripts

2004-12-10 Thread Dar Scott
On Dec 10, 2004, at 1:28 PM, Mark Wieder wrote:
RB In general, I think you need to use the offset function for each 
line
RB and check for either -- or # and count whether there is an even
RB number of double-quotes before it (setting for example itemdelim to
RB quote and get the item count). If count is odd, you are within
RB literal and should continue. If count is even, then you hit a
RB beginning of comment. I think this approach will work with all 
cases.
...
Yes - I was doing something complicated like that and hit on the
tokens thing as a way to simplify and speed things up.
Don't forget special parsing for this:
format(...
Dar

DSC
http://www.swcp.com/dsc/
Programming Services

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


Re: parsing comments in scripts

2004-12-10 Thread Hugh Gallagher
Dar, thanks for the tip.  Hugh
On Dec 10, 2004, at 2:39 PM, Dar Scott wrote:
On Dec 10, 2004, at 1:28 PM, Mark Wieder wrote:
RB In general, I think you need to use the offset function for each 
line
RB and check for either -- or # and count whether there is an even
RB number of double-quotes before it (setting for example itemdelim 
to
RB quote and get the item count). If count is odd, you are within
RB literal and should continue. If count is even, then you hit a
RB beginning of comment. I think this approach will work with all 
cases.
...
Yes - I was doing something complicated like that and hit on the
tokens thing as a way to simplify and speed things up.
Don't forget special parsing for this:
format(...
Dar

DSC
http://www.swcp.com/dsc/
Programming Services

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


Re: Possible encrypt/decrypt bug

2004-12-10 Thread Dar Scott
On Dec 10, 2004, at 2:54 PM, David Kwinter wrote:
I've checked bugzilla and haven't found this, I thought I'd run it by 
this list before posting a new bug.
...
   encrypt originalData using aes256 with key tKey at 256 bit
   put it into encryptedData
   decrypt encryptedData using aes256 with key tKey at 256 bit
   put it into restoredData
See bug 2405.  A salt prefix is added for encryption using the key 
method when it should not be.  The decryption does not have this 
problem.

One workaround is to delete the first 16 bytes after ecrypt with key.
This bug might get fixed, so you might consider doing that only if the 
first 8 bytes are Salted__ or if the engine is in some range.

The key method also does not allow an IV to be specified (or at least I 
haven't figured out how).  This does not apply in some cases and can be 
scripted around in some, if you know your way around block modes.

Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

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


Re: Arrays in Rev

2004-12-10 Thread Mark Brownell
On Friday, December 10, 2004, at 12:17 PM, Troy Rollins wrote:
Or in Lingo -
myVar = [#check: [#this: [#out: Cool]]]
put myVar.check.this.out
-- Cool
put myVar[1][1][1]
-- Cool
[snip]
Troy
That's where I got it, Director.
The point I'm making is that it's a container that can store 
information at numerical points [101][2][23] or 101,2,23 or any 
delimiter that you select. I get what I needed in Lingo working fine 
for me in transcript. I'm just thankful that it works fast enough to be 
worth it.

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


Re: Arrays in Rev

2004-12-10 Thread Mark Brownell
On Friday, December 10, 2004, at 11:13 AM, Richard Gaskin wrote:
Mark Brownell wrote:
This thing is not a real array within an array, it just acts like one.
I hate to reinforce any perceptions of my curmudgeonliness, but for 
the benefit of newcomers here it may be useful to remind folks that 
while this indexed array is scripted, Rev's built-in associative 
arrays are just as real as associative arrays in any other language 
(and sometime more useful than strictly numerically indexed ones).

That said, your lib looks quite enticing. Good work!
--
 Richard Gaskin
Thanks,
I threw this together just to see if I could tell some information to 
be stored at location 12, 2,444,5 in an array and to see how practical 
it would be to use a parser and an index handler to call information 
from an array. It works great for my needs. I suppose it could be 
created to handle dot  syntax just to prove it's possible.

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


Re: Arrays in Rev

2004-12-10 Thread Troy Rollins
On Dec 10, 2004, at 8:00 PM, Mark Brownell wrote:
The point I'm making is that it's a container that can store 
information at numerical points [101][2][23] or 101,2,23 or any 
delimiter that you select. I get what I needed in Lingo working fine 
for me in transcript. I'm just thankful that it works fast enough to 
be worth it.
But... Lingo's are REAL.
AFAICT... you are using strings... which *look* like multidimensional 
arrays, yet they would not *work* like multi-dimensional arrays. It 
looks to me more like you have a mechanism which allows *naming* and 
storing of variables in the same context as a multi-dimensional array. 
It looks like your version is basically a way to avoid coming up with 
unique names for a lot of variables... which is cool, and all, but 
that's all it is.

But how do they perform the same functions? For instance with a 
multi-level nested repeat loop iterating over the contents with a real 
multi-dimensional array? Or is there some equally convoluted code to do 
that?

Don't get me wrong. Cool solutions I can respect. But what works for 
you (or I) as a personal solution is not necessarily something which is 
portable to others - nor is it necessarily what they want or need.
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net

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


Connecting to PostGreSQL on same machine: Mac OSX

2004-12-10 Thread Sivakatirswami
Alright... I've successfully installed PostGreSQL on my mac... in the  
terminal it's up and running, I've created a database and just now did

select * from taskroster
and got my two test rows returned... but..
in the Mac's activity monitor... i don't see a process named Postgres
just the tcsh shell I have open to talk to Postgres...
And also, in rev, this fails:
 put  
revOpenDatabase(Postgresql,localhost,katir_test,postgres,myPass 
Word)

could not connect to server: Connection refused
Is the server running on host localhost and accepting
TCP/IP connections on port 5432?
my computer name on the lan is katir.hindu.org  but
 put  
revOpenDatabase(Postgresql,katir.hindu.org,katir_test,postgres, 
myPassWord)

does not work either..
I'm sure this must be simple...
TIA
Sannyasin Sivakatirswami
Himalayan Academy Publications
at Kauai's Hindu Monastery
[EMAIL PROTECTED]
www.HimalayanAcademy.com,
www.HinduismToday.com
www.Gurudeva.org
www.Hindu.org
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Going to Paris

2004-12-10 Thread Geoff Canyon
I'm going to be in Paris from 28th December through 6th January. Is 
anyone in the area interested in getting together to swap Revolution 
stories?

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


Popup menu and radio buttons

2004-12-10 Thread CHARLES W SZASZ
In my project, I have created a popup menu that has 22 choices of 
combinations of IQ and achievement tests. Each selection has one IQ and 
one achievement test. Each test such as an IQ may have four to five 
scores, while each achievement test may have as many as 10 scores.  
Each combination of tests in the popup window has a different set of 
scores.  In other words, they are not always equal.

My lookup table would require a correlation for scores from both tests 
plus reliability coefficients for each IQ and achievement score. In 
addition to the above requirements for each popup selection, I want to 
have radio buttons appear representing on my card so the user can 
select a radio button and enter the score the radio it represents for 
the IQ test. Also, the areas of the achievement tests (with a place to 
enter each achievement or subachievement score) would be displayed 
depending on the IQ and achievement combo selected. It is possible to 
set up a popup menu to do the above using an array?

I do have another question, how do you make the popup menu reset itself 
after a selection is made and then you quit the program and then 
restarted it?


Charles Szasz
Lead School Psychologist and Section 504 Coordinator
Kanawha County Schools
(304) 348-7770, Ext. 347


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


RE: THESIS now available (Mathewson)

2004-12-10 Thread John Rule

This is a doctoral thesis?

JR


-Original Message-

Date: Thu, 09 Dec 2004 14:52:35 -0500
From: Mathewson [EMAIL PROTECTED]
Subject: THESIS now available
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1

Dear xTalkers,

  My Thesis in the form that I have submitted it is now
available in HTML format via the FILES page of my website.

  I am afraid I don't envisage having the prototype
software uploaded anywhere until sometime into the new
year.

  I would like to reiterate my thanks to Monsieur X for his
very kind offer of help.

 Wishing you all an extremely xTalky New Year.

Richmond Mathewson
-


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


Re: Christmas Special - we'll even solve your christmas shopping problem

2004-12-10 Thread Marian Petrides
Heather,
The bears are priceless ;-)
One question, however.  Christmas is a mere 2 weeks away. Will US 
customers really get their bear by Christmas if ordered now?

Marian
On Dec 10, 2004, at 9:45 AM, Heather Nagey wrote:
Dear list members,
www.runrev.com/revbears.php
Having a tough day? Code not doing what it should? Need a mascot to 
turn
things around? Sometimes what you need is not technical support, but a 
hug.
These bears are designed to fill this need in every developers' life. 
Your
unique revBear will provide 24 hour support from your desktop or 
pocket.
They are excellent and sympathetic listeners - once you explain that 
knotty
problem in language your bear can understand, you will find it a snip 
to
write the code.

A revBear is not just for Christmas: he or she will be your friend for 
life!

Lovingly handcrafted by renowned collectors-bear maker, Tiiu-Imbi 
Miller,
the bears are 4 tall, made of high quality mohair with shiny glass 
eyes,
fully jointed and wearing a Runtime Revolution t-shirt. Each bear is 
hand
crafted and individualized by using various fabrics and facial 
expressions.
They are collectors' bears and not suitable for children under 14 
years of
age.

These bears - without the customized Power to the Developer t-shirts 
-
normally retail for £25 each. We're selling them to you for only £20 or
$30(US) inclusive of post and packing. A limited quantity of these 
bears are
available to ship before Christmas so it's strictly first-come,
first-served - order now to avoid disappointment! Your bear is 
waiting for
you to give it both a loving home and a fulfilled and interesting life!

Happy Holidays to one and all
Heather
--
** For a faster response to all licensing, support, and technical 
issues,
please now send mail to [EMAIL PROTECTED] **

Heather Nagey ~ [EMAIL PROTECTED] ~ http://www.runrev.com/
Runtime Revolution - User-Centric Development Tools
Tel +44 (0) 870 747 1165 Fax +44 (0) 845 4588487
~~~ Check our web site for new Revolution editions  special offers ~~~
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: testing on case

2004-12-10 Thread James . Cass
Jonathan -

That's weird, right?  When I do this in the messagebox or in a button 
script:
put matchText( z, ^[A-Z])
I definitely get false returned. 

But when I do this in the messagebox
put matchText( z, ^[aA-zZ])
I get true.  This is the way I would expect it to behave. 

I don't know why you would be getting different results.  H.

I'm running Rev 2.5 on MacOSX 10.3.6. 

- James





Lynch, Jonathan [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
12/09/04 04:02 PM
Please respond to How to use Revolution
 
To: How to use Revolution [EMAIL PROTECTED]
cc: 
Subject:RE: testing on case


Hi James...

I tried:

matchText( z, ^[A-Z])

and it worked fine for me...



I tested it in the message box...

matchText(b,^[A-Z])

returned false, and

matchText(B,^[A-Z])

returned true



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 3:47 PM
To: How to use Revolution
Subject: Re: testing on case

  The expression matchText( z, ^[A-Z])
 will return true if (and only when) the
 first character is an ASCII capital letter.

That returns false for me.  You'll need to do it like this to cover
upper
and lower case.

matchText(z,^[aA-zZ])

Cheers...James




|-+---
| |   Dar Scott [EMAIL PROTECTED]|
| |   Sent by:|
| |   [EMAIL PROTECTED]|
| |   .runrev.com |
| |   |
| |   |
| |   12/09/04 02:53 PM   |
| |   Please respond to How to use|
| |   Revolution  |
|-+---

---
-|
|
|
|   To:   How to use Revolution
[EMAIL PROTECTED]|
|   cc:
|
|   Subject:  Re: testing on case
|

---
-|





On Dec 9, 2004, at 11:46 AM, Hershel Fisch wrote:

 if matchText( param(x), ^[A-Z]) then put xxx else put x
 I don't get it

The expression matchText( z, ^[A-Z]) will return true if (and only
when) the first character is an ASCII capital letter.  The ^ matches
the beginning of the string (or line).  A more exact pattern is \A; I
used ^ because it might be more familiar.  The immediately following
pattern [A-Z] matches any letter in the range A-Z in ASCII.  It must
match right after the previous pattern match, that is, the beginning.
There is no pattern matching for the end of the string so the rest of
the string z does not matter.  That is, matchText() returns true if the
pattern occurs anywhere in the string, not just if it matches the whole
string.  (Use \A and \z to match the ends to make a pattern match the
whole string.)

You can find more info on regular expressions here:

http://www.perldoc.com/perl5.8.0/pod/perlre.html

But you have to skip over all the perl specific parts.

You can find more specific information on exact usage of the actual
library used in Revolution and (I assume) Dreamcard here:

http://www.pcre.org/pcre.txt

But you have to skip over all the building and calling parts.  Skip
down to PCRE REGULAR EXPRESSION DETAILS.  I think you need to skip over
the unicode and UTF-8 paragraphs, too, for now.

Dar


Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services


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

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


Re: Arrays in Rev

2004-12-10 Thread Frank D. Engel, Jr.
As far as records (C's struct types), there are at least two ways to do 
this:

Mathod 1. Arrays
Since array keys can be strings, you can convert something like this:
VAR myRec : RECORD x, y : INTEGER END;
BEGIN
x := 5;
y := 7
END;
into something like this:
put 5 into myRec[x]
put 7 into myRec[y]
(Transcript's arrays are *really* cool...)
Method 2.  Objects
You can also use custom properties on objects in place of fields on 
records.  So create a button called myRec, then:

set the x of button myRec to 5
set the y of button myRec to 7
On Dec 10, 2004, at 1:15 AM, Jan Schenkel wrote:
--- Gordon [EMAIL PROTECTED] wrote:
Dear Revolutionaries
Can an element of a rev array be another array?
If not, is there any way to achieve the effect of
nesting arrays - OR if not, is there some way to
create new container types (like the structures and
unions typical in C and Pascal). Basically - how do
I
create complex organized containers (objects) to
hold
my data?
Best
Gordon
Hi Gordon,
As Xavier pointed out, there are no nested arrays in
Revolution. In addition to his suggestion to use the
split and combine commands when needed, I'd like
to point at the other two options : crafting array
keys to simulate the behaviour, and using XML trees as
a way to hierarchically store information into nodes.
1. Array keys
Revolution arrays are actually associative arrays,
which means that the keys can be any string, and you
can use separators as much as you like. Example :
--
  put 01/01/2003 into \
  tCustomerData[1,history,23,date]
  put tCustomerData[78,contacts,3,phone] into \
  tPhoneNumber
--
2. XML trees
If you build your tree correctly, you can get the
content of your data using calls like :
--
  put data/customers[1]/history[23]/date into \
  tNode
  revPutIntoXMLNode tXMLTree,tNode,01/01/2003
  put data/customers[78]/contacts[3]/phone into \
  tNode
  put revXMLNodeContents(tXMLTree,tNode) into \
  tPhoneNumber
--
For more information about XML and how Rev supports
it, make sure to download the tutorial by Sarah
Reichelt, available from the Runtime Revolution
website at :
http://support.runrev.com/resources/xml.php
Hope this helped,
Jan Schenkel.
=
As we grow older, we grow both wiser and more foolish at the same 
time.  (La Rochefoucauld)


__
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

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


___
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: parsing comments in scripts

2004-12-10 Thread Mark Wieder
Alex-

Friday, December 10, 2004, 5:01:53 AM, you wrote:

(did I leave any out)

AT text # comment
AT and variants of that.

...yes, I was thinking of # and -- as interchangeable here.

put the tokens of put  quote  something  quote  --comment

AT That's not quite what I see - I get just
AT put something
AT i.e. without either quote; that makes sense because once the line is
AT tokenized, the quotes are unnecessary.

My bad typing - I left out the parens. Make that
put the tokens of (put  quote  something  quote 
--comment)

AT Sorry Mark, it won't work in all cases. In particular, any case where there
AT are more tokens than words.

AT put a+b into c

... dang operator tokens... back to the drawing board...

AT I don't have any suggestions, yet  but it's an intriguing question, so
AT I'll use it as an excuse to avoid gardening this afternoon :-)

Well, winter itself (or December) should be a good excuse. Me, I was
happy to get some greens in the ground before the rains started.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


Re: parsing comments in scripts

2004-12-10 Thread Mark Wieder
Richard-

Friday, December 10, 2004, 5:29:33 AM, you wrote:

RG Make that three:  recently (v2.5?) they added support for multiline
RG C-style comments: /* */

Right. I forgot to mention those. I have to handle those separately,
of course, because they can and usually do cover multiple lines.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


Re: parsing comments in scripts

2004-12-10 Thread Mark Wieder
Robert-

Friday, December 10, 2004, 5:22:49 AM, you wrote:

RB In these cases it matters whether you first check for # or -- so you
RB should really check both cases and see which has has lower offset.

I don't think so. They're interchangeable at that level.

RB In general, I think you need to use the offset function for each line
RB and check for either -- or # and count whether there is an even 
RB number of double-quotes before it (setting for example itemdelim to
RB quote and get the item count). If count is odd, you are within 
RB literal and should continue. If count is even, then you hit a 
RB beginning of comment. I think this approach will work with all cases.

Yes - I was doing something complicated like that and hit on the
tokens thing as a way to simplify and speed things up. I'll probably
have to go back that way again. BTW - the item count thing won't work
because you still don't know the order, especially in cases where
there are multiple quotes and/or possible comment chars.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


Re: Arrays in Rev

2004-12-10 Thread Troy Rollins
On Dec 10, 2004, at 3:39 PM, Gordon wrote:
IMHO, the single greatest feature in the Python
language is the nestable keyed libraries that can be
freely mixed with lists. How beautiful, simple,
elegant and still readable ten years later it is, when
you can use something like:
Curiously, Python and Lingo are almost identical languages when Lingo 
is used in dot-syntax format. The python example supplied is very 
nearly valid Lingo.

When Lingo is used in verbose format, it is almost identical to 
Transcript.

dot-syntax was an evolution of the language which did not exist in 
original Lingo. Though I've no doubt it was an expensive evolution in 
terms of development costs.

Incidentally, I've decided to add Python to my list of languages 
recently, specifically because it looks like the migration from Lingo 
should be a snap.
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net

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


Re: parsing comments in scripts

2004-12-10 Thread Dar Scott
On Dec 10, 2004, at 12:26 PM, Alex Tweedly wrote:
Unfortunately, it appears that token DOES include the C-style comment 
delimiters recently introduced, and they can be multi-line, so you'll 
need to do something more to deal with that.
I missed most of this.  I'll just throw in this comment to consider in 
parsing:

/* */ style comments form intra-command whitespace, not inter-command 
whitespace; they cannot take the place of a ; or a lf, even if they 
include a lf.

Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

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


Disappointed by Dreamcard/Revolution

2004-12-10 Thread Jérôme Rosat
Hello,
I have a PowerBook G4 450MHz with MacOS 10.3. I discovered Revolution a 
few month ago. So I decided to buy Dreamcard to test it.

I am very surprised by the reactions of this application:
After a few hours of use:
- the keyboard shortcuts (copy/past for example) don't work any more
- the Inspector button in the toolbar don't work (the inspector palette 
don't open or twice)
- the name of an element (stack or field) change without typing 
something in the field name in the basic properties
  so I close the stack without saving and I open it again: the new 
name is still present
- each time I click-right on a word in the script window a new 
Documentation stack open and appear in the Application Browser: after 1 
hour, the Application Browser is full of stacks
- I tried to develop a small application for a french environment: I 
had much problems with the accents.
- etc.

It's as if the interface was unstable, not finished.
If Revolution is the same, I am not certain that it is possible to 
develop an application for a big company or an official administration.

And if you don't understand or write english, you should not hope to 
obtain any support !

At the beginning I was very exited by Revolution, but finally I'm 
totally disappointed.

Jérôme Rosat
1212 Grand-Lancy / Genève
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Possible encrypt/decrypt bug

2004-12-10 Thread David Kwinter
I've checked bugzilla and haven't found this, I thought I'd run it by this 
list before posting a new bug.

These should both answer true at the end, but the first, using key 
doesn't. I've encountered it while encrypting and decrypting binary files, 
expecting to reproduce the files exactly.

on mouseUp
   answer file Choose a file
   put it into fPath
   open file fPath for binary read
   read from file fPath until end
   put it into originalData
   close file fPath
   repeat 32 times
   put numToChar(random(255)) after tKey
   end repeat
   encrypt originalData using aes256 with key tKey at 256 bit
   put it into encryptedData
   decrypt encryptedData using aes256 with key tKey at 256 bit
   put it into restoredData
   answer restoredData=originalData  answers false
end mouseUp
on mouseUp
   answer file Choose a file
   put it into fPath
   open file fPath for binary read
   read from file fPath until end
   put it into originalData
   close file fPath
   repeat 32 times
   put numToChar(random(255)) after tKey
   end repeat
   encrypt originalData using aes256 with password tKey at 256 bit
   put it into encryptedData
   decrypt encryptedData using aes256 with password tKey at 256 bit
   put it into restoredData
   answer restoredData=originalData  answers true
end mouseUp
Even though it seems that a binary key works as the password I'd like to 
know if passwords are supposed to be restricted to certain chars and if the 
second script is less secure than the first, if it worked.

Thanks for any help 

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


Re: Disappointed by Dreamcard/Revolution

2004-12-10 Thread Pierre Sahores
Hi Jérôme,
I don't use Dreamcard because i'm owning a Revolution Entreprise 
license... witch i use, as my main tool, to develop n-tier web, erp 
and video-streaming apps for my customers (french administrations : 
education, universities, towns, local administrations). As Metacard was 
before it, Rev is a great tool with a powerfull and mainly unbugged 
engine and some cosmetic bugs in the IDE. In reading your mail, it 
seems Dreamcard is realy buggy... and it's probably because this IDE is 
a little too young. To get a best idea of the real potential of the Rev 
product line, i would recommand you to test a Rev Studio issue (the 
same as the Entreprise Edition instead of the native Oracle DB 
support). I'm sure you will get a more interesting experience.

Hope this can help :-)
Best Regards,
Le 10 déc. 04, à 22:31, Jérôme Rosat a écrit :
Hello,
I have a PowerBook G4 450MHz with MacOS 10.3. I discovered Revolution 
a few month ago. So I decided to buy Dreamcard to test it.

I am very surprised by the reactions of this application:
After a few hours of use:
- the keyboard shortcuts (copy/past for example) don't work any more
- the Inspector button in the toolbar don't work (the inspector 
palette don't open or twice)
- the name of an element (stack or field) change without typing 
something in the field name in the basic properties
  so I close the stack without saving and I open it again: the new 
name is still present
- each time I click-right on a word in the script window a new 
Documentation stack open and appear in the Application Browser: after 
1 hour, the Application Browser is full of stacks
- I tried to develop a small application for a french environment: I 
had much problems with the accents.
- etc.

It's as if the interface was unstable, not finished.
If Revolution is the same, I am not certain that it is possible to 
develop an application for a big company or an official 
administration.

And if you don't understand or write english, you should not hope to 
obtain any support !

At the beginning I was very exited by Revolution, but finally I'm 
totally disappointed.

Jérôme Rosat
1212 Grand-Lancy / Genève
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

--
Bien cordialement, Pierre Sahores
100, rue de Paris
F - 77140 Nemours
[EMAIL PROTECTED]
[EMAIL PROTECTED]
GSM:   +33 6 03 95 77 70
Pro:  +33 1 64 45 05 33
Fax:  +33 1 64 45 05 33
http://www.sahores-conseil.com/
WEB/EAI services  ACID DB over IP
Mutualiser les deltas de productivité
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution