You are not logged in.

Search results

Search results 481-500 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.

Wednesday, February 4th 2009, 8:59am

Author: A1880

VB6 Date is translated to java.util.Date

Hi, OK! Thanks for your hint. It works fine on my system. When I decompile the lines of code I get something like: Source code 1 2 3 myDate = Conversion.CDate("03.02.2009"); dateCell = new DateTime(currentColumn, currentRow, myDate, (CellFormat)dateFormat); Jabaco compiles VB6 Date variables to java.util.Date variables. And that's exactly what jxl.write.DateTime() expects. So the problem melts down to a failure in the implementation of "Now". I analyzed this also via decompilation. As written in...

Tuesday, February 3rd 2009, 8:40pm

Author: A1880

Date is not supported error

Hmm, I also tried "now" or some other VB6 "Date" variable. This circumvents the compile error. But unfortunately, the resulting Excel file does not get a correct DateCell written. It appears that the DateTime() routine of JExcel does expect a java.util.Date rather than a VB6/Jabaco Date. Any more suggestions? A1880 p.s.: There seems to be an error in Conversion.CDate(). "Now" works OK if you assign it to a String variable. If assigned to a Date variable, Now gets converted by Conversion.CDate() ...

Tuesday, February 3rd 2009, 4:52pm

Author: A1880

Sample for JExcel

Hi, you might want to a have a look at my Jabaco/JExcel sample in the "Samples" section. Greetings! A1880

Tuesday, February 3rd 2009, 4:49pm

Author: A1880

Access to Excel from Jabaco via JExcel

Hi all, this is a small (and imcomplete) demo how to create an Excel .xls file out of Jabaco. Who finds and solves the compile error? Greetings! A1880 Source code 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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 Option Explicit ' ' Demo for Excel access via JExcel ' ' Migrated from Java to Jabaco from ' http://www.tutorials.de/forum/java/267257-k...

Tuesday, February 3rd 2009, 4:00pm

Author: A1880

Ways from Jabaco to Excel

Hi, the short answer: No! There is not way to access Excel .xls files from Jabaco, unless you are a gifted Java developer. the longer answer: The way you're describing is called "ActiveX". The call to "CreateObject()" creates an ActiveX object. This can be accessed from VB6 programs. Currently, Jabaco does not include a direct way to deal with ActiveX. You'd have to use a "Java COM bridge" library to do that. Manuel is looking for volunteers to provide ActiveX support for Jabaco. Another way wou...

Wednesday, January 21st 2009, 10:58pm

Author: A1880

Ackermannfunktion

Hallo Manuel, der Java-Schalter "-Xss" wirkt bei der Windows-SUN-JVM offenbar nicht auf den Standardstack sondern auf die Stackgröße für Threads. Ich habe das Jabaco-Compilat der Ackermannfunktion rückübersetzt und in Java ausprobiert: Source code 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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 ...

Wednesday, January 21st 2009, 5:08pm

Author: A1880

Wow!

Hallo Manuel, prima! Da bin ich gespannt auf die nächste Version. Zu Deinen Rückfragen: Quoted Den Call Stack kann ich dir problemlos anzeigen. Wann und wo würdest du den gerne sehen? Für mich war das eine unnötige Information. Überwachungsausdrücke sind auch möglich, aber sind die wirklich nötig? Bei der Fehlersuche im Debugger hilft es mir, wenn ich sehe, was im Call Stack steht. Da finde ich VB6 vorbildlich. Auch die Überachungsausdrücke nutze ich oft, um beim Durchsteppen auf einen Blick div...

Monday, January 19th 2009, 4:42pm

Author: A1880

Jarsigner is part of the Java Development Kit (JDK)

Google is your friend! Google Jarsigner is part of the Java Development Kit (JDK). The Java Runtime Environment (JRE) lacks tools like jarsigner. Happy experimenting A1880

Sunday, January 18th 2009, 7:05pm

Author: A1880

Jabaco einfach halten!

Hallo, in meinen Augen ist Jabaco nur und gerade deswegen attraktiv, weil es nach außen relativ einfach ist. Mit VisualStudio oder Eclipse kann man avanciertere Dinge anstellen, aber ich habe noch keine Umgebung gesehen, mit der man derart schnell eine Oberfläche zaubern kann, die sowohl als Windows-Executable als auch als Java Applet einsetzbar ist. Wenn ich typsicher programmieren, komplexe Algorithmen mit verschachtelten Datenstrukturen in professioneller Qualität hervorbringen und pflegen wi...

Sunday, January 18th 2009, 4:33pm

Author: A1880

Array initialisieren mit Split()

Hallo Oliver, in Deinem Beispiel kann man sich behelfen: Source code 1 Dim a() As String : a = Split("Ene,Mene,Muh", ",") Für den allgemeinen Fall wäre eine Syntax nett, mit der man Type- und Array-Variablen initialisieren kann. Da habe ich aber auch nichts in Jabaco gefunden. Gruß! A1880

Saturday, January 17th 2009, 8:30pm

Author: A1880

