xsharp.eu • Resize pictures - Page 3
Page 3 of 3

Resize pictures

Posted: Tue Jan 19, 2021 12:32 pm
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
 

Resize pictures

Posted: Tue Jan 19, 2021 1:59 pm
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?

Resize pictures

Posted: Tue Jan 19, 2021 4:34 pm
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

Resize pictures

Posted: Tue Jan 19, 2021 7:37 pm
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...
 

Resize pictures

Posted: Tue Jan 19, 2021 7:56 pm
by wriedmann
Hi Chris,
thank you very much!
I will try that and then share my code.
Wolfgang