![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Start VBscript code Hi I was wondering if a function or sub be run when the web page has been selected. Regards |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Start VBscript code 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: Quote: > Hi I was wondering if a function or sub be run when the web page has been > selected. > Regards |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Start VBscript code 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: Quote: >Hi I was wondering if a function or sub be run when the web page has been >selected. >Regards |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Start VBscript code Thanks that did it I can see I have a lot to learn. "arno" wrote: Quote: > 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: > Quote: > >Hi I was wondering if a function or sub be run when the web page has been > >selected. > >Regards > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Convert Vb code to VBscript | VB Script | |||
| Change a Javascript code to VBScript | VB Script | |||
| RE: What to code in now that VS2008 has depreciated VBScript? | VB Script | |||
| This device cannot start. (Code 10) | Vista hardware & devices | |||
| Device Cannot Start (Code 10) | Vista hardware & devices | |||