Similar to double-quote characters, backslash characers within quoted literal strings must be escaped.
Thus, when you have a quote-enclosed string that contains a backslash, you must escape the backslash by preceding it with an additional backslash.
As such, your calculation would be written as follows (note the extra backslash):
Substitute( Substitute( filepath; "filewin:/" ; "" ) ; "/" ; "\\" )
FYI, as an extra note:
In recent versions of FM, the Substitute calculation syntax allows for multiple substitutions to be performed within a single function invocation.
This means that your calculation could be re-written as follows:
Substitute( filepath; [ "filewin:/" ; "" ] ; [ "/" ; "\\" ] )
Hope this helps, and kind regards,
Message was edited by: steve_ssh -- Corrected a syntax error in the second calculation in my post.
Thank you, Steve !