• Welcome to Theos PowerBasic Museum 2017.

News:

Attachments are only available to registered users.
Please register using your full, real name.

Main Menu

Using PBWin9.0 To Access ADO's Methods and Properties Directly

Started by Fredrick Ughimi, August 18, 2008, 01:37:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fredrick Ughimi

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,


José Roca

 
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

Fredrick Ughimi

#2
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,

José Roca

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

Fredrick Ughimi