Encodeforfilename()

Encodes the string to be used as a filename. Removes all characters except for A-Z, a-z, 0-9, _ - .

Usage

STRING = Encodeforfilename( string, ifblank )
Argument Summary
string the string to encode
ifblank if resulting string is blank then return this string instead [optional]

Calling

Supports named-parameter calling allowing you to use the function like:

Encodeforfilename(
   string=?, 
   ifblank=?
);

Supports passing parameters as a structure using ArgumentCollection:

Encodeforfilename( ArgumentCollection={
   string : ?, 
   ifblank : ?
} );