Declare the constant at the top of the form, in the declarations section.
That will make it a module-level constant. I usually prefix my module level
variables and constants with an "m" to differentiate them from local ones.
Thus, I would do something like:
Const mconMyString = "Some string"
Neil
"John" <jo@hn.comwrote in message news:f4**********@textnews.wanadoo.nl...
In my form I have several buttons that use the same string value. So I
would like to assign a constant that is global for the form. What's the
best way to do this? In which section do I place this constant code?
Thanks,
john