Is there an error in the automatic class name completion
Hello community, hello Manuel,
I want to try the method java#sql#jdbc#odbc#ee.DataSource, but the automatic class name completion of the method name stops after odbc. Jabaco cannot find the class. I try this code:
What is wrong?
Thanks for tips.
Cheers
Stefan
I want to try the method java#sql#jdbc#odbc#ee.DataSource, but the automatic class name completion of the method name stops after odbc. Jabaco cannot find the class. I try this code:
|
|
Jabaco Source |
1 2 |
Dim ds As sun#jdbc#odbc#ee.DataSource Set ds = New sun#jdbc#odbc#ee.DataSource() |
What is wrong?
Thanks for tips.
Cheers
Stefan
Hi Stefan,
the error does not occur in my environment (Jabaco 1.4.2 + JDK 6_14).
Are sure about the "."? I'm still confused between namespaces and method/property path conventions.
I compiled and debugged the line of code with "." and "#".
Both compiled OK. But only the "#" version could be executed without error.
Regards
A1880
the error does not occur in my environment (Jabaco 1.4.2 + JDK 6_14).
Are sure about the "."? I'm still confused between namespaces and method/property path conventions.
I compiled and debugged the line of code with "." and "#".
Both compiled OK. But only the "#" version could be executed without error.
|
|
Source code |
1 2 3 4 |
Dim ds As sun#jdbc#odbc#ee#DataSource ds = New sun#jdbc#odbc#ee.DataSource() ds = New sun#jdbc#odbc#ee#DataSource() |
Regards
A1880
This post has been edited 1 times, last edit by "A1880" (Jun 24th 2009, 12:53pm)
Hello A1880,
thanks for your reply.
My problem is not the code, my problem is the following:
Type sun#, now Jabaco opens code completion, type jdbc#, now Jabaco opens code completion again, type odbc#, now Jabaco opens nothing. The code works well, but the code completion of the class names and methods not.
Thanks for tips.
Cheers
Stefan
thanks for your reply.
My problem is not the code, my problem is the following:
Type sun#, now Jabaco opens code completion, type jdbc#, now Jabaco opens code completion again, type odbc#, now Jabaco opens nothing. The code works well, but the code completion of the class names and methods not.
|
|
Jabaco Source |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Dim ds As sun#jdbc#odbc#ee#DataSource Set ds = New sun#jdbc#odbc#ee#DataSource() ds.setDatabaseName("Test") Dim sta As java#sql#Statement Set sta = ds.getConnection().createStatement() Dim res As java#sql#ResultSet Set res = sta.executeQuery("SELECT * FROM Test") Do Until Not res.next() Debug.Print res.getString("Test1") Debug.Print res.getInt("Test2") Loop ds.getConnection().close() |
Thanks for tips.
Cheers
Stefan
Hi Stefan
On my computer it's also not possible to reproduce your problem.
maybe you misspelled that ?)
odbc is similar to oddc or obdc or obbc
But to be honest, sometimes I encountered that Jabaco does not do what I except, but most of the time it's because of a mistake elsewhere in my code. Four eyes .. you could send me a email with your code attached and zipped.
greetings
OlimilO
On my computer it's also not possible to reproduce your problem.
maybe you misspelled that ?)
odbc is similar to oddc or obdc or obbc
But to be honest, sometimes I encountered that Jabaco does not do what I except, but most of the time it's because of a mistake elsewhere in my code. Four eyes .. you could send me a email with your code attached and zipped.
greetings
OlimilO
Hello community, hello Manuel,
I check it again. I install Jabaco in a VM with a clean XP and I get the same error. Exactly the same with a Vista VM. At first I install Java6u14 and then Jabaco. I do not know what is wrong.
Any ideas?
Cheers
Stefan
Hello Manuel,
is there any registry entry, an ActiveX module or anything else which can create this effect?
Thanks.
Cheers
Stefan
I check it again. I install Jabaco in a VM with a clean XP and I get the same error. Exactly the same with a Vista VM. At first I install Java6u14 and then Jabaco. I do not know what is wrong.
Any ideas?
Cheers
Stefan
Hello Manuel,
is there any registry entry, an ActiveX module or anything else which can create this effect?
Thanks.
Cheers
Stefan
Similar threads
-
General topics, questions and discussions »-
SQLITE 3 support
(Jan 29th 2009, 9:33am)
-
Tips, Tricks, Samples & Tutorials »-
Like creating a database
(Apr 25th 2009, 5:17pm)
-
General topics, questions and discussions »-
File operations don't work for me
(Dec 14th 2008, 7:32pm)
