Re: Message Box appears

2006-12-01 Thread Dave

put the scaledScore[memoryforstories] of field data1 into msg


Has got me before now! They can be so hard to find when you are  
writing lots of stuff to the message box for debugging, and then  
forget to delete just one of them! This is especially true in a  
library stack, I had a rouge put xxx in a library that took me ages  
to track down, I eventually found it in a in function a few levels  
away from the main API Call!


I think an option that turned off the put xxx shortcut would be a  
good idea!


All the Best
Dave


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


Re: Message Box appears

2006-12-01 Thread Mark Smith

Me too...

Thinking aloud, as it were, would a handler like this work?

on checkScript pScript
  repeat for each line L in pScript
add 1 to lineCount
if put is in L AND into is not in L  then put lineCount   
comma after possibleProblems

  end repeat
 put possibleProblems
end checkScript

I guess we'd need to consider into msg and into message etc... as  
well as before, after and so on...


If we had a completely reliable version, we could even have it  
comment out those lines.


Or has anyone already done this?

Mark

On 1 Dec 2006, at 11:36, Dave wrote:


put the scaledScore[memoryforstories] of field data1 into msg


Has got me before now! They can be so hard to find when you are  
writing lots of stuff to the message box for debugging, and then  
forget to delete just one of them! This is especially true in a  
library stack, I had a rouge put xxx in a library that took me  
ages to track down, I eventually found it in a in function a few  
levels away from the main API Call!


I think an option that turned off the put xxx shortcut would be a  
good idea!


All the Best
Dave


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

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


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


Re: Message Box appears

2006-12-01 Thread Dave

Hi,

Well, I was thinking leave the explicit forms as they are as at least  
you can do a global find on msg or messagebox, but you can't  
search for the shorthand version without hitting every put in the  
whole stack(s).


All the Best
Dave


On 1 Dec 2006, at 12:52, Mark Smith wrote:


Me too...

Thinking aloud, as it were, would a handler like this work?

on checkScript pScript
  repeat for each line L in pScript
add 1 to lineCount
if put is in L AND into is not in L  then put lineCount   
comma after possibleProblems

  end repeat
 put possibleProblems
end checkScript

I guess we'd need to consider into msg and into message etc...  
as well as before, after and so on...


If we had a completely reliable version, we could even have it  
comment out those lines.


Or has anyone already done this?

Mark

On 1 Dec 2006, at 11:36, Dave wrote:


put the scaledScore[memoryforstories] of field data1 into msg


Has got me before now! They can be so hard to find when you  
are writing lots of stuff to the message box for debugging, and  
then forget to delete just one of them! This is especially true in  
a library stack, I had a rouge put xxx in a library that took me  
ages to track down, I eventually found it in a in function a few  
levels away from the main API Call!


I think an option that turned off the put xxx shortcut would be  
a good idea!


All the Best
Dave


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

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


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

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


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


Re: Message Box appears

2006-12-01 Thread Jim Ault
On 12/1/06 3:36 AM, Dave [EMAIL PROTECTED] wrote:
 Has got me before now! They can be so hard to find when you are
 writing lots of stuff to the message box for debugging, and then
 forget to delete just one of them! This is especially true in a
 library stack, I had a rouge put xxx in a library that took me ages
 to track down, I eventually found it in a in function a few levels
 away from the main API Call!
 
 I think an option that turned off the put xxx shortcut would be a
 good idea!

Chipp Walters used to have something on his site that would do this.  Took a
quick look and did not find it.  Check the archives, but I think the Altuit
site has changed so much that old info will be obsolete.

Perhaps Chipp may know where it is hiding.

PS  I always use 'into msg' or 'after msg' so I can find them later.
For a short time I always added !! like

put fld output  !!
but got out of the habbit.

Of course another way is to make your own lib handler

putMsg flag upperTier is  fUpperTier

on putMsg txtStr
 put txtStr
end putMsg 

then turn off the 'put txtStr' line
or find the putMsg lines

Jim Ault
Las Vegas


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


Re: Message Box appears

2006-12-01 Thread Phil Davis

Hi Jim and all,

IMHO, you guys are making it too hard.

I've intentionally developed a habit of always putting test info ' cr after 
msg'. Then when I'm done, I can easily find all occurrences of 'after msg' and 
delete'em.


No, it's not infallible. And sometimes I cheat (like to clear msg at the start 
of a 'put after' sequence). But I make my living writing software with 
Revolution, and I don't have any self-inflicted misery from rogue 'puts'. To me 
that says something about the effectiveness of the approach.


I admit that the 'habit thing' may not be sufficient for every situation. Most 
of the time I'm the only programmer on my projects, so I generally don't have to 
collaborate with others at the code level. Your mileage may vary. Ask your 
doctor if the Habit Way is right for you...  :o)


My $0.02...

Thanks -
Phil Davis


Jim Ault wrote:

On 12/1/06 3:36 AM, Dave [EMAIL PROTECTED] wrote:

Has got me before now! They can be so hard to find when you are
writing lots of stuff to the message box for debugging, and then
forget to delete just one of them! This is especially true in a
library stack, I had a rouge put xxx in a library that took me ages
to track down, I eventually found it in a in function a few levels
away from the main API Call!

