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
  • 651 posts
  • Last active: Today, 01:24 AM
  • Joined: 13 Aug 2006

SubStr(String, StartingPos [, Length])

Hubert

CodeKiller
  • Members
  • 2067 posts
  • Last active: Aug 13 2014 11:26 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