-
-
Notifications
You must be signed in to change notification settings - Fork 18
StringPathName
Parses a path/file name to extract component parts. This function evaluates a text path/file text name, and returns a requested part of the name. The functionality is strictly one of string parsing alone. wszOption is one of the following words which is used to specify the requested part: 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 EXTN parts combined. Example: StringPathName("C:\VisualFBEditor\Poject.Bas") ->C:\Visual Free Basic\ StringPathName("C:\VisualFBEditor\Poject.Bas","NAME") ->Poject StringPathName("C:\VisualFBEditor\Poject.Bas","NAMEEX") ->Poject.Bas StringPathName("C:\VisualFBEditor\Poject.Bas","EXTN") -> .Bas
Function StringPathName(ByRef wszFileSpec As WString, ByRef wszOption As Const WString = "PATH") As UString
Part | Type | Description |
wszFileSpec
|
WString | Required. |
wszOption
|
Const WString | Optional. |
- Table of Contents
- Controls and objects
- Controls
- Animate
- Chart
- CheckBox
- CheckedListBox
- ComboBoxEdit
- ComboBoxEx
- CommandButton
- DateTimePicker
- Grid
- Header
- HotKey
- HScrollBar
- ImageBox
- IPAddress
- Label
- LinkLabel
- ListControl
- ListView
- MonthCalendar
- PageScroller
- ProgressBar
- RadioButton
- ReBar
- RichTextBox
- ScrollBarControl
- Splitter
- StatusBar
- TextBox
- ToolBar
- ToolPalette
- TrackBar
- TreeListView
- TreeView
- UpDown
- VScrollBar
- WebBrowser
- Containers
- Components
- Dialogs
- Controls
- Functions and methods
- Numeric functions
- String functions
- Pointer functions