A statement like the following always results in zero:
Code: Select all
put revdb_execute(gDBID,"SELECT COUNT(*) FROM Sales WHERE ProdID = 35") into field "SalesCount"
Same symptoms if I use other functions like SUM.
I think I'm seeing why this happens since the dictionaty says using revdb_execute is the same as using revexecuteSQL, which in turn claims to return the number of rows operated on for INSERT, UPDATE, and DELETE commands and zero for everything else. If that's the case, what command/function should I use to get the results I'm looking for?
Thanks,
Pete