You are not logged in.

Search results

Search results 281-300 of 500.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Monday, January 18th 2010, 3:40pm

Author: A1880

Jacob's changed and I can't figure it out

Hi Bruce, have you tried an explicit Cast()? Jabaco Source 1 2 3 4 5 dShell = Cast(oShell.getObject(), Dispatch) or dShell = Cast(oShell.getObject(), com#jacob#com#Dispatch) Notice that "Set" is not necessary in Janaco to assign object values. Type "Object" should be compatible to any object in assignments without casting. Well, I haven't got a better hint for you. Greetings A1880

Sunday, January 17th 2010, 1:08pm

Author: A1880

EXEs don't work...

The exe is a self-unpacking jar. Whenever you execute the exe, it creates a jar in %TMP% and starts it via "java -jar yourProject.exe.jar". You can try to execute your jar file manually. Does that work? Verify that your PATH environment variable refers to the correct Java installation. Check also environment variable JAVA_HOME. A quick way to see your enviornment settings is to start a commandline box (cmd.exe) and enter "set" or "echo %PATH%". Use the Windows Java Control Panel to check your in...

Saturday, January 16th 2010, 4:26pm

Author: A1880

IDE Interface

Perhaps to indicate the default action you get when hitting the enter key. A1880

Friday, January 15th 2010, 11:17pm

Author: A1880

JABACO Error/Exception Management

Just for your inspirantion an example with nested exception/error handling: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 Option Explicit Public Sub Command1_Click() Dim i As Integer On Error Goto ErrHandler Call f1 Debug.Print "click: back again!" Exit Sub ErrHandler: MsgBox "click: " & Err.getMessage End Sub Private Sub f1 Dim i As Integer On Error Resume Next i = i \ (i - i) If Err <> Null Then Debug.Print "f1: '" & Err.getMes...

Friday, January 15th 2010, 9:59am

Author: A1880

JABACO Error/Exception Management

OK. You are right. Software should behave as transparently and self-curing as possible. Over the years, I've learned to appreciate the value of defensive programming. It pays off in many situations to check pre-conditions and post-conditions in a method or routine. To be able to react on errors you have to catch them first. It is therefore vital to have a correct implementation of "ON ERROR" or "try {} catch {}". You could help improving Jabaco by testing this and reporting deficiencies. My prev...

Thursday, January 14th 2010, 9:48pm

Author: A1880

JABACO Error/Exception Management

You could try and activate some logging either on the client side (jdbc logging) or on the server side (MySQL logging). "Connection refused" sounds like a firewall, router or networking problem. The server might not even be running at all ;-) Can you reach the server with netcat or some other application to make sure connectivity is OK? Try reaching your MySQL server with the MySQL client. Make sure that you enter the correct TCP/IP port number in the connect string. Another pitfall might be tha...

Thursday, January 14th 2010, 5:32pm

Author: A1880

JABACO Error/Exception Management

