Global variables: loosing the value

I apologize for writing that it "sucks".
I will never burden a forum again before having spent hours and hours of googling.
Thank you.