Re: Trip to Beijing -- Olympics -- anyone else?

2008-08-06 Thread Kay C Lan
On Wed, Aug 6, 2008 at 1:54 PM, Joe Lewis Wilkins [EMAIL PROTECTED] wrote:

I believe I saw all of the images using FireFox 3.0.1


May have to download.

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


Re: Some Stacks Won't Open in Finder in OS X?

2008-08-06 Thread Kay C Lan
On Sat, Jul 19, 2008 at 5:52 AM, joe [EMAIL PROTECTED] wrote:


 I can't even find the User contributions section. Help! Can you link
 me?(Thanks)

 Within Rev, Development Menu -- Revolution OnLine (need to be online of
course to access). A stack pops up and in the left field 'Channels', choose
'User Spaces'.

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


engine crash on open stack

2008-08-06 Thread Larry Forsgren

Hi everybody!

I am returning to Revolution after some years of 
inactivity and am currently testing the Enterprise 
engine Build 610 Version 2.9.0 on Windows.


The application I am working on has progressed 
well and I have a standalone which works fine 
although needs some refinement.


Suddenly I cannot open the stack (one single 
stack) in Revolution. The engine crashes and 
closes immediately when I try to open the stack. 
Possibly I have added something in a script that 
causes this since I can open other stacks.
I did a reinstall of Revolution but the problem 
persists.


Unfortunately I have no earlier version of the 
stack to fall back on.


What do the people that are more experienced with 
Revolution than I am, say?


Do I have to excavate the scripts from the 
standalone and start over again?


Is this some known bug that others have 
experienced as well?


I was really happy with the current Revolution 
version until this happened. Now I have a stack 
which seems to be broken although the engine can't 
even report if it's broken or not. I believe the 
stack cannot be opened in an external editor 
without getting corrupt... Is there a way to 
correct this problem?


Any help would be much appreciated.

Thanks
Larry
___
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: engine crash on open stack

2008-08-06 Thread Mark Schonewille

Dear Larry,

You can suppress messages in the Development menu. Does the stack  
still quit automatically, after you suppress messages?


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 6 aug 2008, at 08:25, Larry Forsgren wrote:


Hi everybody!


snip


Suddenly I cannot open the stack (one single stack) in Revolution.  
The engine crashes and closes immediately when I try to open the  
stack. Possibly I have added something in a script that causes this  
since I can open other stacks.

I did a reinstall of Revolution but the problem persists.


snip
___
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: engine crash on open stack

2008-08-06 Thread Eric Chatonet

Bonjour Larry,

Le 6 août 08 à 08:25, Larry Forsgren a écrit :

Suddenly I cannot open the stack (one single stack) in Revolution.  
The engine crashes and closes immediately when I try to open the  
stack. Possibly I have added something in a script that causes this  
since I can open other stacks.


1. Open Rev itself.
2. Lock messages by clicking on the right icon in Rev tool bar.
3. Use the File menu to open your stack.
4. Put a breakpoint at the beginning of the first handler run when  
your stack opens (preOpenstack, openStack, openCard, etc.)
5. Send these messages using the message box and see what happens  
when debugging :-)


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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


waiting time of shell()

2008-08-06 Thread [EMAIL PROTECTED]
Hello,

I use 

put shell(perlupload) into result
if result contains xyz then 
put true into itworked  
else
...
end if

with perlupload as a perl program which loads files  through proxy http on slow 
connections to a cgi prog on the server ... and gets the http-HTML-respond page 
as result. This result is returned to runrev and I want to check the success.

This works fine for 90 % of the files but in the case the files have the size 
of up to 5 MB the perl upload process needs more time than the shell command is 
patient to wait. The perl process in most cases continues until success, but 
the return of the shell is empty and therefore my runrev prog never could be 
sure whether the upload process had been successful or not. I cannot do the 
upload in runrev native, because it is a special VPN context, which I could not 
solve in runrev native but in perl.

Q1: what is the prefigured waiting time of a shell command in runrev?
Q2: can I change this waiting time (let shell the time to work longer for long 
processes, before it returns control to runrev and says empty as result)


Thank you for any advice,

Franz

Mit freundlichen Grüßen
Franz Böhmisch

[EMAIL PROTECTED]
http://www.animabit.de
GF Animabit Multimedia Software GmbH
Am Sonnenhang 22
D-94136 Thyrnau
Tel +49 (0)8501-8538
Fax +49 (0)8501-8537
___
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: Sliders Images

2008-08-06 Thread H Baric
Thanks so much for your help Eric, I won't forget it :)

Now, there are more than 52 more emails after this one - busy night last 
night obviously!

Cheers,
Heather


- Original Message - 
From: Eric Chatonet [EMAIL PROTECTED]
To: How to use Revolution use-revolution@lists.runrev.com
Sent: Tuesday, August 05, 2008 11:00 PM
Subject: Re: Sliders  Images


Here is the explanation:
The scrollBarDrag message is sent by the engine every time that the
'real' thumb position has changed by one pixel.
So this message may fire several times in some milliseconds if you
move the thumb quickly.
On the other hand, 'beep' sound is longer than that.
Then if a new beep is required when the previous one is not finished
to be played, it's queued and executed when the previous is finished.
With all beeps you have heard, it's easy to understand now why a
condition might be welcome.
:-)

Le 5 août 08 à 14:49, H Baric a écrit :

 That's what I did Eric, well I'm pretty sure I did! (on
 scrollbarDrag thePos
 ; set the icon of btn bgImage to the id of img (blue 
 thePos) ; beep)

 Though I just tried again, and my beeps aren't oh wait there it
 goes HAHA.
 Only about 20 seconds after I moved the slider hahahaha

 I reallly need a new computer maybe?

 * Actually my beep x doesn't work either most of the time. I
 generally
 never get the same number I state. :(

 My PC *is* a bit of a dino now I guess.

 Cheers,
 Heather


 - Original Message -
 From: Eric Chatonet [EMAIL PROTECTED]
 To: How to use Revolution use-revolution@lists.runrev.com
 Sent: Tuesday, August 05, 2008 10:18 PM
 Subject: Re: Sliders  Images


 Sorry I was not clear enough:
 Add a 'beep' in your scrollbarDrag handler and you will hear
 continuous beeps when dragging scrollbar's thumb even if the reported
 thumb position in the scrollbarDrag handler does not actually change.

 Le 5 août 08 à 14:18, H Baric a écrit :

 Thanks for making that clear Eric.

 Well I just added beep, and I get just ONE beep. Then it's done.

 Maybe my system is as lazy and tired as me :-D

 Cheers,
 Heather


 - Original Message -
 From: Eric Chatonet [EMAIL PROTECTED]
 To: How to use Revolution use-revolution@lists.runrev.com
 Sent: Tuesday, August 05, 2008 9:49 PM
 Subject: Re: Sliders  Images


 Add a 'beep' in your scrollbarDrag handler and you will hear
 continuous beeps even if the thumb position does not actually change:
 So adding a condition to check if the image has to change is a good
 idea because without it you'll change the image continuously even if
 it's not needed:
 This means CPU use, screen refresh, etc. even if you don't notice
 anything.
 Just good practice :-)

 Le 5 août 08 à 13:22, H Baric a écrit :

 not run the code if it's not needed

 Sorry Eric can you please explain why or when it wouldn't be?

 Thanks!

 Cheers,
 Heather


 - Original Message -
 From: Eric Chatonet [EMAIL PROTECTED]
 To: How to use Revolution use-revolution@lists.runrev.com
 Sent: Tuesday, August 05, 2008 8:48 PM
 Subject: Re: Sliders  Images


 Mark's idea sounds good because it does not reorganize layers but I
 would add a condition to not run the code if it's not needed:

 on scrollbarDrag thePos
 if the icon of btn x  the id of img (blue  thePos) then
  set the icon of btn x to the id of img (blue  thePos)
end if
 end scrollbarDrag

 Le 5 août 08 à 12:45, H Baric a écrit :

 Excellent! Merci!

 - Original Message -
 From: Eric Chatonet [EMAIL PROTECTED]
 To: How to use Revolution use-revolution@lists.runrev.com
 Sent: Tuesday, August 05, 2008 7:37 PM
 Subject: Re: Sliders  Images


 on scrollbarDrag pPos
set the layer of img (blue  pPos) to top
 end scrollbarDrag


 Best regards from Paris,
 Eric Chatonet.


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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: waiting time of shell()

2008-08-06 Thread Mark Smith

Perhaps you could try using open process, something like:


open process perlupload for read
repeat
  wait 500 millisecs with messages
  read from process perlupload until empty
  put it into tResponse
  if xyz is in it then
put it into tResponse
exit repeat
  end if
end repeat

close process perlupload
put tResponse

You might want to put in some other exit conditions to avoid the loop  
being infinite, but this sort of approach might work better for long  
uploads.


Best,

Mark

On 6 Aug 2008, at 09:59, [EMAIL PROTECTED] wrote:


Hello,

I use

put shell(perlupload) into result
if result contains xyz then
put true into itworked
else
...
end if

