You are not logged in.

Search results

Search results 441-460 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.

Friday, April 17th 2009, 10:56am

Author: A1880

Konstruktor

Hallo Stefan, eine ähnliche Diskussion hatten wir schon im Januar. Vielleicht kannst Du das Beispiel zum Experimentieren nutzen. Gruß! A1880

Wednesday, April 15th 2009, 2:35pm

Author: A1880

SAP JCo muss separat lizensiert werden

Aus dem SAP Service Market: Quoted The SAP JCo is only available from SAP for connecting Java Applications to SAP Systems. Other than the above permitted usage is not allowed by SAP. The redistribution of the SAP JCo is not allowed. The terms and regulations of the respective End User License Agreement shall otherwise apply. Java® is a registered trademark of Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303, USA. All SAP connectors are licensed without additional license fees as...

Tuesday, April 14th 2009, 10:34pm

Author: A1880

SAP JCo-Beispiel

Hallo Stefan, vielleicht kann Jabaco die Typen wie "Properties" nicht einfach so auflösen. Versuche mal, statt dessen "java#util#Properties" anzugeben oder die fraglichen Typen im Classpath (Taste F1) aufzunehmen. Bei mir ist diese Klasse allerdings in RT.JAR angekreuzt gewesen, ohne dass ich etwas geändert hätte. Ich habe mal testhalber eine eigene Klasse "Properties" eingeführt. Danach wurde mir die vorher fehlende Routine angezeigt. Ist die SAPJCO3.JAR im Jabaco Classpath (Taste F1)? Sonst la...

Friday, March 27th 2009, 11:25am

Author: A1880

compiling Jabaco sources

Hi, to compile a Jabaco source, you should insert the jsrc module in a Jabaco project and compile. Jabaco will the compile the Jsrc into a binary class. You can find the resulting .class file in the "temp" sub-directory of the Jabaco program directory. This is probably going to change in future Jabaco release. Cheers A1880

Wednesday, March 25th 2009, 11:42pm

Author: A1880

Jar files are Zip files

Hi, to change a Jar file you can change its extension from ".jar" to ".zip". This enables you to use the zip tool of your choice to unzip, change and re-zip the archive. Finally, don't forget to rename the zip to jar again. To get the changed class file into a jar, you'ld have to compile the java source into a binary class file. Things get complicated, if the jar file is protected by a Manifest entry. Good luck! A1880

Wednesday, March 25th 2009, 11:26pm

Author: A1880

Form exit

Hi, a "Form" inherits from class "AbstractForm". In the source of AbstractForm you can find: Source code 1 2 3 Public Sub SetDefaultClose() Me.setDefaultCloseOperation( Me.EXIT_ON_CLOSE ) End Sub This method is called by default in "Module1" of a standard Jabaco project: Source code 1 2 3 4 5 6 7 8 Public Form1 As New Form1 Public Sub main(ByJava args() As String) Dim myArgs() As String myArgs = args Form1.SetDefaultClose() Form1.show() End Sub If you comment out (or leave out) the line "Form1.S...

Wednesday, March 25th 2009, 10:53pm

Author: A1880

Modal Windows again

Please have a look here. You may find the "search" function of this board worth trying. It helps you to spot existing solutions and hints. Happy digging! A1880

Tuesday, March 24th 2009, 2:31pm

Author: A1880

Operator Priorities

Hi, this seems to be a problem of arithmetic operator priorities. If you use brackets, you get the correct results: msgbox( (3^2) + 7) msgbox( 7 + (3^2)) Currently, Jabaco is evaluating the following instead: msgbox( 3^(2 + 7)) msgbox( (7 + 3)^2) So, the error is that the priority of "^" is equal to that of "+". It should be higher. Cheers! A1880

Thursday, March 19th 2009, 10:38am

Author: A1880

Timer = Polling

Hi, great! You have implemented a kind of socket pooling with a dynamically growing array of Winsocks. The drawback is that you need a timer to scan your Winsocks periodically. My suggestion would be to invent a class "clsMyWinsock" with super class Winsock (Property SuperClass=VB/Winsock). This class could then overload event handling routines of Winsock. Whenever something happens to your Winsock, the event handler would take care for it. I posted a similar solution for Controls in January. Wh...

Tuesday, March 17th 2009, 10:41pm

Author: A1880

Jabaco and MSSQL

Hi, throughout this board, you can find numerous postings and samples how to access databases via JDBC. So, you just have to download and install the Microsoft JDBC driver for MS SQL server. Make sure to chose the correct version for your combination of SQL Server and operating system. Another possible pitfall is to include the driver JAR files in the path references of Jabaco. Good luck! A1880

Sunday, March 15th 2009, 1:10pm

Author: A1880

