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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing out a Function??

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH
How can I get this to write out the link right now it doesnt output any link.

Code:
Function WriteLink(strPlan, optionORorder)
		
Select Case strPlan
		
Case 0
If optionORorder = 0 then
strPlan = "?view=Hosting+Packages&option=w.basic" 			'pkg details
Else
strPlan = "?view=Hosting+Packages&order=w.basic"
End If

Case 1
...

plan = "0"

Response.write &quot;<td height=&quot;&quot;13&quot;&quot;><font face=&quot;&quot;Verdana, Arial, Helvetica, sans-serif&quot;&quot; size=&quot; & Chr(34) & &quot;1&quot; &  Chr(34) &&quot; color=&quot; & Chr(34) & FontColor & Chr(34) & &quot;><a href=&quot; & Chr(34) & WriteLink(plan, 1) & Chr(34) & &quot;Title=&quot; & Chr(34) & &quot;more info..&quot; & Chr(34) & &quot;>&quot; & &quot;more..&quot; & &quot;</a></font></td>&quot;
 
At the end of your function, set your function name equal to the value you want to pass back:

Function WriteLink(strPlan, optionORorder)

Select Case strPlan

Case 0
If optionORorder = 0 then
strPlan = &quot;?view=Hosting+Packages&option=w.basic&quot; 'pkg details
Else
strPlan = &quot;?view=Hosting+Packages&order=w.basic&quot;
End If

Case 1
...

End Select

WriteLink = strPlan
End Function
 
Where's the end of the Select Case statement, and the end of the Function?
 
Thanks Juan!

Troll :


Case 1
...

the dots represent the code goes on...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top