导航:  String Procedures >

AfxStrPathName

上一页返回章节概述下一页

描述

 

解析提取组件的路径.

 

FreeBASIC 语法

 

FUNCTION AfxStrPathName ( _

  BYREF wszOption AS WSTRING, _

  BYREF wszFileSpec AS WSTRING _

) AS CWSTR

 

参数

 

wszOption

 

[in]下列之一,用于指定所请求的部分:

PATH

Returns the path portion of the path/file Name. That is the text up to and including the last backslash (\) or colon (:).

NAME

Returns the name portion of the path/file Name. That is the text to the right of the last backslash (\) or colon (:), ending just before the last period (.).

EXTN

Returns the extension portion of the path/file name. That is the last period (.) in the string plus the text to the right of it.

NAMEX

Returns the name and the extension parts combined.

 

wszFileSpec

 

[in]路径进行扫描.

 

引用文件

 

AfxStr.inc