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

TOPIC: How to disable Error XSXXXX

How to disable Error XSXXXX 1 year 9 months ago #2474

  Frank Müßner's Avatar Topic Author Frank Müßner Offline Posts: 84
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 1 year 9 months ago #2475

  robert's Avatar robert Offline Posts: 969
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
This email address is being protected from spambots. You need JavaScript enabled to view it.

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

  • Page:
  • 1