Multiplying 2 temporary variables & Using custom handlers
Posted: Wed May 29, 2013 10:52 am
Hi guys,
When I press a button on my card it uses the following code:
This brings up an error saying it can't find handler. Isn't calculate meant to turn into a custom handler?
Anyway,
When that part was working (it just stopped working after I closed and re-opened it) I was having issues with the Calculate command anyway
My code is as follows:
I haven't used the mutliply command but the dictionary reffered me to multiply as opposed to *.
It comes up with error: compilation error at line 11 {that is the line with set the tAccUO...} (Function: separator is not a ',') near "of", char 46
Where have I gone wrong please guys?
Thx
When I press a button on my card it uses the following code:
Code: Select all
on mouseUp
send Calculate to card "Steve"
end mouseUp
Anyway,
When that part was working (it just stopped working after I closed and re-opened it) I was having issues with the Calculate command anyway
My code is as follows:
Code: Select all
on Calculate
-- Stores the price and percentage into temporary variables
set the tPrice of this card to field "Price Input"
set the tUO of this card to (4/100)
set the tAccUO of this card to (multiply (tUO of this card,tPrice of this card))
end Calculate
It comes up with error: compilation error at line 11 {that is the line with set the tAccUO...} (Function: separator is not a ',') near "of", char 46
Where have I gone wrong please guys?
Thx