with perlupload as a perl program which loads files  through proxy  
http on slow connections to a cgi prog on the server ... and gets  
the http-HTML-respond page as result. This result is returned to  
runrev and I want to check the success.


This works fine for 90 % of the files but in the case the files  
have the size of up to 5 MB the perl upload process needs more time  
than the shell command is patient to wait. The perl process in most  
cases continues until success, but the return of the shell is empty  
and therefore my runrev prog never could be sure whether the upload  
process had been successful or not. I cannot do the upload in  
runrev native, because it is a special VPN context, which I could  
not solve in runrev native but in perl.


Q1: what is the prefigured waiting time of a shell command in runrev?
Q2: can I change this waiting time (let shell the time to work  
longer for long processes, before it returns control to runrev and  
says empty as result)



Thank you for any advice,

Franz

Mit freundlichen Grüßen
Franz Böhmisch

[EMAIL PROTECTED]
http://www.animabit.de
GF Animabit Multimedia Software GmbH
Am Sonnenhang 22
D-94136 Thyrnau
Tel +49 (0)8501-8538
Fax +49 (0)8501-8537
___
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: Sliders Images

2008-08-06 Thread H Baric
Hi and thanks Randy and Eric!

Now Randy, your script here makes perfect sense to me as a beginner! Eric's 
not so, but I want it to, so these two scripts I shall take away and learn 
from!

:)

Cheers,
Heather


- Original Message - 
From: Eric Chatonet [EMAIL PROTECTED]
To: How to use Revolution use-revolution@lists.runrev.com
Sent: Tuesday, August 05, 2008 11:42 PM
Subject: Re: Sliders  Images


Bonjour Randy,

I could not resist...
You could save your time using a more modular code :-)

on scrollbarDrag pValue
SetValue pValue --
end scrollbarDrag
-
on SetValue pValue
set the label of button Show and Say Answer to item pValue of
Show and Say Answer,Multiple Choice Game,Matching New Time,Add
Subtract New Time
end SetValue
-
on mouseUp
do InitGame  the thumbposition of me
end mouseUp
-
on InitGame1
-- hide and show stuff here
end InitGame1
-
on InitGame2
etc.

In addition, mouseRelease generally means that the user does not want
the action to occur then you might want to suppress it...
Hope it will give you some ideas ;-)

Le 5 août 08 à 15:25, Randy Hengst a écrit :

 Hi Heather,

 I just woke up and saw this thread and it looks like you've
 received plenty of good advice already. I'm a relative rookie at
 all this, but thought I'd share an example that might give you some
 ideas.

 I used a slider in program to help students practice telling time
 -- the slider is used to select the game. The slider values were
 set from 1 to 4. The movement of the slider changed the label of a
 button that denoted the game to be selected. Then on the mouseUp
 the game settings were put into place.

 take care,
 randy hengst

 on scrollbarDrag newValue
   switch newValue
   case 1
 set the label of button Show and Say Answer to Show and Say
 Answer
 break
   case 2
 set the label of button Show and Say Answer to Multiple
 Choice Game
 break
   case 3
 set the label of button Show and Say Answer to Matching New
 Time
 break
   case 4
 set the label of button Show and Say Answer to Add Subtract
 New Time
 break
   end switch
 end scrollbarDrag

 on mouseUp
   switch the thumbposition of me
   case 1
 set the label of button Show and Say Answer to Show and Say
 Answer
 lock screen
 -- hide and show stuff here
 unlock screen
 break
   case 2
 set the label of button Show and Say Answer to Multiple
 Choice Game
 lock screen
 -- hide and show stuff here
 unlock screen
 break
   case 3
 set the label of button Show and Say Answer to Matching New
 Time
 lock screen
 -- hide and show stuff here
 unlock screen
 break
   case 4
 set the label of button Show and Say Answer to Add Subtract
 New Time
 lock screen
 -- hide and show stuff here
 unlock screen
 break
   end switch
 end mouseUp

 on mouseRelease
   mouseUp
 end mouseRelease


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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: Getting the text content of a HTML page

2008-08-06 Thread H Baric
Wonderful Sarah! :)

Cheers,
Heather


- Original Message - 
From: Sarah Reichelt [EMAIL PROTECTED]
To: How to use Revolution use-revolution@lists.runrev.com
Sent: Wednesday, August 06, 2008 7:49 AM
Subject: Re: Getting the text content of a HTML page


On Tue, Aug 5, 2008 at 7:37 PM, H Baric [EMAIL PROTECTED] wrote:
 Wow Eric, great work! A valuable contribution to be sure :)

 I have found gold in the conference stacks especially! Thanks s much.
 Woohoo stop me now :-D

 I'm in Australia by the way (anyone else from Oz here?)


Yes, there are a few of us here. I'm in Queensland and there are some
in Melbourne, Sydney  Adelaide as well as several in NZ.
It's neat because we can ask a question and when we wake up, it will
have been answered :-)

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

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


File Name in Field?

2008-08-06 Thread H Baric
Just a quickie (I searched and cannot find):

On opening a text file with the dialog, and displaying the contents in a field: 
is there a way to retrieve just the filename? (so I can put it in it's own 
field)

tia :)

Cheers,
Heather

___
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: File Name in Field?

2008-08-06 Thread Mark Schonewille

Hi Heather,

After using the answer file or ask file command, you have the required  
information in the it variable.  Do with it whatever you like.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 6 aug 2008, at 12:15, H Baric wrote:


Just a quickie (I searched and cannot find):

On opening a text file with the dialog, and displaying the contents  
in a field: is there a way to retrieve just the filename? (so I can  
put it in it's own field)


tia :)

Cheers,
Heather


___
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: File Name in Field?

2008-08-06 Thread Eric Chatonet

Heather,

Le 6 août 08 à 12:15, H Baric a écrit :

On opening a text file with the dialog, and displaying the contents  
in a field: is there a way to retrieve just the filename? (so I can  
put it in it's own field)


local tFilePath, tFileName
answer file Choose a file:
if it  empty then
  put it into tFilePath
  put FilePathToShortFileName(tFilePath) into tFileName
  etc.

function FilePathToShortFileName pPath
  set the itemDelimiter to slash
  return item -1 of pPath
end FilePathToShortFileName

Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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: Creating variables

2008-08-06 Thread François Chaplais


Le 5 août 08 à 16:12, Eric Chatonet a écrit :


Bonjour Eric,

Le 6 juil. 08 à 22:38, Éric Miclo a écrit :


repeat for each line lineListOne in listOne
  repeat for each line lineListTwo in listTwo
put (lineListOne  lineListTwo) into varName
put test into varName
  end repeat
end repeat


put whatever into tContents
do put tContents into  varName

Best regards from Paris,
Eric Chatonet.



a more general digression on manipulating rev object by names and not  
by value:


as far as I am concerned, it seems to me that, for instance, if  
name is the long name of a filed, if you want to put empty into the  
field with name name, then you have to script

do put empty into  name
and then probably have to deal with the quotes in the long name (it  
seems I have had to do this countless times when executing a loop on  
object names in a group/card/whatever)


The OP was concerned to setting a variable value when knowing only  
its name, and Eric's answer was to use the do command. This is  
something I have used quite frequently in my HC days, but  
unfortunately use of the do command is severely restricted in  
standalones (with reasons I can understand).


I was hoping that the reference operator @ would do the trick, i.e.  
passing the name of the variable instead of the variable itself. The  
following button handler works:


---
on mouseUp
  put 1 into myVar
  doput hello,myVar
  answer myVar
end mouseUp

on doput theText,@theVarName
  put theText into theVarName
end doput
--

the following causes an execution error when trying to execute the  
doput handler


--
on mouseUp
  put 1 into myVar
  doput hello,myVar
  answer myVar
end mouseUp

on doput theText,@theVarName
  put theText into theVarName
end doput
--

If something similar could be done without using the do command,  
for instance by passing arguments by name (i.e. a string), I would be  
very happy to hear about it.

___
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: File Name in Field?

2008-08-06 Thread H Baric
Aha! Okay, so I was kind of on the right track, in my straightforward 
non-functiony beginners script - that didn't work :(

I tried to return item 2, 3... (oops) of  all kinds of things, including 
it and it in variable, without realising you have to set the delimiter 
thing first.

And -1 of course! Duh.

Okay, great got it.
Thanks once again Eric.
Just send me a bill for your wonderful services :D

Cheers,
Heather


- Original Message - 
From: Eric Chatonet [EMAIL PROTECTED]
To: How to use Revolution use-revolution@lists.runrev.com
Sent: Wednesday, August 06, 2008 8:39 PM
Subject: Re: File Name in Field?


Heather,

Le 6 août 08 à 12:15, H Baric a écrit :

 On opening a text file with the dialog, and displaying the contents
 in a field: is there a way to retrieve just the filename? (so I can
 put it in it's own field)

local tFilePath, tFileName
answer file Choose a file:
if it  empty then
   put it into tFilePath
   put FilePathToShortFileName(tFilePath) into tFileName
   etc.

function FilePathToShortFileName pPath
   set the itemDelimiter to slash
   return item -1 of pPath
end FilePathToShortFileName

Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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: Creating variables

2008-08-06 Thread Mark Schonewille

Hi François,

When a variable contains a reference to an object and you can't use  
the put command with that variable because it would change the  
variable rather than the object referred to, use the text property:


set the text of myFieldReference to some text

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 6 aug 2008, at 13:25, François Chaplais wrote:



Le 5 août 08 à 16:12, Eric Chatonet a écrit :


Bonjour Eric,

Le 6 juil. 08 à 22:38, Éric Miclo a écrit :


repeat for each line lineListOne in listOne
 repeat for each line lineListTwo in listTwo
   put (lineListOne  lineListTwo) into varName
   put test into varName
 end repeat
end repeat


put whatever into tContents
do put tContents into  varName

Best regards from Paris,
Eric Chatonet.



a more general digression on manipulating rev object by names and  
not by value:


as far as I am concerned, it seems to me that, for instance, if  
name is the long name of a filed, if you want to put empty into  
the field with name name, then you have to script

do put empty into  name
and then probably have to deal with the quotes in the long name (it  
seems I have had to do this countless times when executing a loop on  
object names in a group/card/whatever)


The OP was concerned to setting a variable value when knowing only  
its name, and Eric's answer was to use the do command. This is  
something I have used quite frequently in my HC days, but  
unfortunately use of the do command is severely restricted in  
standalones (with reasons I can understand).


I was hoping that the reference operator @ would do the trick, i.e.  
passing the name of the variable instead of the variable itself. The  
following button handler works:

snip___
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-2: waiting time of shell() + open process + proxy authentication in runrev

2008-08-06 Thread [EMAIL PROTECTED]
Mark S   Mark Sch

Thank you.
I got this advice using open process almost simultaneousely from the both 
Marks. 
Mark Schonewille added I should implement in runrev the protocol with an 
authenticated proxy instead of using shell - I tried but only had success in 
perl.

I wrote this perl script, put it into a custom prop and replaced the $variables 
with the runrev variables with the same name before running it with perl -e.
use strict; use LWP::UserAgent; use HTTP::Request::Common; my $ua = 
LWP::UserAgent-new; $ua-proxy(['http', 'ftp'], 'http://$proxyusername:[EMAIL 
PROTECTED]:8080/'); $ua-timeout(30);$ua-agent(Mozilla/4.0 (compatible; MSIE 
6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)); $ua-agent(Mozilla/4.0 
(compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)); my $req = 
POST 'http://$servername/admin/aniupload.cgi', Content_Type = 
'multipart/form-data', Content = [ pdftitel = '$dateiname', 
verzeichnis='$verzeichnis', filename = ['$quelldatei'] ]; 
$req-authorization_basic('$username', '$passwort'); $req-header('Accept' = 
'text/plain'); my $response = $ua-request($req); if ($response-is_success) { 
print $response-content; } else { die $response-status_line; } 
I had successfully implemented all in runrev but not the line

