Theos PowerBasic Museum 2017

Archive => Discussion - Legacy Software (PBWIN 9.0+/PBCC 5.0+) => Topic started by: Fredrick Ughimi on August 18, 2008, 01:37:33 PM

Title: Using PBWin9.0 To Access ADO's Methods and Properties Directly
Post by: Fredrick Ughimi on August 18, 2008, 01:37:33 PM
Hello,

I don't have PBWin 9.0 yet. Just recently upgraded from 7.04 to 8.04.  >:(

I read in the PB Forum that with PBwin version 9.0 - Powerbasic with Objects one can access the properties and Methods of COM Objects directly. Just like in VB6 where a save routine would be something like this?


rstEmployees.AddNew
        rstEmployees!emp_id = strID
        rstEmployees!fname = strFirstName
        rstEmployees!lname = strLastName
rstEmployees.Update


Would the AddNew, Update, and Fields methods be accessed directly like this? Does it also mean that one would not need Jose's ADO Include File. I would like to see some sample codes where PBWin9 accesses MS Access through ADO directly.

Kind regards,

Title: Re: Using PBWin9.0 To Access ADO's Methods and Properties Directly
Post by: José Roca on August 18, 2008, 08:14:50 PM
 
Exactly like this, not. The "!" shortcut is not something standard, but a feature of VB. You no longer need my libraries of wrappers. You can find a bunch of examples here: http://www.jose.it-berater.org/smfforum/index.php?board=215.0
Title: Re: Using PBWin9.0 To Access ADO's Methods and Properties Directly
Post by: Fredrick Ughimi on August 18, 2008, 10:00:33 PM
Hello Jose,

Thank you for your response.

>>Exactly like this, not. The "!" shortcut is not something standard,

I knew it won't be exactly anyway.  :)

>>You can find a bunch of examples here

Thank you so much. But where does ADO.inc file come from?

Kind regards,
Title: Re: Using PBWin9.0 To Access ADO's Methods and Properties Directly
Post by: José Roca on August 18, 2008, 10:08:00 PM
Quote
Thank you so much. But where does ADO.inc file come from?

It is one of the many files from my new include files:
http://www.jose.it-berater.org/smfforum/index.php?topic=2656.0

You can use them or make your own using the new PB COM Browser or my new TypeLib Browser: http://www.jose.it-berater.org/index.html
Title: Re: Using PBWin9.0 To Access ADO's Methods and Properties Directly
Post by: Fredrick Ughimi on August 18, 2008, 10:21:28 PM
Hello Jose,

Thank you and God Bless You.

Best regards,