Trying to access DBF/CDX through ADS with bTools.bServer
Posted: Tue Aug 03, 2021 2:46 pm
Hi,
I am a new user to X# and I am fascinated by the project. Also still a bit confused. Please excuse some newbie errors. At the moment I am trying to access DBF/CDX files from a remote ADS instance using X# in VisualObjects Dialect.
At the time I cannot access the CDX files and special characters aren't displayed correctly.
I am using XSharp.RDD with RDDSETDEFAULT("AXDBFCDX") and supplied all the required DLLs like ace32.dll. The code looks something like this:
I can access the DB, but unfortunately I cannot set the index with :setIndex and special characters are not displayed correctly.
Any hints would be highly appreciated!
Thanks already!
I am a new user to X# and I am fascinated by the project. Also still a bit confused. Please excuse some newbie errors. At the moment I am trying to access DBF/CDX files from a remote ADS instance using X# in VisualObjects Dialect.
At the time I cannot access the CDX files and special characters aren't displayed correctly.
I am using XSharp.RDD with RDDSETDEFAULT("AXDBFCDX") and supplied all the required DLLs like ace32.dll. The code looks something like this:
Code: Select all
SetAnsi(true)
RDDSETDEFAULT("AXDBFCDX")
LOCAL _oDbArtikel as bDBServer
_oDbArtikel = bDBServer{"<IP>:<PORT>ADSTestdArtikel"}
IF !_oDbArtikel:setIndex (<IP>:<PORT>ADSTestdArtikel.cdx")
Infobox{,,"Index-File cannot be opened!"}:show()
ENDIF
IF _oDbArtikel:seek("1234")
System.Console.WriteLine("Art: " + (string)_oDbArtikel:fieldGet(#Arname))
ELSE
System.Console.WriteLine("Art not found!")
ENDIF
_oDbArtikel:Close()
Any hints would be highly appreciated!
Thanks already!