$ua-proxy(['http', 'ftp'], 'http://$proxyusername:[EMAIL PROTECTED]:8080/');

http://mail.runrev.com/pipermail/use-revolution/2008-April/109930.html (Answers 
to http://mail.runrev.com/pipermail/use-revolution/2008-April/109876.html)
did not work for me.

Regards, Franz
Mit freundlichen Grüßen
Franz Böhmisch

[EMAIL PROTECTED]
http://www.animabit.de
GF Animabit Multimedia Software GmbH
Am Sonnenhang 22
D-94136 Thyrnau
Tel +49 (0)8501-8538
Fax +49 (0)8501-8537


Original Messageprocessed by David InfoCenter 
Subject: Re: waiting time of shell() (06-Aug-2008 11:12)
From:Mark Smith [EMAIL PROTECTED]
To:  [EMAIL PROTECTED]


Perhaps you could try using , something like:


open process perlupload for read
repeat
wait 500 millisecs with messages
read from process perlupload until empty
put it into tResponse
if xyz is in it then
put it into tResponse
exit repeat
end if
end repeat

close process perlupload
put tResponse
___
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: Sliders Images

2008-08-06 Thread Kay C Lan
On Wed, Aug 6, 2008 at 5:27 PM, H Baric [EMAIL PROTECTED] wrote:


 Now Randy, your script here makes perfect sense to me as a beginner! Eric's
 not so, but I want it to, so these two scripts I shall take away and learn
 from!


You are doing extremely well to already have your head around switch
statements. There are long timers on this List who still shy away from them.

Whilst I would not deter you from learning from Eric's excellent example,
let me offer one really nice feature you can take advantage of with the
Switch statement; and that is the 'default' option.

switch myColour
  case red
redHandler
  break
  case green
   greenHandler
  break
  case blue
blueHandler
  break
  --handy feature during development
  default
answer I haven't covered the   myColour   situation. titled
Switch Error
breakpoint
end switch

In this case if you have an option menu, or a dialog box, or whatever, with
the three colour options and you decided to include all the colours of the
rainbow, if you forget to change your switch statement, you will
automatically be told, best of all if you have script debug mode turned on,
once you press OK to the answer dialog box that popped up to tell you about
the Switch error, the debugger will pop up and stop in the very Switch
statement that is missing the extra options! So easy to then fix :-)

Whilst I can normally remember to get the Switch statements sitting right
there in an option menu, I've really come to like Switch statements and my
scripts are now infested with them so I often forget some of the
ramifications of adding additional options. Default picks it up EVERY time.

My stacks are for me, so it doesn't matter if I leave these statements as
is, especially since I'll probably add a new option 2 months down the track
and completely forget again the ramifications that can have. On the other
hand, when you've gone final, it's easy enough to do a global search for
'default' and remove what would be useless lines of code in a perfect
product ;-)

Keep up the 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: Creating variables

2008-08-06 Thread Eric Chatonet

Bonjour François,

Le 6 août 08 à 13:25, François Chaplais a écrit :

as far as I am concerned, it seems to me that, for instance, if  
name is the long name of a filed, if you want to put empty into  
the field with name name, then you have to script

do put empty into  name


In Revolution, you can write:

put the long ID of fld MyField into tObj
put empty into tObj
set the showBorder of tObj to true
etc.

As soon as you have put a long name/ID into a variable, you can use   
it without any 'do' :-)

Secure and easy...

Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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: Creating variables

2008-08-06 Thread François Chaplais


Le 6 août 08 à 13:48, Eric Chatonet a écrit :


put the long ID of fld MyField into tObj
put empty into tObj
set the showBorder of tObj to true


I have tried this
-
on mouseUp
  put empty into fld 1
put the long ID of fld 1into tObj
put hello into tObj --- does not work, tObj now contains hello
end mouseUp
--
and it does not work (field stays empty, script executes). However
-
on mouseUp
  put empty into fld 1
put the long ID of fld 1into tObj
set the text of  tObj  to hello--- works
end mouseUp
---
works.

Best regards,
François
___
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: Sliders Images

2008-08-06 Thread H Baric
Wow cool, thanks Kay!

Let me tell you, from where I've been the last couple of years, to where I 
am now, being able to use my brain like this, when I didn't think I ever 
would again, receiving such kind encouragement from you guys is meaning an 
AWFUL lot :)

Hehemm excuse my soppiness!

And I'm just so excited to finally find a way of making one of my great 
ideas that I've had for ages a reality, and in way less time than I ever 
thought possible!

Rev, along with such an amazing community and resources is making it so 
easy, and sooo enjoyable :)

It's truly a Revolution for ME. I HATED school. But I LOVE learning and 
being creative. Rev Rox!

Right well, back to study before I ramble too much more (at this time of 
night my messages get way too long and deep hehe).

:)

Cheers,
Heather


- Original Message - 
From: Kay C Lan [EMAIL PROTECTED]
To: How to use Revolution use-revolution@lists.runrev.com
Sent: Wednesday, August 06, 2008 9:40 PM
Subject: Re: Sliders  Images


On Wed, Aug 6, 2008 at 5:27 PM, H Baric [EMAIL PROTECTED] wrote:


 Now Randy, your script here makes perfect sense to me as a beginner! 
 Eric's
 not so, but I want it to, so these two scripts I shall take away and learn
 from!


You are doing extremely well to already have your head around switch
statements. There are long timers on this List who still shy away from them.

Whilst I would not deter you from learning from Eric's excellent example,
let me offer one really nice feature you can take advantage of with the
Switch statement; and that is the 'default' option.

switch myColour
  case red
redHandler
  break
  case green
   greenHandler
  break
  case blue
blueHandler
  break
  --handy feature during development
  default
answer I haven't covered the   myColour   situation. titled
Switch Error
breakpoint
end switch

In this case if you have an option menu, or a dialog box, or whatever, with
the three colour options and you decided to include all the colours of the
rainbow, if you forget to change your switch statement, you will
automatically be told, best of all if you have script debug mode turned on,
once you press OK to the answer dialog box that popped up to tell you about
the Switch error, the debugger will pop up and stop in the very Switch
statement that is missing the extra options! So easy to then fix :-)

