Resize pictures

This forum is meant for examples of X# code.

User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Resize pictures

Post by wriedmann »

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
 
Attachments
CoreDBF.zip
(2.74 KiB) Downloaded 136 times
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Resize pictures

Post by Chris »

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?
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Resize pictures

Post by wriedmann »

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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Resize pictures

Post by Chris »

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...
 
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Resize pictures

Post by wriedmann »

Hi Chris,
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
Post Reply