Re: Global subroutine - doesn't work
From: John C (johnch_at_paradise.net.nz)
Date: 03/01/04
- Next message: Jim: "How to upgrade a site to FP 2000"
- Previous message: John C: "Re: How do I optimize for search engines?"
- In reply to: MD Websunlimited: "Re: Global subroutine"
- Next in thread: MD Websunlimited: "Re: Global subroutine - doesn't work"
- Reply: MD Websunlimited: "Re: Global subroutine - doesn't work"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 1 Mar 2004 20:39:38 +1300
Thanks, but it doesn't seem to work. Must be me.
I have the following in my script file (name "scripts.vb" in same
directory):
<script language="VBScript">
Sub PrintDetails(CompName, Discount)
document.writeln(Date)
document.writeln("Coupon from " & CompName)
document.writeln("Your discount is " & Discount & "% !!!")
End Sub
</script>
and the following in my form-file:
<script language="VBScript" src="scripts.vb">
PrintDetails"My Company Ltd","10"
</script>
Any idea why this is not working? Error message refers to line 1 of the
scripts file.
TIA
John
"MD Websunlimited" <none@none.com> wrote in message
news:O$svvwx$DHA.3400@tk2msftngp13.phx.gbl...
> 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: Jim: "How to upgrade a site to FP 2000"
- Previous message: John C: "Re: How do I optimize for search engines?"
- In reply to: MD Websunlimited: "Re: Global subroutine"
- Next in thread: MD Websunlimited: "Re: Global subroutine - doesn't work"
- Reply: MD Websunlimited: "Re: Global subroutine - doesn't work"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|