Whilst I can normally remember to get the Switch statements sitting right
there in an option menu, I've really come to like Switch statements and my
scripts are now infested with them so I often forget some of the
ramifications of adding additional options. Default picks it up EVERY time.

My stacks are for me, so it doesn't matter if I leave these statements as
is, especially since I'll probably add a new option 2 months down the track
and completely forget again the ramifications that can have. On the other
hand, when you've gone final, it's easy enough to do a global search for
'default' and remove what would be useless lines of code in a perfect
product ;-)

Keep up the 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: Creating variables

2008-08-06 Thread François Chaplais


Le 6 août 08 à 13:34, Mark Schonewille a écrit :


Hi François,

When a variable contains a reference to an object and you can't use  
the put command with that variable because it would change the  
variable rather than the object referred to, use the text property:


set the text of myFieldReference to some text




thanks. indeed,

on mouseUp
  put the long name of fld 1 into myFldName
  ask type text
  set the text of fld myFldName to it
end mouseUp

works.
this also works:
---
on mouseUp
  put the long name of me into theName
  ask what
  set the myProp of theName to it
end mouseUp
--
works. If this can be generalized, does this mean that setting  
properties of objects referenced by name strings is possible in general?

(I just read Eric's post, and it seems the answer is yes).


However, this does not address the issue of the OP, which want to set  
the value of variable referenced by name. value is a function and  
not a property (is this right?), so it does not do the trick.


Best regards,
François
___
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: Creating variables

2008-08-06 Thread Eric Chatonet
I'm sorry, I was a bit quick: all this works when getting/setting  
properties only:


put the long ID of fld MyField into tObj
set the text of tObj to empty


Le 6 août 08 à 14:22, François Chaplais a écrit :


Le 6 août 08 à 13:48, Eric Chatonet a écrit :


put the long ID of fld MyField into tObj
put empty into tObj
set the showBorder of tObj to true


I have tried this
-
on mouseUp
  put empty into fld 1
put the long ID of fld 1into tObj
put hello into tObj --- does not work, tObj now contains hello
end mouseUp
--
and it does not work (field stays empty, script executes). However
-
on mouseUp
  put empty into fld 1
put the long ID of fld 1into tObj
set the text of  tObj  to hello--- works
end mouseUp
---
works.

Best regards,
François


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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


OOPS! Can't Undo Deleted Objects

2008-08-06 Thread H Baric
My mouse cursor wasn't where it was supposed to be (the search field in the 
dictionary), but on a button which I was in the middle of writing a script for, 
and I hit the delete key. 

The script editor has sprung a close or copy  close on me, so I copied and 
closed. My UNDO won't play, and I can't get the object back.

Sure, I can redo the object and paste in the script again. But why is it that I 
can't get objects back when I accidently delete them? I had to ask, because I 
lost a whole group earlier (A NOOO) and when it was clear they weren't 
returning from the grave, I just abandoned it all with the mega gr's.

?

Cheers,
Heather
___
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


Does Palette command work?

2008-08-06 Thread dfepstein
Using Rev Media 2.9 in Windows XP

palette stack a -- no effect
go stack a as palette -- works correctly

Do others experience this?

David Epstein
___
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: Creating variables

2008-08-06 Thread François Chaplais


Le 6 août 08 à 14:26, Eric Chatonet a écrit :

I'm sorry, I was a bit quick: all this works when getting/setting  
properties only:


put the long ID of fld MyField into tObj
set the text of tObj to empty




I think I have found a workaround for working with variables  
referenced by names. It involves custom property sets. These can be  
referenced by name. Here is an button script example:


on mouseUp
  ask Custom property set? with example
  if it is empty then
exit mouseup
  end if
  put it into theName
  set the customPropertySet of me to theName
  put the customproperties[thename] of me into myProps
  --  creation of variable by asking name; can be replaced by  
anything that returns a string

  ask Name of pseudo variable: with anExample
  put it into varName
  if varName is empty then
exit mouseup
  end if
  -- assigning value of variable anything will do, I think, since  
this is a custom property

  ask value of variable  varName -- put your code here
  if it is empty then
exit mouseup
  end if
  put it into myProps[varName]
  set customproperties[thename] of me to myProps -- value is set
  answer Do you want to retrieve the value of your variable? with  
Cancel or OK

  if it is OK then -- retrieve variable value
put the customproperties[thename] of me into myProps
get myProps[varName]
answer This is the value of variable  varName  :  it
  end if
end mouseUp

I think this can be made pretty generic and split into several  
independent handlers/functions. Moreover the variables can be  
accessed globally and are stored in the stack file upon save. haven't  
tried in in a standalone for the moment, though.


Best regards,
François
___
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: engine crash on open stack

2008-08-06 Thread Bernard Devlin
The stack file format changed in 2.7.  That shouldn't cause the engine to
crash the engine (but who knows, I can make it crash doing very simple
things that shouldn't crash it).  Is it possible that you can open the stack
in a version of Rev that is pre-2.7?  If that works, then it looks like that
may be the cause of the problem.

Bernard
___
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: Does Palette command work?

2008-08-06 Thread Jan Schenkel
--- [EMAIL PROTECTED] wrote:
 Using Rev Media 2.9 in Windows XP
 
 palette stack a -- no effect
 go stack a as palette -- works correctly
 
 Do others experience this?
 
 David Epstein
 

Hi David,

That's one of the built-in limitations of Rev Media,
along with database access and a few other things -
which makes sense not only to justify the price
difference and promote upgrading to Rev Studio.
Remember that Rev Media is meant as an authoring tool
rather than a full-blown developer tool.

Jan Schenkel.

Quartam Reports  PDF Library for Revolution
http://www.quartam.com

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


  
___
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] NativeSpeak 2008 - Free starter kit edition !

2008-08-06 Thread Girard Damien

Dear Revolution users,

We are pleased to announce NativeSpeak 2008, with a FREE Starter Kit 
Edition. Now you can try out this brand new RevSelect program for 
yourself and see how easy it is to make great looking localized 
applications.


New in NativeSpeak 2008:

- -Free Starter Kit Edition
   - - All features available for you to try
   - - Even distribute your own applications!

Also
- Improved speed and reliability.
- Other enhancements and bug fixes.

---
NativeSpeak Starter Kit Edition ---
---
The Starter Kit Edition is a free edition of NativeSpeak, with it you 
can use the complete power of NativeSpeak inside simple applications for 
free.


Compare your program created using NativeSpeak, with one made without 
its help, and see how much more professional it looks, and how much time 
you save!


To use the Starter Kit Edition, simply download NativeSpeak 2008:

http://dam-pro.com/index.php?option=com_contentview=articleid=21Itemid=32

and in the license manager select Starter Kit Edition.

NativeSpeak Starter Kit Edition:
- Create little application that use the incredible NativeSpeak 
Translation/Geometry Manager!

- Limitations:
- - 15 objects by database.
- - 15 text string Skip by database.
- - 2 databases can be loaded in the same time.

Regards,

--
Damien Girard
Dam-pro CEO.
http://www.dam-pro.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: Does Palette command work?

2008-08-06 Thread Klaus Major

Hi Jan


--- [EMAIL PROTECTED] wrote:

Using Rev Media 2.9 in Windows XP
palette stack a -- no effect
go stack a as palette -- works correctly
Do others experience this?
David Epstein


Hi David,
That's one of the built-in limitations of Rev Media,


OK, but if:
- palette stack a
does not work in Rev Media and
- go stack a as palette
DOES work, then this is a halfbaked and useless limitation
(or none at all) in my opinion :-)


along with database access and a few other things -
which makes sense not only to justify the price
difference and promote upgrading to Rev Studio.
Remember that Rev Media is meant as an authoring tool
rather than a full-blown developer tool.

Jan Schenkel.

Quartam Reports  PDF Library for Revolution
http://www.quartam.com


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: Creating variables

2008-08-06 Thread Eric Chatonet

To be frank, I don't understand:
Below is your code snippet simplified.
What it does?
It stores a variable into a custom property: so far so good ;-)
But what more?
Please, enlighten me :-)

on mouseUp
   ask Name of pseudo variable: with anExample
   if it is empty then exit mouseUp
   put it into varName
   ask value of variable  varName
   if it is empty then exit mouseUp
   put it into varValue
   set the myProps[varName] of me to varValue
   answer Do you want to retrieve the value of your variable? with  
Cancel or OK

   if it is OK then
  answer This is the value of variable  varName  :  the  
myProps[varName] of me

   end if
end mouseUp

Le 6 août 08 à 15:41, François Chaplais a écrit :

I think I have found a workaround for working with variables  
referenced by names. It involves custom property sets. These can be  
referenced by name. Here is an button script example:


on mouseUp
  ask Custom property set? with example
  if it is empty then
exit mouseup
  end if
  put it into theName
  set the customPropertySet of me to theName
  put the customproperties[thename] of me into myProps
  --  creation of variable by asking name; can be replaced by  
anything that returns a string

  ask Name of pseudo variable: with anExample
  put it into varName
  if varName is empty then
