Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Referencing Functions


Message #1 by "Rod Aubertin" <webmstr@r...> on Fri, 18 Aug 2000 21:17:35
My second, and last question, is how do I reference a function in VB 

Script.  I'm not sure if you can do it the same way as you do in Visual 

Basic.



Thanks

Message #2 by Mark Everest <Mark.Everest@t...> on Mon, 21 Aug 2000 11:36:34 +0100
The answer is yes.



...but it depends on where the function is.



Can you be a bit more specific (i.e. is the function in the ASP page you are

in, in a different ASP page, or is it a method in a component you have

created)?



-----Original Message-----

From: Rod Aubertin 

Sent: 18 August 2000 22:18

To: ASP Databases

Subject: [asp_databases] Referencing Functions





My second, and last question, is how do I reference a function in VB 

Script.  I'm not sure if you can do it the same way as you do in Visual 

Basic.



Thanks



Message #3 by "Rod Aubertin" <webmstr@r...> on Mon, 21 Aug 2000 17:49:6
I have all my include files as asp pages and would like to keep my 

functions in the same manner.



I plan to write all my functions in the page called utils.asp



Rod



Message #4 by "Ken Schaefer" <ken@a...> on Tue, 22 Aug 2000 12:15:18 +1000
<%

Function fncConcantenateStrings( _

    ByVal strInitialString, _

    ByVal strStringToAdd _

    )



    fncConcantenateStrings = strInitialString & " " & strStringToAdd

End Function

%>

....

<%

Response.Write(fncConcantenateStrings("string1", "string2"))

%>



If you put the function in an include file, then just include the file at

the top of the page:



<!-- #include virtual="/includes/utils.asp" -->



and call the function the same way.



Cheers

Ken





----- Original Message -----

From: "Rod Aubertin" 

To: "ASP Databases" <asp_databases@p...>

Sent: Monday, August 21, 2000 5:00 PM

Subject: [asp_databases] RE: Referencing Functions





> I have all my include files as asp pages and would like to keep my

> functions in the same manner.

>

> I plan to write all my functions in the page called utils.asp

>

> Rod





Message #5 by Yoram Zehavi <YoramZ@i...> on Tue, 22 Aug 2000 08:11:31 +0200
creat a file call utile.asp in the same directory.

the first line in your working file should be:

<!--#include file="utile.asp"-->



if the utile.asp file is in another dir use that line:

<!--#include file="../ [what ever need] /utile_dir/utile.asp"-->





-----Original Message-----

From: Rod Aubertin 

Sent: Monday, August 21, 2000 3:00 AM

To: ASP Databases

Subject: [asp_databases] RE: Referencing Functions





I have all my include files as asp pages and would like to keep my 

functions in the same manner.



I plan to write all my functions in the page called utils.asp



Rod




  Return to Index