Widget as variable - how?

I think this is exactly what I need. Thank you! Ill test it tomorrow