exit mouseup
  end if
  -- assigning value of variable anything will do, I think, since  
this is a custom property

  ask value of variable  varName -- put your code here
  if it is empty then
exit mouseup
  end if
  put it into myProps[varName]
  set customproperties[thename] of me to myProps -- value is set
  answer Do you want to retrieve the value of your variable? with  
Cancel or OK

  if it is OK then -- retrieve variable value
put the customproperties[thename] of me into myProps
get myProps[varName]
answer This is the value of variable  varName  :  it
  end if
end mouseUp

I think this can be made pretty generic and split into several  
independent handlers/functions. Moreover the variables can be  
accessed globally and are stored in the stack file upon save.  
haven't tried in in a standalone for the moment, though.


Best regards,
François


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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: Creating variables

2008-08-06 Thread Richard Gaskin

Eric Chatonet wrote:
 In Revolution, you can write:

 put the long ID of fld MyField into tObj
 put empty into tObj
 set the showBorder of tObj to true
 etc.

 As soon as you have put a long name/ID into a variable, you can use
 it without any 'do' :-)
 Secure and easy...

...and fast.

In Rev, scripts are runtime-compiled, so you'll generally see some 
amazing speed with most operations.  But do and send can't be 
compiled on load like everything else, since the strings they operate on 
need to be assembled at runtime.  As a result, do and send will run 
more slowly than compilable alternatives like the example Eric noted above.



François Chaplais wrote:
 I think I have found a workaround for working with variables
 referenced by names. It involves custom property sets.
 Moreover the variables can be accessed globally and are stored in
 the stack file upon save. haven't tried in in a standalone for the
 moment, though.

The OS prevents applications from modifying themselves, so any 
modifiable data that you want to save will need to be stored separately 
from the stack file that becomes the standalone.


For good info on saving data in standalones check out this article at 
revJournal.com:


Saving data in Revolution standalones
by Sarah Reichelt
http://www.revjournal.com/tutorials/saving_data_in_revolution.html

--
 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: OOPS! Can't Undo Deleted Objects

2008-08-06 Thread Kay C Lan
On Wed, Aug 6, 2008 at 9:02 PM, H Baric [EMAIL PROTECTED] wrote:

 My UNDO won't play, and I can't get the object back.


Sorry, can't help you with resurrection, at least not the type you're asking
about, but just in case you aren't aware: Rev Menu -- Development --
Plugins  -- revSmartSave. Authored by the famous Frederic Rinaldi, it might
provide a little insurance should the unfortunate happen again. Remember
though that if you set the number too low ( 30 sec) it will probably save
before you have time to Revert back to prior the accidental deletion.

Personally I just manually save save save as I go, and if the unfortunate
should happen and Undo doesn't work, it's a simple matter of Revert and 30
sec of work has been wasted.

For the record, normally you can place objects, delete them, Undo, and they
will come back. Not sure why it didn't work in this instance:-(

HTH
___
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: OOPS! Can't Undo Deleted Objects

2008-08-06 Thread Mikey
I believe GLX2 also archives versions.
___
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


sqlite: text dump

2008-08-06 Thread David Bovill
Is there a fast way to write out revs sqlite db to a text file. I need to
create a regularly versioned database - that is an index which relates to
the contents of data in a subversion repository. I'd rather not use binaries
as they would over time require too much storage. The idea would be to do a
quick text based dump of the database on each commit. Is this possible /
fast enough in revs sqlite?*

Context*
I'm finishing off a code database for RunRev and need to store indexes that
point to the controls that the handlers are in. The code is stored as text
files for each control, and the indexes need point to these and keep track
as the code is moved around during development - so the index / database
would differ for each revision (ie revision 678 would differ from from
revision 679 and so would the index / database).
___
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: OOPS! Can't Undo Deleted Objects

2008-08-06 Thread Mikey
By the way, is there some place where these plugins are documented?
-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
and did a little diving.
And God said, This is good.
___
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


HTML Color Codes

2008-08-06 Thread H Baric
Last one before I jump into bed and thaw out after sitting at a computer for 
hours... 

I was wondering how to translate the RGB names to the HTML equivalent when user 
selects color with the Color Dialog. For such use as with a html page generator.

If it doesn't exist already (though surely it's been done before, and I just 
can't find it): am I on the right track thinking that an array would be used to 
hold both code sets, then a function returns the html equivalent rather than 
the RGB? Or something!

Though I know hardly anything about arrays, never used them - only very vaguely 
know what they are and what they do. Kind of.

As I'm off to bed, I'll read up on them, then doze off to the sound of a script 
typewriter clacking in my Rev-Brainwashed noggin. :D

Tia and Goodnight til Oz morn!

Cheers,
Heather

___
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: OOPS! Can't Undo Deleted Objects

2008-08-06 Thread H Baric
Thanks! I'll certainly check it out. Though I'm normally a fanatic saver as 
I goer too, as I do a bit of graphic and (basic) web design. An auto save of 
sorts would be handy if this keeps happening!

Cheers,
Heather


- Original Message - 
From: Kay C Lan [EMAIL PROTECTED]
To: How to use Revolution use-revolution@lists.runrev.com
Sent: Thursday, August 07, 2008 12:58 AM
Subject: Re: OOPS! Can't Undo Deleted Objects


On Wed, Aug 6, 2008 at 9:02 PM, H Baric [EMAIL PROTECTED] wrote:

 My UNDO won't play, and I can't get the object back.


Sorry, can't help you with resurrection, at least not the type you're asking
about, but just in case you aren't aware: Rev Menu -- Development --
Plugins  -- revSmartSave. Authored by the famous Frederic Rinaldi, it might
provide a little insurance should the unfortunate happen again. Remember
though that if you set the number too low ( 30 sec) it will probably save
before you have time to Revert back to prior the accidental deletion.

Personally I just manually save save save as I go, and if the unfortunate
should happen and Undo doesn't work, it's a simple matter of Revert and 30
sec of work has been wasted.

For the record, normally you can place objects, delete them, Undo, and they
will come back. Not sure why it didn't work in this instance:-(

HTH
___
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: OOPS! Can't Undo Deleted Objects

2008-08-06 Thread H Baric
Thanks Mikey!

Cheers,
Heather


- Original Message - 
From: Mikey [EMAIL PROTECTED]
To: How to use Revolution use-revolution@lists.runrev.com
Sent: Thursday, August 07, 2008 1:00 AM
Subject: Re: OOPS! Can't Undo Deleted Objects


I believe GLX2 also archives versions.
___
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 Color Codes

2008-08-06 Thread Eric Chatonet
If you would have searched for 'color' or 'rgb' using the Rev Search  
Engine Web database, you would have found:

http://www.sweattechnologies.com/rev/
And Monte Goulding excellent library: libColor :-)


Le 6 août 08 à 17:17, H Baric a écrit :

I was wondering how to translate the RGB names to the HTML  
equivalent when user selects color with the Color Dialog. For such  
use as with a html page generator.



Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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: OOPS! Can't Undo Deleted Objects

2008-08-06 Thread Mikey
Don't thank me yet.  Check first.

If I'm right, the advantage of GLX2 is that it archives your stacks in their
current state, which is (to me anyway) more valuable than just saving them
periodically.

-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
and did a little diving.
And God said, This is good.
___
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: Creating variables

2008-08-06 Thread François Chaplais


Le 6 août 08 à 16:53, Eric Chatonet a écrit :


To be frank, I don't understand:
Below is your code snippet simplified.
What it does?
It stores a variable into a custom property: so far so good ;-)
But what more?
Please, enlighten me :-)

on mouseUp
   ask Name of pseudo variable: with anExample
   if it is empty then exit mouseUp
   put it into varName
   ask value of variable  varName
   if it is empty then exit mouseUp
   put it into varValue
   set the myProps[varName] of me to varValue
   answer Do you want to retrieve the value of your variable?  
with Cancel or OK

   if it is OK then
  answer This is the value of variable  varName  :   
the myProps[varName] of me

   end if
end mouseUp




the OP's code was

I did try this:

repeat for each line lineListOne in listOne
  repeat for each line lineListTwo in listTwo
put test into (lineListOne  lineListTwo)
  end repeat
end repeat

