Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass variable to function

Status
Not open for further replies.

MoaD

Programmer
Apr 17, 2002
17
CA
ok i have a function called dateFormat()

i want to send a date so i can format it. I have the date stored in a variable. Now i want to send along a type value

i.e.

function dateFormat( date, type )
End Function

now this is what im sending
<%=postDate, 1%>

the problem is whenever i try to send the 1 i get an error.

i want to send the type so the function can decide how to format the incoming date?
 
Hi,
What is the error u get?Can u send the code?
 
Code:
<%=dateFormat(postDate,1)%>
This is not a bug - it's an undocumented feature...
;-)
 
The $64000 question:

What's the error?

codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
<insert witticism here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top