itematpos()
c:
c:\windows
tab ("get", "path")
c:\
c:\windows
It should either return both with a trailing backslash:
c:\
c:\windows\
or neither:
c:
c:\windows
PS: Unless there is a strong reason for that inconsistency...
PPS: Actually, this is more of a observation/question than a "wish". Like "I've noticed this inconsistency, is there any reason for that? Or if not, maybe it should be changed". This should probably be moved into "Questions" section.
tab ("get", "path") returns a drive letter without a trailing backslash
-
- Site Admin
- Posts: 60598
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: tab ("get", "path") returns a drive letter without a trailing backslash
Hmm, I'm unhappy about this. The rule is that variables and functions in XY should return paths without a trailing slash. So this is a bug. But if I fix it, it will likely break old user code. Any ideas?
FAQ | XY News RSS | XY Twitter
Re: tab ("get", "path") returns a drive letter without a trailing backslash
In this case, you've set a rule. Follow it. Scripters must adapt^^
One of my scripts helped you out? Please donate via Paypal
-
- Site Admin
- Posts: 60598
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: tab ("get", "path") returns a drive letter without a trailing backslash
I'll classify this as a bug. Scripters will be happy about the fix.
FAQ | XY News RSS | XY Twitter