and this (though I was sure it didn't work):

repeat for each line lineListOne in listOne
  repeat for each line lineListTwo in listTwo
put (lineListOne  lineListTwo) into varName
put test into varName
  end repeat
end repeat

and some other variants (using the value of...) but nothing is  
working.


Is that possible or do I have to manually initialize the  
variables that way:


put test into A1
put test into A2


I interpreted this code as an attempt to manipulate a variable  
designated by name only . I have not found a way to do so without  
using the do command, which you rightfully pointed out as a  
solution  (but perhaps someone in the list knows of another way).


My only point is that custom properties are a way to store and  
retrieve data labeled with a string which is itself stored in a  
variable. It is probable that arrays would also do the trick, but I  
do not know arrays enough to elaborate on this.


My apologies if I am not very clear, but Revolution programming is  
just a hobby to me and since I am on vacation, I have some time to  
experiment some code, this should be over next week :-(


Best regards,
François
___
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


Are crash reports useful

2008-08-06 Thread Bernard Devlin
Since using Rev on Vista in the past few months I manage to crash the IDE
almost every day, sometimes up to 4 times a day.  It's hard to say what it
is that is causing the crash.  Sometimes just working with the debugger
(either GLX2 or the Rev native one), and clicking on a line or scrolling or
moving the mouse will cause the crash.  Are these kinds of crash reports of
any use?

Problem signature:
  Problem Event Name:APPCRASH
  Application Name:Revolution.exe
  Application Version:2.9.0.610
  Application Timestamp:47f4e195
  Fault Module Name:ntdll.dll
  Fault Module Version:6.0.6000.16386
  Fault Module Timestamp:4549bdc9
  Exception Code:c005
  Exception Offset:000620e3
  OS Version:6.0.6000.2.0.0.768.3
  Locale ID:2057
  Additional Information 1:7a27
  Additional Information 2:16640c7e27f99d414fc9152a5811d877
  Additional Information 3:7917
  Additional Information 4:af727dc1fb4fc0b77ddd4f47eaa24864

Bernard
___
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: Are crash reports useful

2008-08-06 Thread Mark Schonewille

Hi Bernard,

I'd just report all crashes. If you think that they are similar or if  
you just can't find any pattern at all, you can report them all under  
the same bug number. If you find a reason for a crash, you can report  
it under a separate bug number. You might want to send this kind of  
questions to support.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 6 aug 2008, at 18:12, Bernard Devlin wrote:

Since using Rev on Vista in the past few months I manage to crash  
the IDE
almost every day, sometimes up to 4 times a day.  It's hard to say  
what it
is that is causing the crash.  Sometimes just working with the  
debugger
(either GLX2 or the Rev native one), and clicking on a line or  
scrolling or
moving the mouse will cause the crash.  Are these kinds of crash  
reports of

any use?

Problem signature:
 Problem Event Name:APPCRASH
 Application Name:Revolution.exe
 Application Version:2.9.0.610
 Application Timestamp:47f4e195
 Fault Module Name:ntdll.dll
 Fault Module Version:6.0.6000.16386
 Fault Module Timestamp:4549bdc9
 Exception Code:c005
 Exception Offset:000620e3
 OS Version:6.0.6000.2.0.0.768.3
 Locale ID:2057
 Additional Information 1:7a27
 Additional Information 2:16640c7e27f99d414fc9152a5811d877
 Additional Information 3:7917
 Additional Information 4:af727dc1fb4fc0b77ddd4f47eaa24864

Bernard


___
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 Color Codes

2008-08-06 Thread Mark Wieder
Heather-

Wednesday, August 6, 2008, 8:17:36 AM, you wrote:

 I was wondering how to translate the RGB names to the HTML
 equivalent when user selects color with the Color Dialog. For such
 use as with a html page generator.

...I'd point you towards Eric's own Color Picker plugin, which you can
find at http://www.sosmartsoftware.com/?r=revolutionl=en

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


Re: Are crash reports useful

2008-08-06 Thread J. Landman Gay

Bernard Devlin wrote:

Since using Rev on Vista in the past few months I manage to crash the IDE
almost every day, sometimes up to 4 times a day.  It's hard to say what it
is that is causing the crash.  Sometimes just working with the debugger
(either GLX2 or the Rev native one), and clicking on a line or scrolling or
moving the mouse will cause the crash.  Are these kinds of crash reports of
any use?

Problem signature:
  Problem Event Name:APPCRASH
  Application Name:Revolution.exe
  Application Version:2.9.0.610
  Application Timestamp:47f4e195
  Fault Module Name:ntdll.dll
  Fault Module Version:6.0.6000.16386
  Fault Module Timestamp:4549bdc9
  Exception Code:c005
  Exception Offset:000620e3
  OS Version:6.0.6000.2.0.0.768.3
  Locale ID:2057
  Additional Information 1:7a27
  Additional Information 2:16640c7e27f99d414fc9152a5811d877
  Additional Information 3:7917
  Additional Information 4:af727dc1fb4fc0b77ddd4f47eaa24864



Better is to follow these instructions:

***
There is a new preference in the General pane of the Revolution 
Preference dialog called 'Crash reporting on Windows XP'. This 
determines the type of crash log written out when the engine encounters 
a serious error (if it is running on Windows XP). The setting of 'None' 
causes no log to be generated, the setting of 'Small' causes an outline 
crash log to be generated and the setting of 'Medium' causes a more 
verbose and larger crash log to be generated.


Any crash logs generated when this option is not set to 'None' can be 
found in the folder:
  Documents and Settings/username/Application Data/Runtime 
Revolution/Revolution edition type/Crash Logs


They are named with the version and time and date of launch of the IDE 
which eventually crashed.


The setting of this preference only take effect the next time you 
startup the IDE.

***

Although it says XP I believe the reports also work on Vista. The 
location of the log on Vista should be in user name/AppData. Create a 
bug report in the QCC and paste the log info into it. That will help the 
team track down the cause. Please do submit a bug report, as crashes get 
top priority. Set the status of your report as critical.


--
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: Are crash reports useful

2008-08-06 Thread Eric Chatonet

Bonsoir Jacque,

All you say is relevant as usual :-)
But I would add (because I discussed some times ago with Mark  
Waddingham) that these extended Win logs are not readable by us, poor  
humans, but by Runrev only.
So, it's a bit frustrating to make the effort to send something you  
absolutely don't understand.
Some header in clear would help... and not feel as we were guinea  
pigs only ;-)

The result: a few crash reports are finally sent.

Le 6 août 08 à 19:27, J. Landman Gay a écrit :


Bernard Devlin wrote:
Since using Rev on Vista in the past few months I manage to crash  
the IDE
almost every day, sometimes up to 4 times a day.  It's hard to say  
what it
is that is causing the crash.  Sometimes just working with the  
debugger
(either GLX2 or the Rev native one), and clicking on a line or  
scrolling or
moving the mouse will cause the crash.  Are these kinds of crash  
reports of

any use?
Problem signature:
  Problem Event Name:APPCRASH
  Application Name:Revolution.exe
  Application Version:2.9.0.610
  Application Timestamp:47f4e195
  Fault Module Name:ntdll.dll
  Fault Module Version:6.0.6000.16386
  Fault Module Timestamp:4549bdc9
  Exception Code:c005
  Exception Offset:000620e3
  OS Version:6.0.6000.2.0.0.768.3
  Locale ID:2057
  Additional Information 1:7a27
  Additional Information 2:16640c7e27f99d414fc9152a5811d877
  Additional Information 3:7917
  Additional Information 4:af727dc1fb4fc0b77ddd4f47eaa24864


Better is to follow these instructions:

***
There is a new preference in the General pane of the Revolution  
Preference dialog called 'Crash reporting on Windows XP'. This  
determines the type of crash log written out when the engine  
encounters a serious error (if it is running on Windows XP). The  
setting of 'None' causes no log to be generated, the setting of  
'Small' causes an outline crash log to be generated and the setting  
of 'Medium' causes a more verbose and larger crash log to be  
generated.


Any crash logs generated when this option is not set to 'None' can  
be found in the folder:
  Documents and Settings/username/Application Data/Runtime  
Revolution/Revolution edition type/Crash Logs


They are named with the version and time and date of launch of the  
IDE which eventually crashed.


The setting of this preference only take effect the next time you  
startup the IDE.

***

Although it says XP I believe the reports also work on Vista. The  
location of the log on Vista should be in user name/AppData.  
Create a bug report in the QCC and paste the log info into it. That  
will help the team track down the cause. Please do submit a bug  
report, as crashes get top priority. Set the status of your report  
as critical.


--
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: Are crash reports useful

2008-08-06 Thread Mark Schonewille
I have to agree with Eric. Not just because I can't read those logs,  
but I can't check whether there is no information in those logs that  
shouldn't leave my computer, e.g. with regard to any confidential  
projects. If I can't see what I send into the public (the QCC is  
public) I'd rather not send it at all.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 6 aug 2008, at 19:45, Eric Chatonet wrote:


Bonsoir Jacque,

All you say is relevant as usual :-)
But I would add (because I discussed some times ago with Mark  
Waddingham) that these extended Win logs are not readable by us,  
poor humans, but by Runrev only.
So, it's a bit frustrating to make the effort to send something you  
absolutely don't understand.
Some header in clear would help... and not feel as we were guinea  
pigs only ;-)

The result: a few crash reports are finally sent.


___
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: Are crash reports useful

2008-08-06 Thread Eric Chatonet
I  give Runrev credit for not being interested in the code itself but  
in solving bugs only :-)

But it does not change anything to what we said both of us.

Le 6 août 08 à 19:54, Mark Schonewille a écrit :

I have to agree with Eric. Not just because I can't read those  
logs, but I can't check whether there is no information in those  
logs that shouldn't leave my computer, e.g. with regard to any  
confidential projects. If I can't see what I send into the public  
(the QCC is public) I'd rather not send it at all.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x- 
talk.com/server.html for more info.


