You are not logged in.

theuserbl

Intermediate

  • "theuserbl" started this thread

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

1

Sunday, January 29th 2012, 11:30pm

Jba Compiler

This is only a minor news.
If your project have a method called "Method1" with the sub "main" and a form called "Form1", then the XML part of the form can be compiled (sadly without events):
JbaCompilerPreview002.jar

Own sourcecode is included.
It is only a very early preview. So, if you want to look, how a form looks like, then better use the FormViewer:
http://www.jabaco.org/board/687-formview…jsrc-files.html

The only change from version "Preview001" to "Preview"002" is, that you can now run the created program, if "Method1" with "main" and "Form1" exists.

Greatings
theuserbl

theuserbl

Intermediate

  • "theuserbl" started this thread

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

2

Thursday, February 2nd 2012, 7:33pm

Updated version of this early preview:
[ JbaCompilerPreview003.jar ]

Now it supports in XML written events.
But again, you need a Module1 and Form1.


For example:
If you have created a form called "Form1" and have drawn a CommandButton in it, then you can write

Jabaco Source

1
2
3
Public Sub Command1_Click()
  MsgBox("Your message")
End Sub
or

Jabaco Source

1
2
3
Public Sub Command1_Click()
  System.out.println("Your message")
End Sub


Calling functions is currently not supported. But to test the event-functionality, MsgBox and System.out.println are for this version created as internal commands. So other things like "System.out.print" are NOT possible!
And don't forget the "(" and ")". They are for this themporary solution needed.

So a

Jabaco Source

1
2
3
Public Sub Command1_Click()
  MsgBox "Your message"
End Sub
will NOT work!

Greatings
theuserbl

Rate this thread
WoltLab Burning Board