Announcement

Collapse
No announcement yet.

Is PBForms.inc not compatible with ADO?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dominic Mitchell
    replied
    I decided to try the file the PB COM browser would produce, but for some odd reason the browser
    does not seem to like my system. It lists the registered versions of the type library, but
    displays "Libray not present" in the Location field.
    It's the only browser of the many in my arsenal that behaves like this.

    Well, I can use the "Open Library File" command, but there is no way I am going to let this browser
    monkey around with my type libraries.

    The Microsoft ActiveX Data Objects library is a rather interesting library when it comes to the
    resolving of external references, but I digress.

    Leave a comment:


  • Alexander Holzer
    replied
    Originally posted by José Roca View Post
    DATA is used to declare string constants within the source code to be read by READ$ function.
    Example: DATA "Abc", Bob, "Sally", 123
    Read the help file.
    Apparently, the compiler is being confused when used as a parameter name.
    If PowerBasic reserves this word, it must think if such case comes.
    My recommendation:
    - change in the COM Browser ".. DATA string.." on " .. xDATA string..", if such entries would happen.
    Otherwise one must everyone times examine Work of COM Browser.
    COM Browser is also development of the PB.

    Leave a comment:


  • Alexander Holzer
    replied
    I have this error with WinXP Pro & Home, SP2.
    PBWin 8.04.0042

    Leave a comment:


  • José Roca
    replied
    I have tested it with version 8.04, but you have to use the particular MSADO27.INC file that Alexander is using.

    Leave a comment:


  • Dominic Mitchell
    replied
    Which version of the compiler is this? I am not getting any errors on my system(PB/WIN 8.04).

    Leave a comment:


  • José Roca
    replied
    DATA is used to declare string constants within the source code to be read by READ$ function.
    Example: DATA "Abc", Bob, "Sally", 123
    Read the help file.
    Apparently, the compiler is being confused when used as a parameter name.

    Leave a comment:


  • Alexander Holzer
    replied
    But PBForms use this "word" DATA also...
    Why does it make this? if it admits is

    Leave a comment:


  • José Roca
    replied
    It is not a PBForms problem. Is a problem of using the reserved word Data as the name of a parameter when there are more parameters after it.

    Leave a comment:


  • Alexander Holzer
    replied
    Thanks José Roca!
    It works!

    ..but I think, to use PBForms further

    Leave a comment:


  • Alexander Holzer
    replied
    I change my code and shall work without PBForms
    Last edited by Alexander Holzer; 6 Mar 2008, 01:24 AM.

    Leave a comment:


  • Alexander Holzer
    replied
    Originally posted by José Roca View Post
    Hi Alexander,

    Do you have understood what I have said in my previous post?

    Just change Data to xData in the following line of MSADO27.INC:

    Code:
        Member Call WriteText<&H00000014>(in [B]Data[/B] As String<&H00000000>, optional in Options As enumADODBStreamWriteEnum<&H00000001>)
    OK, I make...

    Is this MEMBER CALL WriteText continues to function?
    Last edited by Alexander Holzer; 5 Mar 2008, 05:40 PM.

    Leave a comment:


  • José Roca
    replied
    Hi Alexander,

    Do you have understood what I have said in my previous post?

    Just change Data to xData in the following line of MSADO27.INC:

    Code:
        Member Call WriteText<&H00000014>(in [B]Data[/B] As String<&H00000000>, optional in Options As enumADODBStreamWriteEnum<&H00000001>)

    Leave a comment:


  • Alexander Holzer
    replied
    Thanks José Roca,
    but unfortunately this library is necessary to me.

    While I don't use PBForms more.., but it is a pity

    Leave a comment:


  • StanHelton
    replied
    Thank you Jose

    PB doesn't natively support visual ActiveX controls because these need an OLE container. But ADO is not a visual ActiveX.
    thanks for that clarification. now I will reread the thread hopefully with understanding.

    Leave a comment:


  • Alexander Holzer
    replied
    Originally posted by Edwin Knoppert View Post
    You can not modify PBMain() ?
    1. read that

    2. For what did I buy then this program (PBForms)???
    ...if I must correct thereafter everything

    Leave a comment:


  • José Roca
    replied
    The problem is in this line in MSADO27.INC:

    Code:
        Member Call WriteText<&H00000014>(in Data As String<&H00000000>, optional in Options As enumADODBStreamWriteEnum<&H00000001>)

    Apparently the use of the Data keyword as the name of the parameter is causing havoc. Change it to:

    Code:
        Member Call WriteText<&H00000014>(in [B]xData[/B] As String<&H00000000>, optional in Options As enumADODBStreamWriteEnum<&H00000001>)
    According to my documentation PB doesn't support ActiveX controls yet the discussion here seems to assume that it does. Did I miss something?
    PB doesn't natively support visual ActiveX controls because these need an OLE container. But ADO is not a visual ActiveX.

    Leave a comment:


  • StanHelton
    replied
    Read the thread now I'm cofused

    MSADO27.INC to be created with PowerBasic COM-Browser from ActiveX Data Objects 2.7 Type Library (msado27.tlb).
    But I need this library.
    According to my documentation PB doesn't support ActiveX controls yet the discussion here seems to assume that it does. Did I miss something?

    Last edited by StanHelton; 5 Mar 2008, 04:41 PM. Reason: To include quote

    Leave a comment:


  • Edwin Knoppert
    replied
    You can not modify PBMain() ?

    Leave a comment:


  • Alexander Holzer
    replied
    No, no...
    How with it: PBFormsMakeFont, PBFormsRichEdit ???

    And next time PBForms will all change back again...

    Leave a comment:


  • Edwin Knoppert
    replied
    If i remove the macrotemp's it works.

    Though it's not 'allowed' to modify this pbforms.inc

    Leave a comment:

Working...
X
😀
🥰
🤢
😎
😡
👍
👎