Basic4ppc V6.30 Beta (6.25) released

Erel

B4X founder
Staff member
Licensed User
Longtime User
Dear beta testers,
First of all I would like to thank you for your help.
You should have received an email with download instructions.
Other users who like to test the new version should send me a private message.
Please discuss the new version in the Beta Versions subforum.

The manual wasn't updated yet however the new features are pretty simple.
New features:
- Continuation character - The underscore (_) character can be used to break long lines.
Example:
SQLQuery = "SELECT data FROM custormers where" & _
"name = abcde"

- All images assigned with the visual designer will be embedded in the executable. (optimized compiler only)
- You can add images to an ImageList from the designer (those images will be embedded as well).
Adding images to an ImageList is done by choosing the ImageList and writing the files names in the Image Files field.
- Most of the libraries will be merged in the executable. (optimized compiler)
Libraries that will be merged:
BinaryFile
Bitwise
ControlsEx
Crypto
Decimal
DesktopOnly
Door
FormLib
Hardware
HTTP
ImageLib
Network
RAPI
Regex
Registry
Serial2
SQL

I will later write instructions for developers who want to allow their own libraries to be merged.
When you compile your application you will see a message similar to:

compile.jpg


The second list is a list of required libraries which were not merged (in this case it is the native SQL library).
These files will be copied to the folder of the executable.
- New compilation target: Force QVGA (optimized compiler) - Creates executables that use the double pixel method. This causes high resolution screens (480x640) to act as regular screens (240x320). Making it simpler to target VGA and QVGA devices with the same application.
When you compile in this mode 3 files will be created: YourApp.Exe, YourApp.dll and YourApp.Exe.config. All three files should be distributed together.

- New Array keyword makes initializations of one dimension arrays and two dimensions arrays simpler.
Example (1d array, 2d array, 1d struct)
B4X:
Sub Globals
 Dim Primes(0)
 Dim Matrix(0,0)
 Dim Type (x,y) Points(0)
End Sub

Sub App_Start
 Primes() = Array(2,3,5,7,11,13,17,19)
 Matrix() = Array((20,30),(12*32-3,98),(1,1))
 'Matrix is an array of (3,2). Matrix(0,0) = 20. Matrix(0,1) = 30
 Points() = Array((30,10),(25,9),(87,34))
 'Points(0).x = 30. Points(0).y = 10
End Sub
- AutoComplete - By pressing Ctrl + Space a list of all user variables (global and local), subs, controls and objects will show.
AutoComplete will try to complete the already started token.
So instead of writing the name of a long variable you can write the 2-3 first characters and AutoComplete will complete it.
- New Find & Replace dialog in the desktop IDE.

- All known bugs were fixed.
 
Last edited:
Top