Hi Chris,
I have started working on a DBServer that exposes all the functionality of the DBServer, but without the notification things, and all based on the RDD classes. The class is working, but I was not able to make the seek method working as I have not found anything to access the orders.
Please find a PRG attached with the actual development state.
Wolfgang
Resize pictures
Resize pictures
- Attachments
-
- CoreDBF.zip
- (2.74 KiB) Downloaded 137 times
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Resize pictures
Hi Wolfgang,
Nice work! Not sure what you mean about seek though, I see you have used the same code that the runtime does. Doesn't that work?
Nice work! Not sure what you mean about seek though, I see you have used the same code that the runtime does. Doesn't that work?
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
Resize pictures
Hi Chris,
the Seek method does not work as I don't have found any possibility to set an order in these classes.
Most of the code is written searching in the class sources as I have not found any useful documentation.
Maybe I will have to build a sample....
Wolfgang
the Seek method does not work as I don't have found any possibility to set an order in these classes.
Most of the code is written searching in the class sources as I have not found any useful documentation.
Maybe I will have to build a sample....
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Resize pictures
Hi Wolfgang,
Well, documenting everything would take too much time I am afraid, but you can see how everything works by following the high-to-low level implementation. For setting an order, see first the code for DBSetOrder(), as you can see it simply calls VoDb.OrdSetFocus(). VoDb inherits from CoreDb, and there you can find the method OrdSetFocus() defined, in file XSharp.CoreRDDCoreDb.prg. Just use the same code in your custom class (with any adjustments you like of course) and it whould be fine! Same for everything else that you need to implement...
Well, documenting everything would take too much time I am afraid, but you can see how everything works by following the high-to-low level implementation. For setting an order, see first the code for DBSetOrder(), as you can see it simply calls VoDb.OrdSetFocus(). VoDb inherits from CoreDb, and there you can find the method OrdSetFocus() defined, in file XSharp.CoreRDDCoreDb.prg. Just use the same code in your custom class (with any adjustments you like of course) and it whould be fine! Same for everything else that you need to implement...
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
Resize pictures
Hi Chris,
thank you very much!
I will try that and then share my code.
Wolfgang
thank you very much!
I will try that and then share my code.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it