Doing some simple programming. What I want to happen is that on exit of a field (or change of field) I want to check the entry of the field and display one of 2 message boxes (Answer). Eventually I will put code in that will perform the change I want to happen after checking the data but this seemed like a good way to start while I'm learning to code in LiveCode. Here is the code that is the field "txtSellingFeesPerc"
Code: Select all
on exitField
if field "txtSellingFeesPerc" < 1 Then
Answer "OK"
Else
Answer "Fix IT"
End If
end exitField
When I execute this, it will often work the first time. I will then go there, change it, and all the code executes properly, then immediately shuts down the entire LiveCode environment. Any suggestions?
Thanks. Jack