xsharp.eu • How to disable Error XSXXXX
Page 1 of 1

How to disable Error XSXXXX

Posted: Fri Aug 25, 2017 9:31 am
by Frank Müßner
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

How to disable Error XSXXXX

Posted: Fri Aug 25, 2017 10:32 am
by robert
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:

Code: Select all

oDbServer:Replace({||" "}, #MARK, {||_FIELD->MARK="X"})
or

Code: Select all

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