static variables in function / function objects

hi,

I'm trying to perfrom a fairly easy programming task, but don't know how to
best address it in object pascal. I a class I have a couple of member
function that need to have certain data to work (in this case a IBSQL
object) . I want every member function to have their own object that stays
in memory until the mother class destroys. In c++ I would use function
objects (or static variables though that isn't thread safe). I could of
course make a separate class that contains one meber function and it's
respective data, but idf there's already a construct for this kind of
behaviour in object pascal I'd rather use it :-)

TIA

Ronald Sipkema