I think an option that turned off the put xxx shortcut would be a
good idea!


Chipp Walters used to have something on his site that would do this.  Took a
quick look and did not find it.  Check the archives, but I think the Altuit
site has changed so much that old info will be obsolete.

Perhaps Chipp may know where it is hiding.

PS  I always use 'into msg' or 'after msg' so I can find them later.
For a short time I always added !! like

put fld output  !!
but got out of the habbit.

Of course another way is to make your own lib handler

putMsg flag upperTier is  fUpperTier

on putMsg txtStr
 put txtStr
end putMsg 


then turn off the 'put txtStr' line
or find the putMsg lines

Jim Ault
Las Vegas


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

2006-12-01 Thread Eric Chatonet

Hello,

For all who don't have Galaxy, I have uploaded last year a stack on  
RevOnline:


User: sosmartsoftware
Stack: Smart Script Search
Description: This utility parses all scripts in any open stack  
searching for lines of code where any string is present AND any  
another one is absent.

Its main purpose, but it's configurable, is to find orphan puts...

Best Regards from Paris,
Eric Chatonet

Le 1 déc. 06 à 20:28, Stephen Barncard a écrit :


just for the record, Jerry Daniel's Galaxy has a feature where you put

 *put

into the search field and it will find all the 'dangling puts'. Use  
it all the time.



Hi Jim and all,

IMHO, you guys are making it too hard.

I've intentionally developed a habit of always putting test info  
' cr after msg'. Then when I'm done, I can easily find all  
occurrences of 'after msg' and delete'em.



 
--

http://www.sosmartsoftware.com/[EMAIL PROTECTED]/


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


Message Box appears

2006-11-30 Thread Charles Szasz
The following script works but each it works the Message Box appears  
although there is nothing in the script to tell it to appear. After I  
close the Message Box, it reappears again when I run the script.  The  
Message Box appears even when the Development Tools are suspended.


I read sections of the Rev PDF Manual about the Message Box but I  
cannot find anything to explain why the Message Box appears!


on mouseUp
  put 51 into tage
  put tAge,field subFld,field rsFld into theMatch
  repeat for each line theMatch2 in the scaledScore 
[memoryforstories] of field data1

put the scaledScore[memoryforstories] of field data1
if item 1 to 3 of theMatch = item 1 to 3 of theMatch2 then
  put item 4 of theMatch2 into field ssFld
  put item 5 of theMatch2 into field perFld
  exit repeat
end if
  end repeat
end mouseUp

Does anyone have an idea why the Message Box appears

Charles Szasz
[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: Message Box appears

2006-11-30 Thread Phil Davis

Hi Charles -

Charles Szasz wrote:
The following script works but each it works the Message Box appears 
although there is nothing in the script to tell it to appear. After I 
close the Message Box, it reappears again when I run the script.  The 
Message Box appears even when the Development Tools are suspended.


I read sections of the Rev PDF Manual about the Message Box but I cannot 
find anything to explain why the Message Box appears!


on mouseUp
  put 51 into tage
  put tAge,field subFld,field rsFld into theMatch
  repeat for each line theMatch2 in the scaledScore[memoryforstories] 
of field data1



Here's the line that makes the message box appear:


put the scaledScore[memoryforstories] of field data1


Any time (in the IDE) when you 'put' something without an 'into', it's going to 
go into the message box.


(In standalone apps you don't see anything; the data is 'put' into the bit 
bucket.)

HTH -
Phil Davis



if item 1 to 3 of theMatch = item 1 to 3 of theMatch2 then
  put item 4 of theMatch2 into field ssFld
  put item 5 of theMatch2 into field perFld
  exit repeat
end if
  end repeat
end mouseUp

Does anyone have an idea why the Message Box appears

Charles Szasz
[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: Message Box appears

2006-11-30 Thread Jim Ault
On 11/30/06 7:32 PM, Charles Szasz [EMAIL PROTECTED] wrote:

 The following script works but each it works the Message Box appears
 although there is nothing in the script to tell it to appear.

...excerpt of script
  put the scaledScore[memoryforstories] of field data1

--is the same thing as
put the scaledScore[memoryforstories] of field data1 into msg

--which tells Rev to display using the msg box

Jim Ault
Las Vegas

On 11/30/06 7:32 PM, Charles Szasz [EMAIL PROTECTED] wrote:

 The following script works but each it works the Message Box appears
 although there is nothing in the script to tell it to appear. After I
 close the Message Box, it reappears again when I run the script.  The
 Message Box appears even when the Development Tools are suspended.
 
 I read sections of the Rev PDF Manual about the Message Box but I
 cannot find anything to explain why the Message Box appears!
 
 on mouseUp
put 51 into tage
put tAge,field subFld,field rsFld into theMatch
repeat for each line theMatch2 in the scaledScore
 [memoryforstories] of field data1
  put the scaledScore[memoryforstories] of field data1
  if item 1 to 3 of theMatch = item 1 to 3 of theMatch2 then
put item 4 of theMatch2 into field ssFld
put item 5 of theMatch2 into field perFld
exit repeat
  end if
end repeat
 end mouseUp
 
 Does anyone have an idea why the Message Box appears


___
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