|
|
|
|
|
| | |
|
Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: Problems with a parse function |
From: |
Tim |
Date: |
2/3/2000 7:53:01 AM |
IP: |
207.51.162.13 |
Use the InStr() function to find the position of the "/". Then use Left(), Right(), and Mid() functions to parse. Example:
<%
TestVar = "Parse this string by the / character"
SlashPos = InStr(TestVar, "/")
Response.Write("Slash Position: " & SlashPos)
%>
Or use the Split() function. Example:
<%
TestVar = "Parse this string by the / character"
SplitArray = Split(TestVar, "/")
Response.Write(SplitArray(0) & "<br>")
Response.Write(SplitArray(1) & "<br>")
%>
|
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|