Results 1 to 3 of 3

Thread: can i call a sub within vbscript?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Posts
    8

    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

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    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 :

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Posts
    8
    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
  •  



Click Here to Expand Forum to Full Width