The computer chooses a number and you need to find the correct number. Sub Process_Globals Private fx As JFX Private MainForm As Form Private txtGuess As TextField Private Label1 As Label Private myNumber As Int End Sub Sub...
This is a simple idea to replace the function "eval" or "execute" that other programming languages have. The purpose is to retrieve a variable from a string: How to iterate variable names: Sub AppStart (Form1 As Form, Args() As String)...
v10.0 - October 16, 2023 - https://www.b4x.com/android/forum/threads/b4j-v10-0-is-available-for-download.155241/ Code snippets: https://www.b4x.com/android/forum/threads/b4x-code-snippets.152450/ For Each iterator works with Java HashMap and...
This is an old and irrelevant tutorial.
The JVM (Java Virtual Machine) performance is quite amazing. This means that we can use B4J to build apps that handle huge files. I downloaded a 3.7GB log file from this server. Each line represents a HTTP request. I wanted to find the most...
The following module attributes are supported: Main Module MainFormWidth / MainFormHeight - Set the main form initial width and height. AdditionalJar - An additional jar file that will be added during compilation. The jar file should be located...
A Canvas node is used to magnify a small window under the mouse cursor. The main code is: Sub iv_MouseMoved (EventData As MouseEvent) For x = EventData.x - box To EventData.x + box For y = EventData.y - box To EventData.y + box...
You can create an RDC client with B4J in the same way as done with B4A: Remote Database Connector - Connect to any remote DB The slightly modified DBRequestManager is included in the example. It also includes a new utility method named...
This example uses a Canvas node together with a Timer to draw a moving smiley. The Canvas node is a special node the you can draw on. The code itself is quite simple. On each tick Canvas.ClearRect is called to erase the previous frame, the...