Re: Global subroutine

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: MD Websunlimited (none_at_none.com)
Date: 02/29/04


Date: Sun, 29 Feb 2004 17:31:39 -0600

Hi John,

Place in a script.vb file then use
<script language="VBScript" src="script.vb" >
</script>

"John C" <johnch@paradise.net.nz> wrote in message news:hHt0c.29435$ws.3280021@news02.tsnz.net...
> Hi all,
>
> How can I create a Global subroutine.
>
> I have the following local subroutine,
>
> <script language="VBScript">
> Sub PrintDetails(CompName, Discount)
> document.writeln(Date)
> document.writeln("Coupon from " & CompName)
> document.writeln("Your discount is " & Discount & "% !!!")
> End Sub
> </script>
>
> but needs to be called from many forms. Thus needs to be global visible!
>
>
> How do I set that up?
>
> TIA,
> John
>
>



Relevant Pages

  • Re: Global subroutine - doesnt work
    ... Remove the script tags from the file. ... > Sub PrintDetails ... >> Hi John, ... >>> How can I create a Global subroutine. ...
    (microsoft.public.frontpage.programming)
  • Global subroutine
    ... How can I create a Global subroutine. ... Sub PrintDetails(CompName, Discount) ... document.writeln("Coupon from " & CompName) ...
    (microsoft.public.frontpage.programming)
  • Re: Global subroutine - doesnt work
    ... I have the following in my script file (name "scripts.vb" in same ... Sub PrintDetails ... >> How can I create a Global subroutine. ... >> Sub PrintDetails(CompName, Discount) ...
    (microsoft.public.frontpage.programming)