Search found 1 match

by florencepugh
Thu Jul 11, 2024 3:57 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Missing value error
Replies: 9
Views: 5974

Missing value error

I'm trying to calculate the total amount spent by a customer in my LiveCode database app. Here's the script I'm using:
on calculateTotalSpent (customerName)
local total := 0
repeat with aRow in orders where customer = customerName
put the amount of aRow into total
end repeat
return total
end ...