Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

InStr


  • Please log in to reply
2 replies to this topic
SilverFish
  • Members
  • 137 posts
  • Last active: Mar 28 2014 11:41 AM
  • Joined: 06 Dec 2010
What's wrong with this code?

aandasp := InStr, aandasac, %A_SPACE%, StartingPos = 1

I get a generic fail window when I try and run this. :/

  • Guests
  • Last active:
  • Joined: --
InStr is a function

None
  • Members
  • 3199 posts
  • Last active: Apr 13 2014 02:11 AM
  • Joined: 28 Nov 2009
aandasac:="Some Text"
aandasp := InStr(aandasac," ", 0,1)

InStr(Haystack, Needle [, CaseSensitive = false, StartingPos = 1])