Jabaco offers the "on error" mechanism known from VB6. But my experiences so far are not 100% positive. Example: Jabaco code Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 Public Sub Command1_Click() Dim i As Integer On Error Goto ErrHandler i = 1 i = i \ (i - i) Exit Sub ErrHandler: MsgBox "got me!" End Sub compiles to Java runtime code: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 public void Command1_Click() { Throwable Err; Err = null; int i = 0; int i = 1; i = (int)((long)i / (long)(i - i...

Thursday, January 14th 2010, 11:41am

Author: A1880

XDEV

Hallo Community, hat sich von Euch schon jemand mit XDEV beschäftigt? Ist zwar ein anderer Ansatz als Jabaco, weist aber Überschneidungen in der Zielgruppe und im Anwendungsbereich auf. Gruß! A1880

Tuesday, January 12th 2010, 4:53pm

Author: A1880

CORBA

A correction from my side: There seems to be built-in CORBA support in recent Java releases (JDK 1.4 upwards). Therefore, you might be able to cooperate with existing CORBA application without using additional software rather than pure standard Java libraries. Most internet articles I've come across are more than five years old. Have that in mind when you read and experiment! A1880

Tuesday, January 12th 2010, 3:10pm

Author: A1880

CORBA

CORBA is an architecture, i.e. a set of standards how to communicate. The central part is the ORB (= Object Request Broker) which passes messages back and forth between the participating applications. If your application is supposed to communication according to CORBA, it has to implement the CORBA communication interfaces. In practice, you buy or download a set of Jar files and add them to the classpath of your Jabaco (or Java) projects. You can then call the programming interfaces ("API") to t...

Tuesday, January 12th 2010, 1:37pm

Author: A1880

CORBA

CORBA is a message oriented architecture for communicating objects. Be warned! CORBA is not for the faint-hearted. It should be feasible to connect a Jabaco application to some other IT systems using CORBA. The way to do that is to look for a commercial or open source CORBA client implementation in Java. Make sure that this implementation actually supports the same Java environment you are using for Jabaco. Some CORBA implementations are a bit outdated and rely on JDK 1.1 - 1.3. "CORBA opensourc...

Monday, January 11th 2010, 11:13pm

Author: A1880

Jabaco/java MySQL Data Manipulation

You can and should perform all these operations via SQL statements. Look here. This is Google's first hit on "JDBC Insert Update Delete". Any JDBC tutorial will show you the details. Happy experimenting! A1880

Thursday, January 7th 2010, 9:47pm

Author: A1880

References CLASSPATH

When you save your current Jabaco project, all ClassPath entries are stored as XML tags in the *.jba project file. Example: Source code 1 <ClassPath Name="C:/a1880/jutil/iText2.1.7/iText-2.1.7.jar"/> Have you actively saved (Ctrl-S) your project after defining ClassPath entries? In case it is a Jabaco IDE error, it would be interesting to know if there was something special with your entry. Special characters or blanks in the path? Other circumstances you can reproduce and tell us? Greetings! A1...

Thursday, January 7th 2010, 9:30am

Author: A1880

something like a callback

Jabaco compiles the Jsrc sources into Java bytecode. You therefore can call/use many Jabaco structures directly from your Java classes. It helps to decompile the generated Jabaco java code using tools like JAD. You then get an insight about the generated Java classes. This should help how to use and call them. To establish a callback facility, you could define a Jabaco handler class and pass a handler object to your Java class. Code of handler class clsCallBackhandler In Jabaco: Option Explicit ...

Tuesday, January 5th 2010, 11:54am

Author: A1880

VBMenuBar menu separator

The following sample creates a separator: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 Option Explicit Public Sub Form_Load() Dim tmpGroupFile As VBMenuGroup = Me.MenuBar.createMenuGroup(Null, "File", "File") Call Me.MenuBar.createMenu(tmpGroupFile, "New", "New") Call Me.MenuBar.createMenu(tmpGroupFile, "Open", "Open") Call Me.MenuBar.addSeperator(tmpGroupFile) Call Me.MenuBar.createMenu(tmpGroupFile, "Exit", "Exit") End Sub Public Sub Form_MenuClick(MenuItem As VB#IMenuItem) MsgBox "Caption: " &...

Monday, January 4th 2010, 9:03pm

Author: A1880

SQL Creating a complete database in code.

Please use the search facility of this forum and look for "SQL", "JDBC", "CREATE TABLE", .... Jabaco's standard way to access database resources is JDBC. Happy searching! A1880

Monday, January 4th 2010, 9:49am

Author: A1880

Event handler

If your pop-up is a Dialog, you could define the following handler in the source of your Form: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 Public Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) Dim dlg As Dialog1 If Button = 2 Then ' start pop-up on right mouse click dlg = New Dialog1 dlg.Left = Me.Left + X dlg.Top = Me.Top + Y dlg.Show vbModal End If End Sub You might want to digg this forum using the search facility. There were some postings on menu handling. Suc...

Sunday, January 3rd 2010, 8:16pm

Author: A1880

Jabaco User Control

The properties of a Usercontrols are defined when you design it. Just "add" a Usercontrol to your project. This will put you in a control editing mode, similar to the usual form or dialog editing. You then design the control including its icons, buttons etc. Once you have saved the Usercontrol, you call or put copies of it on your form(s). Doing so, you define the left/top coordinates of the Usercontrol instances. At runtime, you can assign properties to your control by defining and calling User...

Thursday, December 31st 2009, 4:40pm

Author: A1880

Graphics/Images/Pictures format

Download/copy the JIMI files on to your disk and add the path to JimiProClasses.zip to your Jabaco project. Within the Jabaco IDE, just press F2 and add something like C:\......\Jimi\JimiProClasses.zip as external Jar file. A Jar file is just a Zip file. Success! A1880

Monday, December 28th 2009, 11:33pm

Author: A1880

Jabaco CommandButton

The following code works nicely for me: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Public Sub Picture1_MouseEntered() Picture1.Picture= HutblauGif Picture1.Refresh End Sub Public Sub Picture1_MouseExited() Picture1.Picture= HutgelbGif Picture1.Refresh End Sub Public Sub Form_Load() Picture1.Picture= HutgruenGif Picture1.Refresh End Sub Make sure to add graphics files as "resources" to the project. You can then assign the image to the "Picture" property of your control. Greetings! A1880

WoltLab Burning Board