You Are Here:

Community: Developer Discussion Boards

#1 Old Subracting Strings - 2007-11-24, 12:35

Join Date: Nov 2007
Posts: 6
richie.rich's Avatar
richie.rich
Offline
Registered User
Hello

I have a string as following

Code:
string1=u"HHello how are you?"
If you see the above statement correctly it says "HHello" with 2 H.
All I want to do is get another string i.e string2 as
Code:
string2="Hello how are you?"
Which means I want to have the string without the 1st character.

Can any body provide a solution?


Rich
Reply With Quote

#2 Old Re: Subracting Strings - 2007-11-24, 15:01

Join Date: Oct 2007
Posts: 2
grem03
Offline
Registered User
Use the slice operator:

string2 = string1[1:]
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange problem with resource strings bjorn.rudolfsson Symbian User Interface 2 2008-04-10 21:49
Saving space with a lot of strings? Haktivex General Symbian C++ 5 2007-02-07 09:42
Strings and Files maniac_2k General Symbian C++ 6 2006-11-28 17:01
C++ enumerations for strings advocatee General Symbian C++ 0 2003-11-15 11:11
Adding more than two strings in a single listbox item prbhat Symbian User Interface 2 2003-07-08 15:20

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia