|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > File > DBWReplaceInvalidChars |
Given a string, the function replaces the followings not allowed characters
< > \ / | $ % ^ * " ? :
with underscore so to be suitable for being a filename on Windows filesystems.
Function DBWReplaceInvalidChars(InputString)
InputString |
The string to be adapted |
The function returns the adapted string with no valid chars substituted by underscore char "_"
inputString = "<this is my string> - **??"
convertedString = DBWReplaceInvalidChars(inputString)
convertedString will assume the value of
_this is my string_ - ____