Question about using left - Posted (951 Views)
Senior Member
bobby131313
Posts: 1163
1163
So I'm truncating some RSS titles for display...
RSStitleshort = Left(RSStitle,35)

Works great. But is there a way to make it break at the first space after the value so it doesn't stop in the middle of a word?
Thanks in advance...
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Admin
HuwR
Posts: 20611
20611
try something like
pos = Instr(34,RSStitle," ")
if pos = 0 then
pos = 35
end if
RSStitleshort = Left(RSStitle,pos)
Posted
Senior Member
bobby131313
Posts: 1163
1163
I had to tweak some other code that I *thought* wouldn't matter but that got me where I needed to be.

Thank You! bigsmile
 
You Must enter a message