Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

substring


  • Please log in to reply
2 replies to this topic
ghij
  • Guests
  • Last active:
  • Joined: --

Length:=SubStr(LB, 0,2)
Breadth:=SubStr(LB, 3,2)

i want syntax of substring with example in ahk



hd0202
  • Members
  • 709 posts
  • Last active: Feb 14 2016 08:05 PM
  • Joined: 13 Aug 2006

SubStr(String, StartingPos [, Length])

Hubert

CodeKiller
  • Members
  • 2067 posts
  • Last active: Feb 26 2016 09:30 AM
  • Joined: 10 Jul 2008
Example :

File := "Test.txt"
Name := SubStr(File, 1, InStr(File, ".") -1)
Ext := SubStr(File, InStr(File, ".") + 1)
Msgbox % "Name = " Name "`nExt = " Ext