The "Put" command is not putting
Posted: Sat Mar 24, 2012 8:27 pm
Hi,
In a double repeat loop I like to be advised of where the process is at any point in time.
===
on mouseUp
set lockscreen to true
repeat with a = 1 to 1000
repeat with b = a+1 to 1000
put a && b
do stuff
end repeat
end repeat
set lockscreen to false
end mouseUp
===
That, in Hypercard, would show the relevant numbers in the message box.
But, in LiveCard nothing gets displayed in the message box - unless I add in a line
===
on mouseUp
set lockscreen to true
repeat with a = 1 to 1000
repeat with b = a+1 to 1000
wait 1 tick
put a && b
do stuff
end repeat
end repeat
set lockscreen to false
end mouseUp
====
I'm using LiveCode 4.6.1 on a G4 Mac running OS 10.4.11
Is this a LiveCode 'feature' or a Mac thing, and is there a workaround which doesn't add unnecessary pauses to an already lengthy process.
In a double repeat loop I like to be advised of where the process is at any point in time.
===
on mouseUp
set lockscreen to true
repeat with a = 1 to 1000
repeat with b = a+1 to 1000
put a && b
do stuff
end repeat
end repeat
set lockscreen to false
end mouseUp
===
That, in Hypercard, would show the relevant numbers in the message box.
But, in LiveCard nothing gets displayed in the message box - unless I add in a line
===
on mouseUp
set lockscreen to true
repeat with a = 1 to 1000
repeat with b = a+1 to 1000
wait 1 tick
put a && b
do stuff
end repeat
end repeat
set lockscreen to false
end mouseUp
====
I'm using LiveCode 4.6.1 on a G4 Mac running OS 10.4.11
Is this a LiveCode 'feature' or a Mac thing, and is there a workaround which doesn't add unnecessary pauses to an already lengthy process.