I want to populate a text field with a path, for example \Layers\SiteVisit
but when I try to use '\Layers\SiteVisit' I get an error. It seems the \ symbol is not recognised as a character within the ' '
Can someone please advise?
I want to populate a text field with a path, for example \Layers\SiteVisit
but when I try to use '\Layers\SiteVisit' I get an error. It seems the \ symbol is not recognised as a character within the ' '
Can someone please advise?
You can also use \\ if you really want to use that character (eg for consistent display purposes).
You have to use / because \ is used to escape any special character.
For example,
file_name('\Layers\SiteVisit.foo')
returns '?ayers?iteVisit.foo'
but
file_name('/Layers/SiteVisit.foo')
returns 'SiteVisit.foo'