Raised This Month: $ Target: $400
 0% 

removing letter from begining of string


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-21-2009 , 21:51   Re: removing letter from begining of string
Reply With Quote #1

Quote:
Originally Posted by whosyourdaddy View Post
lets say

szstring[32] = "I Love Apples"

how can i remove the first 2 characters in that string and make it become

szstring[32] = "Love Apples"

i know this is a poor examples i just need to learn how to remove the first to characters in a string
If you just want to return that portion of the string starting at Love, use szstring[2] instead of szstring.

to actually remove it from the string
format( szstring, 32, "%s" , szstring[2])
__________________
Bugsy is offline
Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode