Re: Global subroutine
From: MD Websunlimited (none_at_none.com)
Date: 02/29/04
- Next message: MD Websunlimited: "Re: Thumbnails with red x"
- Previous message: Jonathan Parminter: "Default Printer"
- In reply to: John C: "Global subroutine"
- Next in thread: John C: "Re: Global subroutine - doesn't work"
- Reply: John C: "Re: Global subroutine - doesn't work"
- Messages sorted by: [ date ] [ thread ]
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
>
>
- Next message: MD Websunlimited: "Re: Thumbnails with red x"
- Previous message: Jonathan Parminter: "Default Printer"
- In reply to: John C: "Global subroutine"
- Next in thread: John C: "Re: Global subroutine - doesn't work"
- Reply: John C: "Re: Global subroutine - doesn't work"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|