Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6999 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I want to substitute for all the "" characters in a text string. I tried doing it like this:

Substitute(text; ""; "~")

That doesn't work because FileMaker sees """ as a literal quote mark and won't accept "".

Anyone?

Posted

Substitute ( text ; "" ; "~" )

'' is the escape character

Posted

Substitute ( text ; "" ; "~" )

'' is the escape character

Thank you very much mr vodka. I am not sure I fully understand the meaning of escape character and it's implications. Can you enlighten me?

Posted

Escaping a character, simply means you are telling the application program, FileMaker in this case, to treat the character as Text, and not an operator.

HTH

Lee

Posted

There are special characters with every programing language. Since FileMaker uses scripting, there are special characters for FileMaker too.

The symbol is a special character because it is used to escape (meaning escaping its special features and take it as a literal).

So by having The first one is used to escape the special character ''; thus taking the second one as a literal text

Posted

I wonder why the backslash character was chosen to be the escape character since it is so commonly used in file paths. It seems to introduce needless complexity into everyday tasks. I would have thought that a less used character would have been a better choice but there may be a good reason for using the backslash.

Posted

Hmmm. dunno. But the backslash is a known common escape character in other applications.

Posted

Keep in mind that the backslash as file/path designator is a Windows feature.

The backslash as escape character goes back to early UNIX environments, and (according to the wikipedia - http://en.wikipedia.org/wiki/Backslash) was introduced in 1960. It has been used in numerous programming languages as the escape character. UNIX regular expressions make use of the backslash; so do most major programming environments, including C and C++.

David

Posted

Hmmmmm, maybe I should redirect the question to Mr. Gates; how come you used the backslash character as a separator in the file path?

Posted

" Keep in mind that the backslash as file/path designator is a Windows feature"

"I should redirect the question to Mr. Gates; how come you used the backslash character as a separator in the file path?"

Backslash is NOT a Windows feature. Backslash goes back to the DOS command line and Microsoft simply continued it (ummm, DOS does still exist). You could say the backslash is an IBM compatible (pre-windows) feature. What Microsoft did which caused the most trouble (back then) was introduce long file names which broke the 8.3 file limitations. I remember those days ... that was a rough transition for many of us ...

This topic is 6999 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.