Question : STRING FORMAT

how to format a string like "Verbatim Compact Flash Card 4Gb"  to
 
Verbatim Compact Flash Card ...

to copy 27 char and place 3 full stop after that
but if the sting is less than 27 do nothing.

Answer : STRING FORMAT

try below code
1:
2:
3:
4:
5:
6:
7:
MyStr = "Verbatim Compact Flash Card 4Gb"

if(len(MyStr) > 27) then
response.write left(MyStr,27) + " ..."
else
response.write MyStr
end if
Random Solutions  
 
programming4us programming4us