HarryO wrote:I thought this was legal!
Yes, but you cannot do what Revolver is asking. To be able to use the keywords Global, Shared and Protected when you declare the variable and also set it's value at the same time.
Or have I discovered an undocumented feature?
No, the variables chapter in the reference manual explains that you can create a variable by using it. When you do "x=8" you are using it and creating it at the same time.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)