Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: find locate itemlocate string functions
Umm. No. This would require use of the string functions. Something like:
DaString="ABCQXYZ" DaChar="Q" a=StrIndex(DaString,DaChar,0,@FWDSCAN) DaAnswer=StrSub(DaString,a-2,2)
Here's an example using the StrSub function:
newstring=strsub(oldstring,1,5)
newstring=strsub(oldstring, strlen(oldstring)-5,5)
newstring=strsub(oldstring,3,6)
Article ID: W13333
Filename: Finding Character Position in String.txt
File Created: 2001:01:08:16:18:38
Last Updated: 2001:01:08:16:18:38