switch

liamlambert liamlambert at mac.com
Sat Mar 18 17:09:40 EST 2006


what am I doing wrong here

put fld "total" into ttotal
   put fld "paymenttype" into tpayment

   switch "tpayment"
   case "credit"
   if tpayment contains "credit" then put ttotal into fld "CreditDb"
exit switch

case "cash"
if tpayment contains "cash" then put ttotal into fld "cash2"
exit switch

end switch

Liam Lambert
liamlambert at mac.com
IRELAND





More information about the use-livecode mailing list