Search found 118 matches

by Kees Bouw
Mon Dec 09, 2024 8:48 am
Forum: 3rd party products
Topic: Convert AdoRecordSet to DataTable
Replies: 12
Views: 1910

Re: Convert AdoRecordSet to DataTable


Kees,

There will be no real updates to the documentation, I am afraid.
Just like any other company, my company needs to justify spending time on this work.
There simply is no business case for spending a lot of time on this.
And since the major part of Vo2Ado and Xs2Ado is a thin layer on the ADO ...
by Kees Bouw
Fri Dec 06, 2024 4:25 pm
Forum: 3rd party products
Topic: Convert AdoRecordSet to DataTable
Replies: 12
Views: 1910

Re: Convert AdoRecordSet to DataTable

Robert,

That is very good news, an Xs2Ado update. I am working on a project where Xs2Ado is used a lot and while it may be better to use Ado.Net in X#, the priority at the moment is to transform the VO-forms to Winforms and add features. So Xs2Ado will not be abandoned for quite some time, if at ...
by Kees Bouw
Thu Dec 05, 2024 2:41 pm
Forum: 3rd party products
Topic: Convert AdoRecordSet to DataTable
Replies: 12
Views: 1910

Re: Convert AdoRecordSet to DataTable

Robert,

In your example below I get error XS7036 There is no argument given that corresponds to the required formal parameter 'lRows' of 'Xs2Ado.AdoRecordSet.GetRows(usual, usual, usual)' on the line
var aRows := oRs:GetRows()
I looked it up, it seems that the second and third parameter are ...
by Kees Bouw
Mon Dec 02, 2024 11:10 am
Forum: 3rd party products
Topic: Convert AdoRecordSet to DataTable
Replies: 12
Views: 1910

Re: Convert AdoRecordSet to DataTable


Kees,
If you want an Ado.Net DataTable then it makes much more sense to also use "plain" Ado.Net to fetch the data and not Xs2Ado.
Which database are you connecting to and which OleDb provider are you using with Xs2Ado?

Robert


Robert,

The database I am connecting to is Microsoft SQL Server ...
by Kees Bouw
Fri Nov 29, 2024 11:11 am
Forum: 3rd party products
Topic: Convert AdoRecordSet to DataTable
Replies: 12
Views: 1910

Re: Convert AdoRecordSet to DataTable

Hi,

What about using an AdoServer object to fill a System.Data.DataTable object? I am trying to populate a Winforms DataGridView with data from an AdoServer object. For ADS it is like this: create an AdsDataReader object and a System.Data.DataTable object, then do DataTable:Load(AdsDataReader) and ...
by Kees Bouw
Thu Oct 17, 2024 3:28 pm
Forum: 3rd party products
Topic: Convert AdoRecordSet to DataTable
Replies: 12
Views: 1910

Re: Convert AdoRecordSet to DataTable

Hi Robert,

In your example, on this line:

foreach oField as AdoField in oRs:Fields


I get this error:

Error XS1579 foreach statement cannot operate on variables of type 'Xs2Ado.AdoFields' because 'Xs2Ado.AdoFields' does not contain a public instance or extension definition for 'GetEnumerator ...
by Kees Bouw
Fri Sep 13, 2024 6:50 am
Forum: Product
Topic: Miscellaneous questions about converting VO code to X#
Replies: 61
Views: 8523

Re: Miscellaneous questions about converting VO code to X#

Hi Chris,

Thank you very much for your reply. Using NEW is indeed the answer, now that you mentioned this I looked at the "Class hierarchy modifiers" page in the online documentation again and it is explained there. I did see this page yesterday but I did not read it carefully because there was so ...
by Kees Bouw
Thu Sep 12, 2024 2:36 pm
Forum: Product
Topic: Miscellaneous questions about converting VO code to X#
Replies: 61
Views: 8523

Re: Miscellaneous questions about converting VO code to X#

Ok, so nobody knows an answer to the previous question unfortunately. Next question. The System.Windows.Forms.Form class has a method Close(). How can I override this method without getting the warning "Warning XS0108 'MyClass.Close()' hides inherited member 'System.Windows.Forms.Form.Close()'. Use ...
by Kees Bouw
Wed Sep 11, 2024 1:03 pm
Forum: Product
Topic: Miscellaneous questions about converting VO code to X#
Replies: 61
Views: 8523

Re: Miscellaneous questions about converting VO code to X#

While converting a VO.DataDialog to a System.Windows.Forms.Form I ran into some problems, maybe because the whole setup is not straightforward. In the VO code, it starts with a class that has a lot of "helper" methods, this class inherits from VO.DataDialog.Then there is a second class with another ...
by Kees Bouw
Mon Sep 09, 2024 10:07 am
Forum: Product
Topic: Best solutions for converting known/often used VO libs to X#?
Replies: 24
Views: 6070

Re: Best solutions for converting known/often used VO libs to X#?


of course bBrowser need to be adapted to these classes to work.
If this adaption is made, does not depends on me, but on Joachim Bieler and the X# development team.
Of course as bBrowser user I'm highly interested in this project (but I have to confess that I'm using more and more ListViews ...