Switch to full style
ASP/ASP.net examples
Post a reply

reverse ,length of strings as number of bytes

Thu Mar 31, 2011 12:45 am

Rreverse the string
Code:
<% 
Dim strSample 
string example 
strValue 
" yes we can , coder" 

Response.Write strRev(strValue 
%> 


Get the length of string as integer number, and also in bytes
Code:
<% 
Dim strLenExample 
strLenExample 
"this is our text string" 
'print string length
Response.Write Len(strLenExample ) 
response.Write "<br/>" 
'
print string length in bytes
Response
.Write LenB(strLenExample
%>

 




Post a reply
  Related Posts  to : reverse ,length of strings as number of bytes
 Sort strings java-Sorting Array of Strings     -  
 many bytes gets allocated for a reference in java     -  
 get string length in asp     -  
 reverse list     -  
 Get field length     -  
 Pad array to the specified length with a value     -  
 Java Reverse Engineering Tutorial.pdf     -  
 convert integer number to octal,hexadecimal number systems     -  
 Return an array with elements in reverse order     -  
 convert decimal number to octal number     -  

Topic Tags

ASP Strings