What is wrong with this code?
Posted: Wed Mar 05, 2008 2:46 am
on mouseDown
local x=totalDistance,y=totalDuration
multiply x by 3600
divide y by x
set the label of me to y
end mouseDown
totalDistance and totalDuration are both numbers.
The error message is:
Type multiply: destination has a bad format (numeric?)
Object TotalSpeed
Line multiply x by 3600
Hint mouseDown
I assume the 'destination' is x.
local x=totalDistance,y=totalDuration
multiply x by 3600
divide y by x
set the label of me to y
end mouseDown
totalDistance and totalDuration are both numbers.
The error message is:
Type multiply: destination has a bad format (numeric?)
Object TotalSpeed
Line multiply x by 3600
Hint mouseDown
I assume the 'destination' is x.