04-04-2024, 01:50 AM
@Pete The reason is for easy splitting of the string.
a$ = "C:\My Dir\My File.txt"
Now, get the last slash in that string, to break it down to path + file:
path$ = LEFT$(a$, _INSTRREV(a$, "\"))
file$ = MID$(a$, _INSTRREV(a$, "\") + 1)
a$ = "C:\My Dir\My File.txt"
Now, get the last slash in that string, to break it down to path + file:
path$ = LEFT$(a$, _INSTRREV(a$, "\"))
file$ = MID$(a$, _INSTRREV(a$, "\") + 1)