fbpx

How to disable Error XSXXXX

More
1 year 4 months ago #1 by Frank Müßner
How to disable Error XSXXXX was created 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

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

More
1 year 4 months ago #2 by Robert van der Hulst
Replied by Robert van der Hulst on topic How to disable Error XSXXXX
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.