Without looking at your script it's hard to tell. The syntax should be as follows:
DTSGlobalVariables("variablename").value
I don't know what you mean about 'tried to display the variable'. Where are you trying to display it?
------------------------------
The Users are always right - when I'm not wrong!