Help with callbacks

Hey guys!
i need some help with callbacks, i am not sure how i can access a variable
from the main script making the call to the callback, if i am in the
callback code. Do i pass arguments to the callback code some how?

I would apriciate any help!

Thanks!
George