Question about using left - نوشته شده در (953 Views)
Senior Member
bobby131313
مطلب: 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...
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Forum Admin
HuwR
مطلب: 20611
20611
try something like
pos = Instr(34,RSStitle," ")
if pos = 0 then
pos = 35
end if
RSStitleshort = Left(RSStitle,pos)
نوشته شده در
Senior Member
bobby131313
مطلب: 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
 
شما باید یک متن وارد کنید