Re: Re:arrays (again)

2002-04-21 Thread Tariel Gogoberidze


> Message: 13
> Date: Sun, 21 Apr 2002 10:31:38 +0200
> From: yves COPPE <[EMAIL PROTECTED]>
> Subject: Re:arrays (again)
> >
> >on mouseUp
> >   put  the short name of this stack into MYstackName
> >   put the cData ["student","name","3"] of stack MYstackName
> >end mouseUp
> >
> >Best regards
> >Tariel Gogoberidze
> 
> Ok, that works fine now.
> Another question : is it possible to go further in the manipulation of the data
> 
> for example
> 
> put the cdata["student","name"] of stack MyStackName into fld xxx
> 
> doesn't work.
> 
> I'd like to get the complete list of the names, not only the number
> "3" as in this axample, but the full list. So I've tried the line of
> script here above, but I get nothing.

> Yves COPPE

Try this. It should be  more  efficient way  to do this but this example
should  work

on mouseUp
  put "Mark,Ann,Jim,kevin"  into myvarOne
  put myvarOne into temp
  repeat with i = 1 to the number of items of temp
put item i of temp into myData["Student","name",i]
  end repeat
  put "Kate,Antonio,Scott"  into myvarTwo
  put myvarTwo into temp
  repeat with i = 1 to the number of items of temp
put item i of temp into myData["prof","name",i]
  end repeat
  set the customProperties["cData"] of this stack to myData
  put  the short name of this stack into MYstackName
  -- put the cData ["student","name","3"] of stack MYstackName into OneElement
  set the customPropertySet of stack MYstackName to "cData"
  put customkeys of stack  MYstackName into MyList
  set the customPropertySet of stack MYstackName to empty -- to set it
back to default custom properties
  repeat with j= 1 to number of lines of MyList
put the cData [line j of MyList] of stack MYstackName  into line j
of MyListContent
  end repeat
  
  put MyListContent  & cr & "=" &cr &   mylist
  
end mouseUp

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



Re: Check Menu Items?

2002-04-21 Thread Richard Harrison

on 4/21/2002 1:08 PM, yves COPPE at [EMAIL PROTECTED] wrote:

> 
> try :
> 
> put text of me into tMenu
> get the menuHistory of me
> if char 1 of line it of tMenu = "!" then
> repeat 2
> delete char 1 of line it of tMenu
> end repeat
> else
> put "!c" before line it of tMenu
> end if
> set text of me to tMenu
> 
> I've done it so and it works.

Thanks for the code snippet!

Rick Harrison

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



Re: Check Menu Items?

2002-04-21 Thread Rick Harrison

on 4/21/2002 1:22 PM, Ken Ray at [EMAIL PROTECTED] wrote:
> 
> You need to do this manually by removing the !c when the menu item is
> selected, and then putting it back in when it is selected again.
> 
> Here's an example:
> 
> on menuPick
> put the menuHistory of me into tSelection
> put me into tMenuItems
> if char 1 to 2 of line tSelection of tMenuItems = "!c" then
> delete char 1 to 2 of line tSelection of tMenuItems
> else
> put "!c" before line tSelection of tMenuItems
> end if
> put tMenuItems into me
> end menuPick

Ken,

Thanks for the code snippet.

It didn't quite work for me the way I wanted it to,
but it was enough of a start that I was able to
work out the rest of the solution for myself.  I was
running into a problem where it was giving me just
the previous item selected and not the current one
chosen.

Thanks again,

Rick Harrison


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



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

2002-04-21 Thread Dar Scott


On Sunday, April 21, 2002, at 08:18 PM, Michael D Mays wrote:

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

I get 6:00 PM

(I was sure 0 used to get an error for me, too, I'm not sure what's 
up with that.)

Look at at the original time header in the mail an you will see my 
time zone is -600.

So for me on OS X 10.1.3, Blue & White, Revolution 1.1.1, convert 
peeks at the current time zone.

Dar Scott

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



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

2002-04-21 Thread Michael D Mays

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

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

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

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

michael

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

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

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



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

2002-04-21 Thread Dar Scott


