Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Question about using left

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
bobby131313 Posted - 08 June 2011 : 13:15:13
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...
2   L A T E S T    R E P L I E S    (Newest First)
bobby131313 Posted - 08 June 2011 : 16:34:42
I had to tweak some other code that I *thought* wouldn't matter but that got me where I needed to be.

Thank You!
HuwR Posted - 08 June 2011 : 14:51:33
try something like
pos = Instr(34,RSStitle," ")
if pos = 0 then
pos = 35
end if
RSStitleshort = Left(RSStitle,pos)

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000 Version 3.4.07