AnsweredAssumed Answered

vrf (VRF) Making an audio file -

Question asked by VRFuser on Jun 6, 2008
> OK, I'll bite, what is the significance of doubling-up the
> backslashes?

Well, as Jochen didn't mention it I tried it without doubled up backslashes, and it works just the same. Text constants behave differently than Formulas (and that does actually make sense).

It's a very old thing from the misty beginnings of computer time...

In almost any language, there is always a way to enter characters you can't otherwise type into a string, like Ctrl-X for instance. The most popular escape character (which signaled an escape sequence, meaning the next character was a code for something, like "r" for carriage return or "n" for new line) was the backslash.

This of course left the backslash out in the cold, so a double backslash is interpreted as a real, single backslash (spinning yet?)

Enter Microsoft, who chose to use the backslash as a path separator. C, the most popular programming language in history, used the backslash for an escape character. So, when writing C for DOS or Windows you have to write things like char fname[] = "c:\path\file.ext" rather than the much more natural 'NIX char fname[] = "/home/shawn/file.ext" or "~/file.ext" if your shortcutting.

This was passed on to VEE's string interpreter (written as it was in some C-like variant), so in a Formula the equivalent becomes fname = "c:\path\file.exe".
-SHAWN-

Outcomes