• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
substringToIndex problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

substringToIndex problem


  • Subject: substringToIndex problem
  • From: "Peter Karlsson" <email@hidden>
  • Date: Sat, 31 May 2003 18:38:11 +0000

Dear list!

Can someone please tell me why this does not work? All I want to do is: If the string begins with 'Loop' I want to set the string to Loop.

if ([theValue substringToIndex: 4] == @"Loop")
{
theValue = @"Loop";
}

Peter

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: substringToIndex problem
      • From: Greg Titus <email@hidden>
    • Re: substringToIndex problem
      • From: Prachi Gauriar <email@hidden>
  • Prev by Date: genstrings and the build system (was Re: Unicode - Converting memory to match NSCell -stringvalue?_
  • Next by Date: showing the about-box at application start up
  • Previous by thread: Re: genstrings and the build system (was Re: Unicode - Converting memory to match NSCell -stringvalue?_
  • Next by thread: Re: substringToIndex problem
  • Index(es):
    • Date
    • Thread