Question about using left - Postet den (952 Views)
Senior Member
bobby131313
Innlegg: 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...
   
 Sidestørrelse 
Postet den
Forum Admin
HuwR
Innlegg: 20611
20611
try something like
pos = Instr(34,RSStitle," ")
if pos = 0 then
pos = 35
end if
RSStitleshort = Left(RSStitle,pos)
Postet den
Senior Member
bobby131313
Innlegg: 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
 
Du må legge inn en melding