Re: [Newbie] Extracting a specific character number from a string

2008-08-06 Thread Kyle Sluder
On Wed, Aug 6, 2008 at 6:23 PM, Phil Faber <[EMAIL PROTECTED]> wrote: > NSLog(@"Character %i of %@ is %@",i,pass1,[pass1 substringWithRange:1,2]); You need to pass an NSRange struct to -[NSString substringWithRange:]. You can make one using the NSMakeRange() function. If you didn't know that fun

Re: [Newbie] Extracting a specific character number from a string

2008-08-06 Thread Ricky Sharp
On Aug 6, 2008, at 5:23 PM, Phil Faber wrote: I'm trying to learn more about string manipulation and want to be able to extract a single character from a string. I think I need to use subStringWithRange (exacting from and to the same character location) but I'm not sure and I'm also unsur

[Newbie] Extracting a specific character number from a string

2008-08-06 Thread Phil Faber
I'm trying to learn more about string manipulation and want to be able to extract a single character from a string. I think I need to use subStringWithRange (exacting from and to the same character location) but I'm not sure and I'm also unsure how to code it. Basically I'm after the equiv