|
new_splitpath
The new_splitpath creator function is a
non-class version of the CSplitpath:
new method which creates and returns a new
CSplitpath object..
Note: This method's name uses all lower case to
present it as the analog of the C++ new operator. Generally,
the names of class methods begin with an uppercase letter but
new and delete are different.
Syntax
|
S = new_splitpath()
|
|
|
Creates an
empty CSplitpath object. When using this constructor, you cannot
split the path until you asign a string to be split using the
Set methods such as
Split (which sets the entire path).
|
|
S = new_splitpath( sString )
|
|
Creates a
CSplitpath object ready to be split or otherwise manipulated. Using
this constructor,
SetPath is not needed unless you want to change the
path being split.
|
|
sString is the string
to be split.
On failure,
nil is returned.
|
Example
|
S = new_splitpath( sPath
)
|
|
|
...
|
|
|
S:delete()
|
|
Related Topics
CSplitpath class
new
delete
Split
Merge
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|