Backslash in code

Mike Schwartz mschw at athenet.net
Thu Jun 8 18:35:32 PDT 2017


> I am simply trying to filepro to output a “\” (backslash) and i have not been
> successful.  no matter what variation of chr(“92”) i use, filepro blanks it out
> instead of outputting a backslash.  what am i missing here?  Thank you very
> much,
> 
> @wef1::':
> ::zz="C^A"{chr("92"){"Windows":
> ::msgbox zz:
> ::end:
> 
> James Flanagan

     I think you need two backslashes:  

::zz="C^A"{chr("92"){chr("92"){"Windows":
  
     Backslash has a special meaning in Unix display strings.  Backslash means: ignore the "special formatting function" of the character that follows.   So the first backslash tells Unix to ignore the special function of the next character that follows, so the 2nd backslash will print just like any other non-special control character would.

Mike Schwartz


 





More information about the Filepro-list mailing list