Mouse and Key handler sample

Hi, I tried to implement handlers for mouse and keyboard event handlers as follows: 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 Option Explicit Public Sub Applet_Click() trace "Applet clicked!" End Sub Public Sub Applet_KeyDown(KeyCode As Integer, Shift As Integer) trace "KeyDown: KeyCode=" & KeyCode & " Shift=" & Shift End Sub Public Sub Applet_KeyPress(KeyAscii As Integer) trace "KeyPress: KeyAscii=" & KeyAscii End Sub Public Sub Applet_KeyUp(KeyCode As Int...

Wednesday, March 11th 2009, 9:25pm

Author: A1880

DefaultListCellRenderer and Icon Support

Hi, I have tried it with GIF and JPG icon graphics, but without success. Google gets you a lot of hits under "DefaultListCellRenderer Icon". I've got the impression that the Jabaco framework has no icon support in the ListCellRenderer yet. But I'm not sure. Ciao A1880

Saturday, March 7th 2009, 4:09pm

Author: A1880

ReDim Crash

Thanks for your training material. Well, I do know that plenty of frameworks and collection types are available in Java and somewhere in the internet. However, I would like to have a clean and elegant programming environment within Jabaco. Therefore, *the* Collection should be just one class. And this class should be so strong and versatile, that it can be used as the Swiss army knife for dynamic data structures. Years ago I came across this library for linked lists in VB6. Perhaps, this could i...

Saturday, March 7th 2009, 12:44pm

Author: A1880

Compliance to VB6

Hi, as a rule of thumb, Jabaco should follow the syntax of VB6. It should "swallow" most source codes which are considered valid VB6. Where it make sense, extensions are nice. Examples: - I would like to have a standard function "length()" for array dimensions rather than fiddling around with UBound() and LBound() - The standard properties of VB6 collections are fairly restricted. I do miss "contains()" for key-existance checks. A "sort()" would come handy as well. Standard adherence has one big...

Saturday, March 7th 2009, 11:15am

Author: A1880

Run-time exceptions vs. compile-time warnings

Hi, you have a point there, I'm probably asking too much. However, I would like to get warned at compile-time. The Jabaco compiler should reduce the likelihood of run-time exceptions to a minimum. Are you saying in your post, that an array which was declared via "ReDim" can be redim-ed dynamically? The following line does not compile in my Jabaco IDE Source code 1 2 ReDim arrD(1 To 3, 2 To 4, 5 To 7) As Integer Thanks for your analysis! A1880

Friday, March 6th 2009, 4:57pm

Author: A1880

Jabaco IDE is a VB6 application?

Hi, to me, the Jabaco IDE looks like a VB6 application. It relies on (at least) six DLLs and three OCXs. Therefore, it should be quite a lot of work to port it to Unix and establish an X11 GUI. Apart from earning a lot of money by selling a future version of the IDE, I can imagine some even more attractive reasons for Manuel to keep this project going. First of all, Jabaco is another cornerstone to become well-known as a software genius. An excellent reputation definitely is one of the best reas...

Friday, March 6th 2009, 1:11pm

Author: A1880

ReDim Crash

Hi, the following experiment shows how to define and re-define multi-dimensional arrays in Jabaco: 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 Public Sub Command1_Click() Dim arr(1 To 3, 2 To 4, 5 To 7) As Integer Dim b() As Integer msgbox "arr " _ & Lbound(arr, 1) & " .. " & Ubound(arr,1) & ", " _ & Lbound(arr, 2) & " .. " & Ubound(arr, 2) & ", " _ & Lbound(arr, 3) & " .. " & Ubound(arr, 3) Redim b(5 To 7, 2 To 4, 1 To 3) msgbox...

Tuesday, March 3rd 2009, 11:19pm

Author: A1880

storing an enum-constant in a collection

Hi, another try to store enums in collections. I have used VBVariant as wrapper objects. Currently, casting of enums does not really work. 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 Option Explicit Public Enum MyEnum FlagNone = 0 Flag0 = 1 Flag1 = 2 Flag2 = 4 Flag...

Tuesday, March 3rd 2009, 4:27pm

Author: A1880

Collections are used to store VBVariant Objects

Hi, Java Collections are used to store VBVariant Objects rather than simple scalar variables. An Enum is a non-Object. To store Enums in a Collection, you'ld have to assign the Enum value to an instance of VBVariant. VBVariant is a "wrapper object" around various data types including a normal integer. Happy experimenting! A1880

Sunday, March 1st 2009, 11:01pm

Author: A1880

parent.getParameter() greift auf Applet-Parameter zu

Hallo, das geht im Applet über Source code 1 parent.getParameter("TESTNAME") Gruß! A1880

WoltLab Burning Board