You are not logged in.

Search results

Search results 221-240 of 325.

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.

Tuesday, October 30th 2012, 5:53pm

Author: Dani

combobox in a jbgrid cell

Hey there, hm, we are back to the framework question! But I believe you are using the latest one by now right? You might try not to draw the ComboBox and uncomment the 'Dim...' line. index.php?page=Attachment&attachmentID=315 Dani

Tuesday, October 30th 2012, 4:30pm

Author: Dani

combobox in a jbgrid cell

Hey there, I am not sure what to tell you It works fine for me... Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 'draw a JBGrid1 'draw a ComboBox1 Public Sub Form_Load() JBGrid1.Editable = jbEditOnClick ' JBGrid1.SelectionMode = flexSelectionByRow ' Dim ComboBox1 As javax#swing#JComboBox = New javax#swing#JComboBox ComboBox1.AddItem("Yes") ComboBox1.AddItem("No") JBGrid1.TextMatrix(0,2) = "" 'AFTER!!!!!! DataMatrix or TextMatrix of JBGrid1 is addressed set your new CellEditor JBGrid1.Parent.getColu...

Monday, October 29th 2012, 9:04pm

Author: Dani

combobox in a jbgrid cell

Hey there, try this: Jabaco Source 1 2 3 4 5 6 JBGrid1.Editable = jbEditOnClick ' Dim ComboBox1 As javax#swing#JComboBox = New javax#swing#JComboBox ComboBox1.AddItem("Yes") ComboBox1.AddItem("No") 'AFTER!!!!!! DataMatrix or TextMatrix of JBGrid1 is addressed set your new CellEditor JBGrid1.Parent.getColumnModel().getColumn(2).setCellEditor(New DEFAULTCellEditor(ComboBox1)) Dani

Saturday, October 13th 2012, 9:47am

Author: Dani

Now function

Hey there, from my experiance with Jabaco the Format and Date -related functions don't allways work as expected! So you might be better off doing some dirty stringmanipulations. Just do get this working look at this Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Option Explicit Public Sub Form_Load() Dim Dob As String = InputBox("Please enter the Date Of Birth:", "DOB") '2012/10/01 'expected inputformat for DateDiff -> dd.MM.yyyy MsgBox DateDiff("d", MyDate(Dob), MyDate(Now)...

Friday, October 12th 2012, 12:50pm

Author: Dani

noobie with Jabaco

Hey there, OK ... I got all that! But where are you stuck right now? My little snippet shows you how to invoke the Input- and MsgBox. Just make sure when starting your app that 'Sub main' calls your first InputBox and handle the response from there... Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 'Public Form1 As New Form1 Public Sub main(ByJava args() As String) Dim myArgs() As String myArgs = args sample() ' Form1.SetDefaultClose() ' Form1.Show() End Sub Public Sub sam...

Friday, October 12th 2012, 9:23am

Author: Dani

noobie with Jabaco

Hey there, ok lets see if I am getting this right?! You want to calculate something without using any form object? -> start a new Jabaco project -> remove Form1 -> modify Module1 Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 'Public Form1 As New Form1 Public Sub main(ByJava args() As String) Dim myArgs() As String myArgs = args MsgBox(Exp(InputBox("base:"))) ' Form1.SetDefaultClose() ' Form1.Show() End Sub What are you planning to do with the output? Save it to a file? There are samples in the forum... ...

Tuesday, October 9th 2012, 6:57pm

Author: Dani

date format from yyyy-mm-dd to dd-mm-yyyy

Hey there, 'Input -> yyyy-mm-dd MyFormat("2012-08-06") 'Output -> dd-mm-yyyy MyFormat = "06-08-2012" Change the output by moving the arrays' elements sd(n)! Jabaco Source 1 MyFormat = sd(2) & "-" & sd(1) & "-" & sd(0) Dani

Monday, October 8th 2012, 9:11am

Author: Dani

Playing a MP3 resource in Jabaco?

Hey there, searching this forum reveals 21 hits for sound! Even javazoom is mentioned in this thread: http://www.jabaco.org/board/p1505-playin…=sound#post1505 Dani

Friday, October 5th 2012, 12:42pm

Author: Dani

date format from yyyy-mm-dd to dd-mm-yyyy

