You are not logged in.

Search results

Search results 261-277 of 277.

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, February 2nd 2009, 3:19pm

Author: OlimilO

how to get a window's handle

Hi, if all else fails you can try it this way: 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 Private WinApi Function WindowFromPoint Lib "user32.dll" ( _ ByVal xPoint As Integer, ByVal yPoint As Integer) As Integer Private WinApi Function GetDC Lib "user32.dll" ( _ ByVal hwnd As Integer) As Integer Private WinApi Function LineTo Lib "gdi32.dll" ( _ ByVal hdc As Integer, ByVal x As Integer, ByVal y As Integer) As Integer Private m...

Sunday, February 1st 2009, 5:19am

Author: OlimilO

edited

I have edited it there was a minor syntax bug

Saturday, January 31st 2009, 2:11pm

Author: OlimilO

Environ

Hello everywhere, maybe you know the function Environ in VB6 where you can get system variables. e.g. the windows-directory or the temp-path. Environ has the following Syntax: Environ({envstring | number}) The Environ function syntax has these named arguments: Source code 1 2 3 4 5 6 7 8 9 10 11 Part Description _________________________________________________ envstring Optional. String expression containing the name of an environment variable. number Optional. Numeric expression corresponding ...

Friday, January 30th 2009, 11:20am

Author: OlimilO

quality needs time

Quoted But I'm not sure how to guarantee the quality for future changes... quality can be reached through discussions of every code, and discussions need time Maybe there should be a special board for the framework. where... ...users can make suggestions what they miss, or what should be done. ...developers can make suggestions how to change the framework and ...developers can post code samples and discuss the code greetings OlimilO

Thursday, January 29th 2009, 11:29am

Author: OlimilO

SQLITE 3 support

Hello frankp, did you use sqlite3 in VB6? i made a short look around the sourcecode of sqlite3 and i did not found the __stdcall calling convention. in fact it is possible to use winapi-functions like the following, but winapi-functions use the __stdcall calling convention Jabaco Source 1 2 3 4 5 6 7 8 9 Public WinAPI Function TheFunctionName lib "thedllname" (ByVal ahandle As Integer) As Integer 'int sqlite3_open( 'Const char *filename, /* Database filename (UTF-8) */ 'sqlite3 **ppDb /* OUT: SQ...

Wednesday, January 28th 2009, 2:34pm

Author: OlimilO

Title

Hi maXim, Thanks! @Manuel: if you think this suits better into Tipps&Tricks you could move this thread if it is possible, OK? thanks so i have tried around a little bit more and i found out that it is possible to give it a title of your own choice: the InputBox-funktions should be then: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Public Function InputBox(Prompt As String) As String InputBox = javax#swing#JOptionPane.showInputDialog(Prompt) End Function Public Function InputBox(Prompt As St...

Wednesday, January 28th 2009, 12:54pm

Author: OlimilO

InputBox

Hi everywhere, surely you know the InputBox-funktion of VB. If you were missing it until now, don't hesitate it's already there. In Visual Basic 6 you are used to the InputBox-funktion like in the following code snippet: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Private Sub Command1_Click() Dim s As String: s = InputBox("Please give me something") If StrPtr(s) <> 0 Then Command1.Caption = s Else MsgBox "The action was canceled by the user" End If End Sub Public Sub Command2_Click() Di...

Saturday, January 24th 2009, 11:42pm

Author: OlimilO

ahh..

...thanks where is my brain

Saturday, January 24th 2009, 2:11pm

Author: OlimilO

difference between ByVal, ByRef, ByJava

Hello, in Java it is not possible to return a variables value by calling it ByRef in a function definition. in VB6 wehn using ByRef there will be passed a pointer to the variable to the calling stack. in Jabaco what is the difference between declaring a variable in a function-definition ByVal, ByRef, ByJava? 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 Public Sub Command1_Click() Dim i As Integer Call ReturnInteger(i) MsgBox i Call ReturnIntegerB...

Saturday, January 24th 2009, 1:49pm

Author: OlimilO

where is the jar-file?

Hello, in jabaco it is possible to compile into a jar-file. right? But after compilation with the menu "Project"->"Start with full compile" where is the jar-file? greetings Oliver

Monday, January 19th 2009, 11:32pm

Author: OlimilO

assigning, copying ud-type-variables

Hi, as i realized until now it is not possible to simply assign resp. copy one udtype-varialbe to another with the =Operator in VB6 it works this way: Jabaco Source 1 2 3 4 5 6 7 8 9 Private Type Point2D x As Double y As Double End Type Dim p1 As Point2D Dim p2 As Point2D p1.x = 10 p1.y = 20 p2 = p1 ' error in Jabaco after the last line, the point p2 has the same coords like the point p1 but it is not possible in Jabaco. one could write a Subroutine like this: Jabaco Source 1 2 3 4 Public Sub Po...

Sunday, January 18th 2009, 11:43pm

Author: OlimilO

problems with Zorder

Quoted Jabaco supports Java 1.4.2 - This features is implemented since Java 1.5. You can use that with this limitation. Sample for you: Jabaco Source 1 Form1.ContentFrame.Parent.setComponentZOrder Picture1, 0 Form1.Refresh uh it has problems during Form_Load, the form does not come up, it will not be shown, it is not visible. greetings +Oliver

Sunday, January 18th 2009, 11:04pm

Author: OlimilO

thanks

Ah OK, guter Tipp vielen Dank

Sunday, January 18th 2009, 10:39pm

Author: OlimilO

Control.ZOrder

Hi, what else I miss is the Zorder-Property of Controls. is there another possibility to BringToFront/SendToBack a Control? in VB6 the Syntyx is: Panel1.ZOrder([Position]) where Position is an optional (unsigned) Integer (actually in VB6 there is no unsigned datatype, but here it is not possible to give negative values) in VB6 it works this way: Jabaco Source 1 2 3 4 5 6 7 8 'expecting you have two panels (PictureBoxes) 'and two Buttons Private Sub Command1_Click() Panel1.ZOrder End Sub Private ...

Sunday, January 18th 2009, 5:22pm

Author: OlimilO

Dim A: A = Array("first", "second", "third")

Hi Manuel Quoted von Manuel: guter vorschlag. wird implementiert Danke! Tipp an Manuel ich würde nicht zuviel Energie mit Handbuch schreiben aufwenden 1. gibt es zu VB schon genug 2. wegen 1. wenn dann nur die Unterschiede VB <-> JaBaCo herausstellen und da sich eh noch das eine oder andere ändern kann dann nur das herausstellen was JaBaCo besser kann, 3. lieber das Forum gut bedienen, dann wird automatisch jede Frage beantwortet, und die Forumsteilnehmer lernen mit und können nebenbei irgendwan...

Sunday, January 18th 2009, 5:02pm

Author: OlimilO

thanks

Hi A1880, vielen Dank für den Tipp klingt natürlich nicht schlecht obwohl in Java kann man schreiben: Source code 1 int iarr[] = {1, 2, 3}; VB6 macht mit der Array-Funktion immer nur Variant Arrays. Naja meistens braucht man es nur für kleine Arrays mit unter 100 Elementen, bspw um mal schnell was zu testen. A1180: "Für den allgemeinen Fall wäre eine Syntax nett, mit der man Type- und Array-Variablen initialisieren kann" mit Type meinst du benutzerdefinierte Typen also ein array of structure? hm...

WoltLab Burning Board