Message Box appears

Phil Davis revdev at pdslabs.net
Fri Dec 1 00:09:15 EST 2006


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
> cszasz at mac.com



More information about the use-livecode mailing list