|
-
Aug 5th, 2004, 05:37 AM
#1
Thread Starter
New Member
can i call a sub within vbscript?
Hi,
I'm new to vbscript and I want to call a method that is outwith the "Sub Form_Load".
I have tried:
1) Do myMethod
2) Call myMethod
3) myMethod
I have also removed the "private" attribute from my method.
Sorry for the silly question
yogi
-
Aug 5th, 2004, 05:49 AM
#2
Re: can i call a sub within vbscript?
Originally posted by yogiberr
Hi,
I'm new to vbscript and I want to call a method that is outwith the "Sub Form_Load".
I have tried:
1) Do myMethod
2) Call myMethod
3) myMethod
I have also removed the "private" attribute from my method.
Sorry for the silly question
yogi
Both no 2, and 3 should work fine. What is the Form_Load functin? You know that unlike VB Form_Load wont get executed when you execute the VBScript file. For VB Script the function that excutes at startup is Sub_Main.
Hope this helps
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Aug 5th, 2004, 06:57 AM
#3
Thread Starter
New Member
hi Danial,
you are of course correct.The error was causeed by a typo.
thanks bud
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|