this is my code snippet
Code: Select all
on mouseUp
local diceRolls, diceEyes, diceResult
if field fldDice is an integer and field fldDice < 11 and field fldDice > 0 and field fldEye is an integer then
put field fldDice into diceRolls
put field fldEye into diceEyes
repeat diceRolls times
put random(diceEyes) & ", " after diceResult
put diceResult[X] into field lblDiceResult X
end repeat
put diceResult & CR before field fldProtocol
end if
end mouseUp
The scollfield called fldProtocol works just fine, but I habe a Problem with the labelfields.
So lets say I have 3 rolls with a 6-side dice so i like to put result 1 into field lblDiceResult1 result 2 into lblDiceResult2 and result 3 into lblDiceResult3
put I have no idea how to achieve this.
Maybe yout have an idea?
Thanks Benny