|
Previous Top Next |
Prototype: | (String pPath), Byte |
pPath | Path to check if it is a UNC path or not |
Returns | Returns true or false depending on if the pPath path starts with '\\' or not |
This method is very simple as it just checks if the path is more than two characters and if those two characters are '\\' If that is the case the method will return true, otherwise it will return false.
Example:
ITN ITNetworkClass
P String(255)
Code
P = 'C:\'
If ITN.IsUNC(P)
Message(Clip(P) & ' is a UNC path')
Else
Message(Clip(P) & ' is NOT a UNC path')
End
See also: