Piorun Posted May 6, 2013 Share Posted May 6, 2013 Hi guys Today i have a problem with words in string. So for ex i have string: Hi my name is paul im 20 and i want print only 3 words and after last add "..." like that: Hi my name... How? Link to comment
iPrestege Posted May 6, 2013 Share Posted May 6, 2013 Do you mean you want to get a word in the sentence if it were in the middle or at the end? Link to comment
Piorun Posted May 6, 2013 Author Share Posted May 6, 2013 I solve this with "split" function . You can lock this topic. Link to comment
ixjf Posted May 6, 2013 Share Posted May 6, 2013 I would use the string library functions for that work, even though split works in this case. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now