On Sunday, April 21, 2002, at 03:25 PM, Ian Summerfield wrote:

> My code used to work when we were on GMT,  so no doubt it has 
> something to
> do with the engine ignoring time zone settings.

Your email shows +100 in the (original) date field, so I assume OS 
X knows BST.

Dar Scott

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



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

2002-04-21 Thread Ian Summerfield

Maybe this only goes wrong under OS X.  I'm using OS X 10.1.4.  Maybe this
only goes wrong depending on your date and time setting,  I'm set to time
zone "United Kingdom" and my system indicates BST.

Revolution is ONE hour out with it's results using CONVERT,  I think they
have based something on GMT.


In the message box type:

Put 21600 into xxx
Convert xxx to short time
Xxx

Xxx contains 7:00; BUT that should be 6:00.  I get 6 from:

21600 seconds / 60 = 360 minutes
360 minutes / 60 = 6 hours

Now where did it get 7 from?  I don't see any mod function around to blame
(joke). 

My code used to work when we were on GMT,  so no doubt it has something to
do with the engine ignoring time zone settings. 

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



Re: 'hack' test results

2002-04-21 Thread Martin Baxter

Depending on what you're doing exactly, you might find that the "md5digest"
will help you out.
It generates a 128bit key from a string - eg a password string. I've been
using this key as the starting seed to encrypt/decrypt password and userid
combinations using a script of my own.
It then doesn't matter if anyone sees the encrypted string or the
decryption script, because without the key, neither is of any use.

Unless your application is requesting a password at runtime, or at any rate
at some point before your encrypted data are used, it probably won't help
you, but I thought I'd mention it anyway - FWIW.

martin baxter

>From: Rick Harrison <[EMAIL PROTECTED]>
>
>on 4/20/2002 1:23 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:
>
>>> The only data they should be seeing is the data I want
>>> to show to them.  Other data is all in hidden fields.
>>> Could you be more verbose?
>>
>John,
>
>Yuk, we shouldn't have to be worrying about such things.


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



Re: Check Menu Items?

2002-04-21 Thread Ken Ray

Rick,

> The !c checkmarks the menuitem, but I need to have this
> done dynamically depending on which item the user selects.
> The checkmark doesn't go on and off accordingly.  Have I
> missed something?  Where in the documentation did you find
> this little nugget?


You need to do this manually by removing the !c when the menu item is
selected, and then putting it back in when it is selected again.

Here's an example:

on menuPick
  put the menuHistory of me into tSelection
  put me into tMenuItems
  if char 1 to 2 of line tSelection of tMenuItems = "!c" then
delete char 1 to 2 of line tSelection of tMenuItems
  else
put "!c" before line tSelection of tMenuItems
  end if
  put tMenuItems into me
end menuPick

This toggles the checkmark for a menu item in a popup menu button.

BTW: You can find this in the Revolution Documentation - click on the
"RoadMap" button, then click "Development Guide", then "Menus", then "menus
and the menu bar" (under the About section). Scroll down about half way to
"Special Effects In Menus".

Easy! ;-)

Hope this helps,

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

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



Re: Check Menu Items?

2002-04-21 Thread yves COPPE

>
>The !c checkmarks the menuitem, but I need to have this
>done dynamically depending on which item the user selects.
>The checkmark doesn't go on and off accordingly.  Have I
>missed something?  Where in the documentation did you find
>this little nugget?
>
>Thanks,
>
>Rick Harrison
>


try :

   put text of me into tMenu
   get the menuHistory of me
   if char 1 of line it of tMenu = "!" then
 repeat 2
   delete char 1 of line it of tMenu
 end repeat
   else
 put "!c" before line it of tMenu
   end if
   set text of me to tMenu

I've done it so and it works.
-- 
Greetings.

Yves COPPE

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



Re: 'hack' test results

2002-04-21 Thread Rick Harrison

on 4/20/2002 1:23 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:

