question about how to update an item in a field in batch mode
Ian Wood
revlist at azurevision.co.uk
Tue Jan 22 14:59:52 EST 2008
On 22 Jan 2008, at 19:32, Peter Alcibiades wrote:
> on mouseUp
> set the itemDelimiter to tab
> repeat for each line L in field "tSales"
> get lineOffset(item 1 to 2 of L, "tStock")
> if it > 0 then subtract 1 from item 5 of line it of field "tStock"
> end repeat
> end mouseUp
Sure it doesn't do anything - you've got "tStock" instead of text of
field "tStock" in the lineoffset line.
Ian
More information about the use-livecode
mailing list