Dynamic array of controls with class overloading

Hi all, here is another solution how to create and handle controls dynamically. I overloaded the CommandButton class. This allowed me do overload the "mouseClicke()" method and route all incoming events to my central handler. Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Option Explicit ' ' this Class overloads CommandButton to define a special event handler ' Public ownerForm As frmDynControl ' allows call back to common event handler Public row As Integer ' we remember row/col...

Thursday, January 15th 2009, 8:49pm

Author: A1880

Jabaco expressions and operators

Hi all, I used the following to try out Jabaco's way of dealing with operators: Source code 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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 Option Explicit Private errorCount As Integer = 0 Private sErr As String = "" Public Sub main(ByJava args() As String) Call op...

Tuesday, January 13th 2009, 10:09pm

Author: A1880

MsgBox or sleep are your friends!

Hi, why not enter Source code 1 msgbox "the end", vbInformation or Source code 1 sleep(2000) ' wait for 2.000ms as last command of your code? Ciao! A1880

Tuesday, January 13th 2009, 10:04pm

Author: A1880

Jabaco compiler does not optimize

Hi all, to experiment with the optimization capabilities of the Jabaco compiler, I played around with Jabaco using the following: Source code 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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 Option Explicit Public Sub main(ByJava args() As String) Dim a As Integer Dim s As String Dim b As Boolean a = a a = 0 + a a = a + 0 a = 1 * a a = a * 1 a = ...

Saturday, January 10th 2009, 7:54pm

Author: A1880

Audio Recording sample with NativeCall, Thread, Java-Calls, etc.

Hi fans of Jabaco! Here is a sample which demonstrates some of the nice features of Jabaco: - asynchronous threads - calling external Windows routines via NativeCall - calling Java framework classes and routines - manipulating files - calling user-defined Java routines The sample is a little recording tool which writes microphone sound input to a WAV file. It was inspired by similar "SimpleAudioRecorder" programs on the net. Just for comparison, it implements the steps for sound processing in tw...

Saturday, January 3rd 2009, 8:25pm

Author: A1880

Signed Applets don't require policy changes

Hi Manuel, OK! I've found it myself by reading some of the other posts. As soon as I "sign" the applet with "jarsigner" (using a key generated with "keytool") and replace the original jar file with the signed one, it will start without problems. The user gets the choice to trust the signed jar file. Regards, A1880

Saturday, January 3rd 2009, 8:00pm

Author: A1880

Java Policy changes needed for Jabaco Applets?

Hi Manuel, my first test applet with Jabaco ran fine in the applet viewer. But due to security failures I could not get it started within my Internet Explorer. I am using Java JRE 6.07. Google Chrome and Firefox had the same problem. Safari works OK. My solution is to extend the Java policy file (cf. attachment). Now it works correctly. On my system the file is C:\Programme\Java\jre6\lib\security\java.policy It would be nice to get around this problem. We can hardly alter the policy files of all...

Saturday, January 3rd 2009, 6:09pm

Author: A1880

Beispiel für Vererbung, Konstruktoren und Namespaces

Hallo Manuel, hier habe ich mein Beispiel noch etwas ausgebaut. Man kann daran sehen, wie man Sub-Klassen definiert - eine davon mit Namespace. Außerdem habe ich getestet, wie das mit Cast() und Isclass() funktioniert. Eine (vermeintliche?) Macke habe ich gefunden: Das "Class_Initialize" einer abgeleiteten Klasse wird mehrfach aufgerufen, wenn man ein Objekt instanziiert. Ich vermute, das "Class_Initialize" der abgeleiteten Klasse überschreibt das der Basisklasse. Wenn deren Konstruktor "Class_I...

Friday, January 2nd 2009, 8:31am

Author: A1880

Debugger-Fehler nicht reproduzierbar

Hallo Manuel, danke für die mehr als prompte Antwort. Ich kann mir vorstellen, dass Du Deine Zeit intensiv nutzt. Auf einem zweiten PC kann ich das Verschwinden des Debugger-Verlaufs auch nicht nachvollziehen. Vielleicht liegt es daran, dass ich auf meinem Heim-PC einen 22" Widescreen-Monitor einsetze? Ich werde versuchen, das näher einzugrenzen. Hoffentlich springt dabei auch ein Sample-Programm für Deine Sammlung heraus. Gruß! A1880

Thursday, January 1st 2009, 5:35pm

Author: A1880

Klassen mit Vererbung

Ich habe eine Klasse "clsVehicle" definiert und dazu zwei Unterklassen "clsAuto" und "clsBike". Dabei habe ich zwei Effekte beobachtet: - wenn man mit "Me." auf Membervariablen zugreift, bietet der Editor nur die Variablen der momentan editieren Klasse an. Die Variablen der Superklasse werden nicht angezeigt. - wenn man "Class_Initialize" mit dem Debugger durchläuft (per F8 Singlestep), verschwindet der Debugger teilweise im Nirgendwo. Mangels Anzeige des "Call Stacks" sehe ich nicht, wo das Pro...

WoltLab Burning Board