>> The only data they should be seeing is the data I want
>> to show to them.  Other data is all in hidden fields.
>> Could you be more verbose?
> 
> 
> I just did another 'hack' test...with MCRipper this time:
> 
> http://www.inspiredlogic.com/mc/ripper.html
> 
> It cannot 'rip' password protected stacks (at least I couldn't get it to) so
> that is a relief.
> 
> MCRipper will 'rip' invisible objects (including any text or scripts) even if
> the stack is password protected. So the conclusion...any information in text
> fields (even hidden fields) is not totally safe.
> 
> Solution:
> Load the information from the field into a variable...then delete the text
> from the field. You are still susceptable to any 'prying' if you give the
> users the capability to load any stack (i.e. I could load a stack that
> searches all variables).  ...

John,

Yuk, we shouldn't have to be worrying about such things.

Perhaps Ken Ray's idea about "lock messages" before opening the stack
is the solution to prevent ripping.

I'm downloading MCRipper to play around with it myself to see what
evils it can really do.

Thanks for the hack tests!

Rick Harrison


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



Re: Check Menu Items?

2002-04-21 Thread Rick Harrison

on 4/21/2002 3:42 AM, Dar Scott at [EMAIL PROTECTED] wrote:

> 
> On Saturday, April 20, 2002, at 07:49 PM, Rick Harrison wrote:
> 
>> Does anyone know of an easy way to put a checkmark
>> next to an item that has been selected in a menubar
>> to indicate that the item is the currently selected
>> item?
> 
> I haven't worked with a menu bar, but this is how I did it with
> button menus.
> 
> Put !c at the start of the line for the menu item in the text of
> the button.  There is no need to pad out the other menu items;
> formatting is automatic.
> 
> You might be interested in _ for a line separator, ( to dim, and !r
> for a dot.  The ( can be combined with !c and (I assume) !r.
> 
> Dar Scott
> 

Dar,

The !c checkmarks the menuitem, but I need to have this
done dynamically depending on which item the user selects.
The checkmark doesn't go on and off accordingly.  Have I
missed something?  Where in the documentation did you find
this little nugget?

Thanks,

Rick Harrison

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



The returned URL

2002-04-21 Thread Matt Denton

Hello all,

I've got a URL that points to a CGI script, returning a different URL 
and data.  The URL looks something like:

"http://somesite.com/search/city?p=tokyo";

but returns quite a different URL:

"http://somesite.com/result";

I'm trying to work out if there is a way to find the returned URL and 
not just the data.  I've tried half a dozen ways, no luck.

Can this be done?  This is all new to me.

Cheers and thanks!

M@
Matt Denton

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



Re: TTS, RR and OS X

2002-04-21 Thread Kurt Kaufman

I wrote:
"...It very well may be that OS X doesn't like this 
workaround/kludge/abomination, and I'd have to figure out another way of 
bypassing the 40-pitch limitation.  However, for all I know the OS X 
Speech Manager doesn't have this  limitation..."

It doesn't, apparently.  Very Good News!
-Kurt

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



Mac OS X distribution shown as "Classic"

2002-04-21 Thread Kurt Kaufman

Please forgive me if this is a FAQ:  I've noticed that RR Mac OS X 
builds are defined as "Classic" applications in their "Get Info" windows 
(with a fixed memory setting!); is this the case for all "Carbon" apps 
or perhaps an odd configuration peculiar to my own system?
Thanks, Kurt

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



SMTP authentication

2002-04-21 Thread sims

Is anyone using Rev & sockets to send email in a way
that includes use of SMTP authentication?

I'd like to learn how to script SMTP authentication...

atb

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



Re: chunk order restriction

2002-04-21 Thread David Vaughan

"...first word 1..."?

I assume you mean "first word" or "word 1".

Importantly, you also need to reduce confusion to Rev by parenthesising 
the second part of the expression, thus:

   get last item of (first word of "abc\def ghij\kl")

then it works (or did for me).

cheers
David

On Sunday, April 21, 2002, at 07:17 , Edwin Haskell wrote:

> when I run this script:
>
> set the itemdelimiter to "\"
> get last item of first word 1 of "abc\def ghij\kl"
>
> I get this message:
> Script compile error:
> Error description: Chunk: bad chunk order (must be small to large)
>
> I guess this means I can't put items in words like I can in Hypercard?
> Is there a good reason for this restriction?
>
> ___
> 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