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.
Announcement
Collapse
No announcement yet.
Is PBForms.inc not compatible with ADO?
Collapse
X
-
Originally posted by José Roca View PostDATA 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.
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:
-
-
I have this error with WinXP Pro & Home, SP2.
PBWin 8.04.0042
Leave a comment:
-
-
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:
-
-
Which version of the compiler is this? I am not getting any errors on my system(PB/WIN 8.04).
Leave a comment:
-
-
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:
-
-
But PBForms use this "word" DATA also...
Why does it make this? if it admits is
Leave a comment:
-
-
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:
-
-
Thanks José Roca!
It works!
..but I think, to use PBForms further
Leave a comment:
-
-
I change my code and shall work without PBFormsLast edited by Alexander Holzer; 6 Mar 2008, 01:24 AM.
Leave a comment:
-
-
Originally posted by José Roca View PostHi 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>)
Is this MEMBER CALL WriteText continues to function?Last edited by Alexander Holzer; 5 Mar 2008, 05:40 PM.
Leave a comment:
-
-
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:
-
-
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:
-
-
Thank you Jose
PB doesn't natively support visual ActiveX controls because these need an OLE container. But ADO is not a visual ActiveX.
Leave a comment:
-
-
-
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?
Leave a comment:
-
-
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.
Leave a comment:
-
-
No, no...
How with it: PBFormsMakeFont, PBFormsRichEdit ???
And next time PBForms will all change back again...
Leave a comment:
-
-
If i remove the macrotemp's it works.
Though it's not 'allowed' to modify this pbforms.inc
Leave a comment:
-
Leave a comment: