AlfredJanssen wrote: Fri May 29, 2026 12:50 pm
Is there a function in X# that sets the code page? Otherwise, the contents of the DBF files cannot be read correctly.
XSharp uses the DBF header to decode the codepage.
If that does not work correctly, then please send us an example table.
Hi Chris.
I compiled my xBase project and got a huge error log. Could you take a quick look at the file? What do you think? I think that with so many errors, it’s almost impossible to convert my project from xBase to X#. My source code is about 17 MB. What do you think—do you see a way to do this?
Best regards, Alfred
Alfred,
The error log is very big, but that is because you have compiled with the /verbose compiler option.
Without that option there a limited # of errors:
- error XS1031: Type expected -> Compile with /vo15+
- error XS9091: To use Dynamic variables -> compile with /memvar+
- error XS1633: Unrecognized or unsupported #pragma directive ' #pragma library( "xppocx.lib" )' -> this should be handled with a #command or #translate. You do not need these in X#
- error XS9003: Pre-processor: Unexpected UDC separator character found -> we need to see the file that has this
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
In addition to what Robert said, you cannot expect to compile 17 MB of source code in one go. Please start with smaller pieces, maybe some routines, small libraries etc, to see what problems arise. Maybe you'll need to make some small changes, which you will then get used to, or maybe we need to make small changes to the compiler to read the code better. After that, it will be a lot easier to compiler larger pieces of code.