On 6 aug 2008, at 19:45, Eric Chatonet wrote:


Bonsoir Jacque,

All you say is relevant as usual :-)
But I would add (because I discussed some times ago with Mark  
Waddingham) that these extended Win logs are not readable by us,  
poor humans, but by Runrev only.
So, it's a bit frustrating to make the effort to send something  
you absolutely don't understand.
Some header in clear would help... and not feel as we were guinea  
pigs only ;-)

The result: a few crash reports are finally sent.


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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: Are crash reports useful

2008-08-06 Thread J. Landman Gay

Eric Chatonet wrote:

Bonsoir Jacque,

All you say is relevant as usual :-)
But I would add (because I discussed some times ago with Mark 
Waddingham) that these extended Win logs are not readable by us, poor 
humans, but by Runrev only.
So, it's a bit frustrating to make the effort to send something you 
absolutely don't understand.
Some header in clear would help... and not feel as we were guinea pigs 
only ;-)

The result: a few crash reports are finally sent.


True. But I think if that's what RR needs to diagnose the crash, then we 
need to send it. If we do not, Mark won't have the info he needs to work 
on the problem.


--
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: Are crash reports useful

2008-08-06 Thread Eric Chatonet

Dear Jacque,

I don't want to enter into a debate but...
These logs are encrypted:
If I trust Runrev as they trust me *, there is no need to encrypt  
anything.

If it's encrypted (as said Mark S.), I'm right to ask me questions ;-)

In addition, I'll add that, AFAIK, only advanced users are able to  
know where these logs are and send them to Runrev:

So why so much secret?

I let you report this thread to Mark W. ;-)

* I could have put anything I wanted in the Rev Search Engine,  
including any url leading to any website.

Of course I never did it: Runrev trusted me and I trust them :-)

Le 6 août 08 à 20:48, J. Landman Gay a écrit :


Eric Chatonet wrote:

Bonsoir Jacque,
All you say is relevant as usual :-)
But I would add (because I discussed some times ago with Mark  
Waddingham) that these extended Win logs are not readable by us,  
poor humans, but by Runrev only.
So, it's a bit frustrating to make the effort to send something  
you absolutely don't understand.
Some header in clear would help... and not feel as we were guinea  
pigs only ;-)

The result: a few crash reports are finally sent.


True. But I think if that's what RR needs to diagnose the crash,  
then we need to send it. If we do not, Mark won't have the info he  
needs to work on the problem.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.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: Are crash reports useful

2008-08-06 Thread J. Landman Gay

Eric Chatonet wrote:

Dear Jacque,

I don't want to enter into a debate but...


Nope, me either.


These logs are encrypted:
If I trust Runrev as they trust me *, there is no need to encrypt anything.
If it's encrypted (as said Mark S.), I'm right to ask me questions ;-)


I didn't know RR encrypted them, I always thought they were in the form 
provided by the OS. I guess we'll have to find out.




In addition, I'll add that, AFAIK, only advanced users are able to know 
where these logs are and send them to Runrev:

So why so much secret?


It isn't particularly secret, the text I quoted was from the engine 
change log a few versions back. I think it was 2.7, but I don't remember 
which version exactly because I copied it to a stack I use when 
answering questions in the tech support queue. I give out that info all 
the time to customers, because Mark has told me that those logs are the 
best way for him to diagnose crashes.




I let you report this thread to Mark W. ;-)


Ok.



* I could have put anything I wanted in the Rev Search Engine, including 
any url leading to any website.

Of course I never did it: Runrev trusted me and I trust them :-)


I don't think they are trying to be sneaky. I'll try to find out who is 
encrypting the log though. I really did think it was from the OS, but I 
never paid it very much attention. I have no reason to think that RR 
would be interested in anyone's private information. They have always 
been very discrete with any sample stacks customers submit. Everything 
sent to support is always treated as extremely confidential.


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


Removing CRLF from text

2008-08-06 Thread mfstuart

Hi,

RunRev: 2.90
OS: WinXP

I have a situation where a software application's ini file has the plus (+)
char and CRLF at the end of a line, when the line passes 80 characters. The
balance of the ini entry is placed on the next line. Each ini entry could be
very long and possibly go to 3 lines.
Why they did this I don't know, really.

But what I need to do is remove the + and CRLF so that each ini entry is
complete in itself, on one line.

ini file currently contains:
dfgsdfg sdfgsd fgsdfgsdf gsdfg +
sdfgadfs dgdghs dfdfgg fghf+
dfgh dfgh

Result I'd like after running the script:
dfgsdfg sdfgsd fgsdfgsdf gsdfg sdfgadfs dgdghs dfdfgg fghf dfgh dfgh

I've used this script, and variations of it, to remove these characters: +
CRLF.
It removes the + char, but still leaves each ini entry split into multiple
lines.

I've also searched the archives for a solution, nothing is working.

Any ideas?


My script:

on mouseUp
  --clear current fields on card
  --these fields are so that I can see the results from the script.
  put empty into fld Orig
  put empty into fld Changed

  --fetch the file
  put C:/temp/some.ini into tFilename
  put URL (file:  tFilename) into tData
  put tData into fld Orig
  
  repeat for each line L in tData
--grab the line
put L into tLine

--If the line contains +, then it will also contain CR and LF,
--so only work on a line with +.
if (tLine contains +) then
  --find + and delete it
  put offSet(+,tLine) into tPos
  delete char tPos to tPos in tLine
  
  --find CR and delete it
  put offSet(CR,tLine) into tPos
  delete char tPos to tPos in tLine
  
  --find LF and delete it
  put offSet(LF,tLine) into tPos
  delete char tPos to tPos in tLine
  
  --put the line into a container so that I can see the results
  put tLine  cr after theLines
else  -- just put the line into a container
  put tLine  cr after theLines
end if
  end repeat
  
  put theLines into fld Changed
end mouseUp


Regards,
Mark Stuart
-- 
View this message in context: 
http://www.nabble.com/Removing-CRLF-from-text-tp18862004p18862004.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


engine crash on open stack

2008-08-06 Thread Larry Forsgren

Thank you for your help.

Unfortunately suppressing error messages does not 
do it.


The engine crashes and closes immediately and at 
the exact moment I choose to open the stack.


If I remember correctly the last command I put in 
a script was 'set fixedLineHeight to false'.


After that I continued to run the stack for a 
while without problems. The crash problem occured 
when I reopened Revolution the next time.


Perhaps it is also important to mention that I am 
developing under Windows Vista.


Regards
Larry
___
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: Removing CRLF from text

2008-08-06 Thread J. Landman Gay

mfstuart wrote:


I've used this script, and variations of it, to remove these characters: +
CRLF.
It removes the + char, but still leaves each ini entry split into multiple
lines.


snip


  repeat for each line L in tData


When a script gets a line of text, the engine omits the end of line 
character(s) and returns only the text of the line itself. That is why 
the lines stay separated, since the line delimiters are left intact. (It 
works just like items; when you get an item from a string, the comma is 
not included.) Instead of working on each line, work on the entire block 
of text as a whole. You should be able to do it like this:


put URL (file:  tFilename) into tData
put +CRLF into tChars
replace tChars with space in tData

--
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: Removing CRLF from text

2008-08-06 Thread Sarah Reichelt
 I have a situation where a software application's ini file has the plus (+)
 char and CRLF at the end of a line, when the line passes 80 characters. The
 balance of the ini entry is placed on the next line. Each ini entry could be
 very long and possibly go to 3 lines.
 Why they did this I don't know, really.

 But what I need to do is remove the + and CRLF so that each ini entry is
 complete in itself, on one line.

 ini file currently contains:
 dfgsdfg sdfgsd fgsdfgsdf gsdfg +
 sdfgadfs dgdghs dfdfgg fghf+
 dfgh dfgh

 Result I'd like after running the script:
 dfgsdfg sdfgsd fgsdfgsdf gsdfg sdfgadfs dgdghs dfdfgg fghf dfgh dfgh


what about:

   replace +  CRLF with empty in tData

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: engine crash on open stack

2008-08-06 Thread Sarah Reichelt
On Thu, Aug 7, 2008 at 10:18 AM, Larry Forsgren [EMAIL PROTECTED] wrote:
 Thank you for your help.

 Unfortunately suppressing error messages does not do it.

You don't want to suppress errors, you want to suppress messages.
These are side by side on the toolbar, but to make sure you have the
right one chosen, check the Development menu before opening your
problem stack. Make sure Suppress messages is checked.

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: OOPS! Can't Undo Deleted Objects

2008-08-06 Thread Kay C Lan
On Wed, Aug 6, 2008 at 11:41 PM, Mikey [EMAIL PROTECTED] wrote:

 Don't thank me yet.  Check first.

 If I'm right, the advantage of GLX2 is that it archives your stacks in
 their
 current state, which is (to me anyway) more valuable than just saving them
 periodically.


Yes, GLX2 most certainly does have the option to set up auto-save and
auto-archive. I was just offering FREE with Rev solutions just in case
Heather does not have GLX2.

