Message box popping up in middle of a run
Posted: Wed Apr 29, 2015 10:26 am
I wrote a program that appears to be working properly. However, a single line message box keeps popping up and I can't find out why. I've pinned it down to the execution of a single line of code.
Here is the section of code that contains that line: I've used the editor for this blog to highlight the line. It's the one using the binaryDecode function. I suspect that I've done something wrong in the syntax, but the code seems to work. Will somebody please help.
put 0 into currentCount
if pFirstTimeFlag = true then
put sNumData * 4 into byteCount
put binaryEncode ("I", byteCount) into byte 41 to 44 of wavWrite
else
answer "currentCount = " & currentCount & " byteCount = " & byteCount
put binaryDecode("I",byte 41 to 44 of wavWrite,currentCount) -- number of bytes of data prepared in previous passes
put currentCount + byteCount into byteCount -- number of bytes of data that will have been prepared in this pass
answer "byteCount = " & byteCount & " currentCount = " & currentCount
end if
Here is the section of code that contains that line: I've used the editor for this blog to highlight the line. It's the one using the binaryDecode function. I suspect that I've done something wrong in the syntax, but the code seems to work. Will somebody please help.
put 0 into currentCount
if pFirstTimeFlag = true then
put sNumData * 4 into byteCount
put binaryEncode ("I", byteCount) into byte 41 to 44 of wavWrite
else
answer "currentCount = " & currentCount & " byteCount = " & byteCount
put binaryDecode("I",byte 41 to 44 of wavWrite,currentCount) -- number of bytes of data prepared in previous passes
put currentCount + byteCount into byteCount -- number of bytes of data that will have been prepared in this pass
answer "byteCount = " & byteCount & " currentCount = " & currentCount
end if