- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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
Ссылка скопирована
1 Ответить
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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.

Ответить
Параметры темы
- Подписка на RSS-канал
- Отметить тему как новую
- Отметить тему как прочитанную
- Выполнить отслеживание данной Тема для текущего пользователя
- Закладка
- Подписаться
- Страница в формате печати