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!

Right Function

Status
Not open for further replies.

mdr227

Programmer
Nov 17, 2000
114
US
What would the function/syntax be to return the last three characters of a text field?
 
<%=left(RS(&quot;comments&quot;),20)&&quot;...&quot;%>

<%=right(RS(&quot;comments&quot;),20)&&quot;...%>

<%=mid(RS(&quot;comments&quot;),startingpoint,20)&&quot;...&quot;%>



**************************************************************************
This example shows how to use IF else if the field is greater than the value

<%=left(RS(&quot;Name&quot;),40)%><%If Len(RS(&quot;Name&quot;)) > 40 Then Response.Write(&quot;...&quot;)%>
<%=left(RS(&quot;Description&quot;),40)%><%If Len(RS(&quot;Description&quot;)) > 40 Then Response.Write(&quot;...&quot;)%>

**************************************************************************


pinky1.jpg width='75' height='75'
[/tt]
056.jpg
 
if i'm reading your question correctly:

<%
dim strText, strVariable

strVariable = &quot;your text to get this from&quot;
strText = Right(strVariable,3)
response.write strText
%>
 
hey AlsoKnowAs, i recoginise that cartoon, but cant fix its name (its got this fat moise by its side right?) now what is its name???

Known is handfull, Unknown is worldfull
 
The one one the left if Pinky and the one on the right is the Brain


:)

You know, pinky and the brain

pinky1.jpg width='75' height='75'
[/tt]
056.jpg
 
ah!! got it, the pinky and the Brain,brain,brain stuff aint it? i saw it first in cartoon network, i simply love cartoons...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top