Message Box appears

Phil Davis revdev at pdslabs.net
Fri Dec 1 14:09:04 EST 2006


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" <dave at looktowindward.com> wrote:
>> Has got me before now! They can be sooooo 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



More information about the Use-livecode mailing list