Page 1 of 1

relationname.getsize problem

PostPosted: Tue Apr 12, 2005 6:14 pm
by Gert
Trying to count the related records I used
Code: Select all
relationname.getsize
in a calculaion. This works fine until you go over 40 related records. Then it always returns 40. Is this a bug, or how do I get over it?

PostPosted: Tue Apr 12, 2005 7:00 pm
by patrick
It's a limitation. If you use getSize() in a loop, it gets updated once you hit 40, so looping is safe. With databaseManager.getFoundSetCount you can do a count(*) with a foundset, that will give you the exact number.