Im working on a simple shopping cart for my application and am using the following code:
Code: Select all
on mouseUp
put the hilitedLines of field "ItemsOnOffer" into theLines 
repeat for each line tLine in theLines 
   set numberformat to 0.00
   put line tLine of field "ItemsOnOffer" into tDesc 
   put field "QuantitySelected" into tQty 
put field "ItemValue" into tItemPrice 
put tQty * tItemPrice into tLineTotal 
put tDesc & tab & tab & tQty & tab & tItemPrice & tab & tLineTotal & cr after field "cart" stack "accessory selections"
put "" into field "Quantityselected"
put "" into field "itemvalue"
--format the prices for neatness, but your item justification is a bit limited in a list field anyway 
end repeat
end mouseUp
Your help would be most appreciated.
Daniel
 I think I've done something silly - try replacing "of" with "in" in that line to read
  I think I've done something silly - try replacing "of" with "in" in that line to read