Message Box appears
Mark Smith
mark at maseurope.net
Fri Dec 1 07:52:27 EST 2006
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 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!
>
> All the Best
> Dave
>
>
> _______________________________________________
> 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