# using getSize() from currentcontroller

**URL:** <https://forum.servoy.com/t/using-getsize-from-currentcontroller/3758>\
**Category:** Classic Servoy\
**Created:** [February 26, 2005, 3:20pm UTC](https://forum.servoy.com/t/using-getsize-from-currentcontroller/3758 "2005-02-26T15:20:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DFehrenbach](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@DFehrenbach](https://forum.servoy.com/u/DFehrenbach)\
**Post date:** [February 26, 2005, 3:20pm UTC](https://forum.servoy.com/t/using-getsize-from-currentcontroller/3758/1 "2005-02-26T15:20:22Z")

</div>

I’m trying to follow Harjo’s excellent example from Servoy Magazine tip: _[Tip] Looping through records fast_  
The problem is, I have a global method that uses currentcontroller to loop through all records in any table- I just call the global method from any form and it will loop through the foundset on the form. The problem is I cant figure out how to use the foundset function of getSize() from the currentcontroller  
Can anyone suggest a way?

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [February 26, 2005, 6:38pm UTC](https://forum.servoy.com/t/using-getsize-from-currentcontroller/3758/2 "2005-02-26T18:38:01Z")

</div>

That is of no use, I think.

You always have to specify a fieldname and that can be on every form different.

You could make a global method and use arguments to talk to it.
