I am having a weird problem with the COUNT() function when being run inside a class from a WWC application. Running all those occurences which create problems inside the APP from the VFP command line works ok.
For example, this line works ok:
COUNT FOR &gcForumList &lcWhere TO lnCount
but any line such as:
COUNT TO lnCount
COUNT FOR Numero>=600000 TO lnCount
COUNT FOR AddDate>=ldDate TO lnCount
doesn't work.
I never saw anything like this. Basically, the only way the COUNT line works in that environment is to have a macro substitution. Having a COUNT line such as those 3 makes the application to sit there and not returning anything.