- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if a file name without a path is passed to the function SplitPathQQ it returns a number unrelated to path length
say we pass the function name='whatever.txt'
from manaul:
result = SPLITPATHQQ (path,drive,dir,name,ext)
The result type is INTEGER(4). The result is the length of dir.
and dir is (Output) Character*(*). Path of directories, including the trailing slash.
say we pass the function name='whatever.txt'
from manaul:
result = SPLITPATHQQ (path,drive,dir,name,ext)
The result type is INTEGER(4). The result is the length of dir.
and dir is (Output) Character*(*). Path of directories, including the trailing slash.
in a sample i am running i get 48 (which may be the path lengthto the workingdirectory for the debug session?
it should be zero
is result undefined if no path given? or the path to the 'working directory'?
thanks
Brian
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A quick experiment shows that if you specify a relative path, the result has the default of the current directory applied. It is not simply parsing what you supply - it gets the full path first and then parses that.
I agree that the documentation could be improved to note that incomplete paths are filled in.
I agree that the documentation could be improved to note that incomplete paths are filled in.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page