How to put symbol ' in string?

randrewsrandrews Member Posts: 135
How to put symbol ' in string? I want to have filter in Text variable. For example
FilterFromForm+'& ' ' '
' ' must be part of string

Comments

  • kinekine Member Posts: 12,562
    double it... '''' (4x') is string with one character ' ... :-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • randrewsrandrews Member Posts: 135
    thanks
  • xrivoxrivo Member Posts: 56
    but how you put '/' in a string ?
  • kinekine Member Posts: 12,562
    edited 2005-01-28
    do you mean character /, or string '/' or you mean backslash (\)?

    / in string = '/'
    '/' in string = '''/''';
    \ in string is = '\' or if you need it to be in mesage box and it is not end of line (new line character) then you can use this:
      define text constant TextBackSlash  as \
      and than for example 
      message('this %1 is backslash',TextBackSlash);
    
    will print 'this \ is backslash'
    
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.