Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

How to disable Error XSXXXX 25 Aug 2017 11:31 #2474

  • Frank Müßner
  • Frank Müßner's Avatar
  • Topic Author


  • Posts: 259
  • Hello,

    i get XS0103 Error " 'MARK' does not exist in the current context. OK, right.

    #pragma warning disable 0103
    oDbServer:Replace({||" "}, #MARK, {||MARK="X"})
    #pragma warning restore 0103

    The Helpfile say, #Pragma not supported jet.
    Change log 7a, i read this is fixed.

    Which statement is true, and how is the correct spelling?

    Regards, Frank

    Please Log in or Create an account to join the conversation.

    How to disable Error XSXXXX 25 Aug 2017 12:32 #2475

    • robert
    • robert's Avatar


  • Posts: 3447
  • Frank,

    Both statements are correct:
    - Changelog: the #pragma does not throw an error when found in your source
    - Not supported: however #pragma is ignored.

    To fix your code, add a _FIELD-> prefix, or use one of the FieldGet functions:
    oDbServer:Replace({||" "}, #MARK, {||_FIELD->MARK="X"})

    or
    oDbServer:Replace({||" "}, #MARK, {||FieldGetSym(#MARK)="X"})

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1