(Of course if your looking for an excellent addition to your Rev experience,
GLX2 is WAY WAY up there at the very TOP of the list. You can get info about
it here:

http://daniels-mara.com/glx2/features/

but note that auto-save and auto-archive aren't even mentioned, their so
mundane compared to all the other cool features:-)

HTH
___
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: Removing CRLF from text

2008-08-06 Thread mfstuart

Hi Sarah,
Thanx for your reply.
I have tried your suggestion and it still doesn't make the separated lines
into one entry per line.
I also tried Jacqueline's suggestion and nada, zilch, nichte. 
I've looked at the ini (text) file with a Hex Editor and the values are:
+=2b, CR=0d, LF=0a.
Not sure how to replace using the hex value as the value to replace.

I've even tried using:
 replace +   numtoChar(10)  numtoChar(13) with  in tData
This all will not put all separated lines into one line.

So I'll keep trying different combinations, unless someone has this licked.

Regards,
Mark Stuart



Sarah Reichelt-2 wrote:
 
 I have a situation where a software application's ini file has the plus
 (+)
 char and CRLF at the end of a line, when the line passes 80 characters.
 The
 balance of the ini entry is placed on the next line. Each ini entry could
 be
 very long and possibly go to 3 lines.
 Why they did this I don't know, really.

 But what I need to do is remove the + and CRLF so that each ini entry is
 complete in itself, on one line.

 ini file currently contains:
 dfgsdfg sdfgsd fgsdfgsdf gsdfg +
 sdfgadfs dgdghs dfdfgg fghf+
 dfgh dfgh

 Result I'd like after running the script:
 dfgsdfg sdfgsd fgsdfgsdf gsdfg sdfgadfs dgdghs dfdfgg fghf dfgh dfgh

 
 what about:
 
replace +  CRLF with empty in tData
 
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Removing-CRLF-from-text-tp18862004p18863440.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: Removing CRLF from text

2008-08-06 Thread mfstuart

Hi Jacqueline,
Refer to my replay to Sarah - no go.

So any other suggestions are welcome.

Regards,
Mark Stuart



J. Landman Gay wrote:
 
 mfstuart wrote:
 
 I've used this script, and variations of it, to remove these characters:
 +
 CRLF.
 It removes the + char, but still leaves each ini entry split into
 multiple
 lines.
 
 snip
 
   repeat for each line L in tData
 
 When a script gets a line of text, the engine omits the end of line 
 character(s) and returns only the text of the line itself. That is why 
 the lines stay separated, since the line delimiters are left intact. (It 
 works just like items; when you get an item from a string, the comma is 
 not included.) Instead of working on each line, work on the entire block 
 of text as a whole. You should be able to do it like this:
 
 put URL (file:  tFilename) into tData
 put +CRLF into tChars
 replace tChars with space in tData
 
 -- 
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Removing-CRLF-from-text-tp18862004p18863449.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: Removing CRLF from text

2008-08-06 Thread Joe Lewis Wilkins

Hi Mark,

If I follwed this thread  even partially, I believe you're just trying  
to get rid of empty lines. Correct?
So why not rebuild the whole thing by examining each line; if it is  
empty, skip it; otherwise add it to a new var on its next line.

Once you've done the whole lot, replace the text with this new var.

I've probably missed the whole issue, but

Joe Wilkins

On Aug 6, 2008, at 8:35 PM, mfstuart wrote:



Hi Jacqueline,
Refer to my replay to Sarah - no go.

So any other suggestions are welcome.

Regards,
Mark Stuart



J. Landman Gay wrote:


mfstuart wrote:

I've used this script, and variations of it, to remove these  
characters:

+
CRLF.
It removes the + char, but still leaves each ini entry split into
multiple
lines.


snip


 repeat for each line L in tData


When a script gets a line of text, the engine omits the end of line
character(s) and returns only the text of the line itself. That is  
why
the lines stay separated, since the line delimiters are left  
intact. (It
works just like items; when you get an item from a string, the  
comma is
not included.) Instead of working on each line, work on the entire  
block

of text as a whole. You should be able to do it like this:

put URL (file:  tFilename) into tData
put +CRLF into tChars
replace tChars with space in tData

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




--
View this message in context: 
http://www.nabble.com/Removing-CRLF-from-text-tp18862004p18863449.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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

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


Joe Lewis Wilkins
[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: Removing CRLF from text

2008-08-06 Thread Jim Ault
try using this line first

replace null with empty in tData

--some functions (eg filter) don't work if any nulls are in the text block

Of course you could find out where they are, if any,  by

replace null with cr in tData

Jim Ault
Las Vegas

On 8/6/08 8:34 PM, mfstuart [EMAIL PROTECTED] wrote:

 
 Hi Sarah,
 Thanx for your reply.
 I have tried your suggestion and it still doesn't make the separated lines
 into one entry per line.
 I also tried Jacqueline's suggestion and nada, zilch, nichte.
 I've looked at the ini (text) file with a Hex Editor and the values are:
 +=2b, CR=0d, LF=0a.
 Not sure how to replace using the hex value as the value to replace.
 
 I've even tried using:
  replace +   numtoChar(10)  numtoChar(13) with  in tData
 This all will not put all separated lines into one line.
 
 So I'll keep trying different combinations, unless someone has this licked.
 
 Regards,
 Mark Stuart
 
 
 
 Sarah Reichelt-2 wrote:
 
 I have a situation where a software application's ini file has the plus
 (+)
 char and CRLF at the end of a line, when the line passes 80 characters.
 The
 balance of the ini entry is placed on the next line. Each ini entry could
 be
 very long and possibly go to 3 lines.
 Why they did this I don't know, really.
 
 But what I need to do is remove the + and CRLF so that each ini entry is
 complete in itself, on one line.
 
 ini file currently contains:
 dfgsdfg sdfgsd fgsdfgsdf gsdfg +
 sdfgadfs dgdghs dfdfgg fghf+
 dfgh dfgh
 
 Result I'd like after running the script:
 dfgsdfg sdfgsd fgsdfgsdf gsdfg sdfgadfs dgdghs dfdfgg fghf dfgh dfgh
 
 
 what about:
 
replace +  CRLF with empty in tData
 
 Cheers,
 Sarah
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 


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


Re: Does Palette command work?

2008-08-06 Thread Jan Schenkel
--- Klaus Major [EMAIL PROTECTED] wrote:
  --- [EMAIL PROTECTED] wrote:
  Using Rev Media 2.9 in Windows XP
  palette stack a -- no effect
  go stack a as palette -- works correctly
  Do others experience this?
  David Epstein
 
  Hi David,
  That's one of the built-in limitations of Rev
 Media,
 
 OK, but if:
 - palette stack a
 does not work in Rev Media and
 - go stack a as palette
 DOES work, then this is a halfbaked and useless
 limitation
 (or none at all) in my opinion :-)
 

The real question is: do you end up wih a palette or
is the stack loaded as toplevel or modeless instead?
Then again, that's not relevant either and we need to
file a report at the quality center.
After all, if they don't want 'palette' to work in Rev
Media they should block _both_ variations at compile
time.

Jan Schenkel.

Quartam Reports  PDF Library for Revolution
http://www.quartam.com

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


  
___
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: Removing CRLF from text

2008-08-06 Thread Sarah Reichelt
On Thu, Aug 7, 2008 at 1:34 PM, mfstuart [EMAIL PROTECTED] wrote:

 Hi Sarah,
 Thanx for your reply.
 I have tried your suggestion and it still doesn't make the separated lines
 into one entry per line.
 I also tried Jacqueline's suggestion and nada, zilch, nichte.
 I've looked at the ini (text) file with a Hex Editor and the values are:
 +=2b, CR=0d, LF=0a.
 Not sure how to replace using the hex value as the value to replace.

 I've even tried using:
  replace +   numtoChar(10)  numtoChar(13) with  in tData
 This all will not put all separated lines into one line.


Are there any spaces or invisible characters that might be separating
the 3 specified characters?

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: HTML Color Codes

2008-08-06 Thread Sarah Reichelt
 I was wondering how to translate the RGB names to the HTML equivalent when 
 user selects color with the Color Dialog. For such use as with a html page 
 generator.

 If it doesn't exist already (though surely it's been done before, and I just 
 can't find it): am I on the right track thinking that an array would be used 
 to hold both code sets, then a function returns the html equivalent rather 
 than the RGB? Or something!

HTML colors are just the same as RGB colors but with the decimal
numbers converted to hexadecimal and then run together. So you can
calculate one from the other and don't need an array or lookup table.
Here is a function for doing the conversion.

function RGBtoHTML pRGB
put item 1 of pRGB into r
put item 2 of pRGB into g
put item 3 of pRGB into b

put baseconvert(r,10,16) into r
put baseconvert(g,10,16) into g
put baseconvert(b,10,16) into b

return #  r  g  b
end RGBtoHTML

So you can do something like this:

answer color
put it into tRGBcolor
put RGBtoHTML(tRGBcolor) into tHTMLcolor

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