T
Tony
Hi All,
I'm fairly new to using VBS and have created a contact form that does some
validation, mails the content, etc. What I'm interested to know is if there
is a way to use 'common' snippets of code for several subs/functions. For
example, I would like to enter something like the following such that any
sub/function in the code can use it. Basically, I'm trying to pare down the
amount of code.
Set myInspector=Item.GetInspector
Set currentPage=myInspector.ModifiedFormPages("General")
Set txtInspectedBy=currentPage.Controls("txtInspectedBy")
Set txtProject=currentPage.Controls("txtProject")
Any help you can offer is appreciated.
Thanks & Ciao,
Tony
I'm fairly new to using VBS and have created a contact form that does some
validation, mails the content, etc. What I'm interested to know is if there
is a way to use 'common' snippets of code for several subs/functions. For
example, I would like to enter something like the following such that any
sub/function in the code can use it. Basically, I'm trying to pare down the
amount of code.
Set myInspector=Item.GetInspector
Set currentPage=myInspector.ModifiedFormPages("General")
Set txtInspectedBy=currentPage.Controls("txtInspectedBy")
Set txtProject=currentPage.Controls("txtProject")
Any help you can offer is appreciated.
Thanks & Ciao,
Tony