Hi I was wondering if a function or sub be run when the web page has been
selected.
Regards
Hi I was wondering if a function or sub be run when the web page has been
selected.
Regards
As far as I know, a function or sub, will only be run if the script calls for
it.
For example, having a function like at the end of the script, will only be
called when the script reaches the line that contains.
strPath = AddQuotes("C:\program files\symantec")
Function AddQuotes(strInput)
AddQuotes = Chr(34) & strInput & Chr(34)
End Function
Usually functions and subs are at the end of the script for that reason. If
your script doesn't call for the use of a function, that function won't be
parsed by the script.
At least that's how I understand they work, if I said anything wrong, please
correct me, gurus.
"vqthomf" wrote:
> Hi I was wondering if a function or sub be run when the web page has been
> selected.
> Regards
Webpages generate events, to which subs (and functions) can respond.
For example: <BODY OnLoad="mySub()">
hth
arno
On Thu, 20 Aug 2009 02:21:13 -0700, vqthomf
<vqthomf@xxxxxx> wrote:
>Hi I was wondering if a function or sub be run when the web page has been
>selected.
>Regards
Thanks that did it I can see I have a lot to learn.
"arno" wrote:
> Webpages generate events, to which subs (and functions) can respond.
> For example: <BODY OnLoad="mySub()">
>
> hth
> arno
>
> On Thu, 20 Aug 2009 02:21:13 -0700, vqthomf
> <vqthomf@xxxxxx> wrote:
>>
> >Hi I was wondering if a function or sub be run when the web page has been
> >selected.
> >Regards
>
| Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| vbscript start excel run macro not working | khstng50 | VB Script | 0 | 17 Mar 2010 |
| trying to start a service with VBScript on Win7 | Adam Sandler | VB Script | 6 | 06 Feb 2010 |
| Convert Vb code to VBscript | kaymaf | VB Script | 8 | 21 Sep 2009 |
| Change a Javascript code to VBScript | antgaudi | VB Script | 3 | 24 Apr 2009 |
| RE: What to code in now that VS2008 has depreciated VBScript? | Sid | VB Script | 0 | 16 Jul 2008 |