Global and local variables

how do I declare my string “textnote” as a global string? I declare it currently, like this:
tell window of theobject
try
set textnote to contents of text field “text” as string
end try
end tell

when I precede my code with “global textnote” it says that I cannot declare it as local and global.

Thanx!:D:D:D

Model: iMac Core Duo
Browser: Safari 417.9.2
Operating System: Mac OS X (10.4)

Use a property at the beginning of your script and then give it a value in the body before you use it anywhere:

property textnote : missing value
-- do stuff
set textnote to "my string of stuff"