Hey there, I am with theuserbl here, it does look like some permutation! Since you know the input format you could do some stringshuffeling: Jabaco Source 1 2 3 4 5 Public Function MyFormat(d As String) As String Dim sd() As String sd = Split(d,"-") MyFormat = sd(2) & "-" & sd(1) & "-" & sd(0) End Function Dani

Thursday, October 4th 2012, 5:17pm

Author: Dani

date format from yyyy-mm-dd to dd-mm-yyyy

Hey there, I guess it expects an alias, try this: MySQL queries 1 SELECT DATE_FORMAT(imerominia, '%d-%m-%Y') AS imerominia FROM esoda_exoda ORDER BY imerominia; Dani

Thursday, October 4th 2012, 1:54pm

Author: Dani

date format from yyyy-mm-dd to dd-mm-yyyy

See also http://dev.mysql.com/doc/refman/5.5/en/d…ion_date-format

Thursday, October 4th 2012, 1:51pm

Author: Dani

date format from yyyy-mm-dd to dd-mm-yyyy

Hey there, ...or you could let your databaseengine do the work for you: MySQL queries 1 Set Data = Order.executeQuery("SELECT DATE_FORMAT(imerominia, '%d-%m-%Y') FROM esoda_exoda order by imerominia") You may have to check the right syntax for the format string for Mysql! Dani

Monday, October 1st 2012, 4:59pm

Author: Dani

Mysql SUM does not return something to me

Quoted do you have any idea what i have to do? If you don't mind you can switch your database to h2 You would have to download the latest package and copy the h2-1.3.169.jar to your machines' 'C:\Program Files\Java\jre7\lib\ext' or similar path. Then press F1 in Jabaco and import h2-1.3.169.jar. You would have to create your database file. h2 has a very nice build in dbEditor http://www.h2database.com/html/quickstart.html You can use my code to connect to your database. Quoted java#lang#Class.f...

Monday, October 1st 2012, 4:05pm

Author: Dani

Mysql SUM does not return something to me

Hey there, I have a H2 database encoded cp1253 and everything works fine: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Option Explicit Public Sub Form_Load() Dim conn As Connection Dim qry As String Dim st As java#sql#Statement Dim rs As ResultSet Dim a As String java#lang#Class.forName("org.h2.Driver") conn = DriverManager.getConnection("jdbc:h2:" & path & dbname, "sa", "") a = InputBox("Search for:") qry = "SELECT * FROM mytable WHERE esoda = '" & a & "';" st = conn.createStatement(...

Friday, September 28th 2012, 2:24pm

Author: Dani

Mysql SUM does not return something to me

Hey there, Character encoding can be a real nightmare! Did you by any chance bulg import data not setting the right encoding? Can you be certain your data was collected with the same encoding? Check your systems default encoding: Jabaco Source 1 Debug.Print System.getProperty("file.encoding") Make sure your client connection is set for UTF8 or suitable... Jabaco Source 1 System.setProperty("file.encoding","UTF-8") Read this article maybe you will find something new: http://www.howtoforge.com/the...

Friday, September 28th 2012, 10:08am

Author: Dani

Mysql SUM does not return something to me

Hey there, when you are aggregating over a column you don't have to 'ORDER' it in any way! MySQL queries 1 SELECT SUM(money) FROM mytable where esoda = 'ΕΣΟΔΑ' should do the trick. Dani

Thursday, September 27th 2012, 6:18pm

Author: Dani

msgbox before close form

Hey there, are you realy lacking any functionality / classes you need? Or are there missing classes stated in your 'imports' window that you don't know what to do with? If that is the case simply hit the 'clean' button... I am not missing any classes using this framework version. Everything seems to be in place and working just fine for me!! So I don't know how to help you here!? Sorry... Dani

Thursday, September 27th 2012, 1:04pm

Author: Dani

msgbox before close form

Hey there, this is realy not very complicated: - download Jabaco-rev87.jar (thanks to theuserbl!) - In your Jabaco installation path rename Jabaco.jar to Jabaco.old in case you need to switch back. And paste in Jabaco-rev87.jar renaming it to Jabaco.jar. Start up Jabaco voila. You are all set! If you don't like it simply switch back to your old version! Dani

Wednesday, September 26th 2012, 10:29am

Author: Dani

msgbox before close form

Hey there, I already gave you the link yesterday...

WoltLab Burning Board