B4X

B4X is a suite of rapid application development IDEs and proprietary programming language that allows the creation of applications on the following platforms: Google Android, Apple iOS, Java, Raspberry Pi and Arduino. Although the B4X syntax is very similar to BASIC, it is an entirely new language.[1]

B4X
Developer(s)Anywhere Software | Erel Uziel
Operating systemMicrosoft Windows
Available inEnglish
TypeProgramming
LicenseShareware
Websitehttps://www.b4x.com

B4A, B4i, and B4J feature a visual designer that simplifies the process of creating user interfaces. B4R does not feature a visual designer due to the nature of single-board and SoC devices.

For learning the language, there is a comprehensive set of eBooks called "B4X Booklets" available for free that act as a learning guide.[2] There is also a library of videos made by Erel available to consume.[3]

Basic4PPC

Basic4ppc (pronounced "Basic for PPC") was the first IDE produced by AnywhereSoftware. Basic4ppc allowed programmers to write applications for Pocket PC devices that ran the Windows Mobile operating system. Basic4PPC was released in 2005 and its final release was in December of 2018. Please note that Basic4PPC is no longer available for purchase.

B4A

B4A (formerly known as Basic4android) is the second IDE produced by Anywhere Software. The first public version was released on December 7, 2010 and allows users to code native Android apps in B4X. B4A is able to create apps, widgets, and games. There is also a beginners guide that is updated after each new release of the IDE.[4] On February 5th, 2020 B4A became free.[5] Please note that there are currently no plans to make B4i free.[6]

B4J

B4J is the third IDE produced by Anywhere Software. The first public version was released on December 4, 2013. B4J targets the following platforms: Desktops, Web Servers, and ARM Boards such as Raspberry Pi.

B4i

B4i is the fourth IDE produced by Anywhere Software. B4i is capable of creating applications that target iPhone and iPad devices and there is a service which allows developers to compile and publish apps without the need for a local Mac computer. The first public version was released on November 14, 2014. B4i allows users to code iOS (iPhone/iPad) apps using B4X.

B4R

B4R is the fifth IDE produced by AnywhereSoftware. B4R allows programmers to write applications for Arduino boards. Supported Arduino modules include: ESP8266 and ESP32.

Release history

B4X Version Release History Table
B4X IDE Current Version Release Date Changelog
B4A 10 July 15, 2020 Link
B4i 6.80 July 13, 2020 Link
B4J 8.50 July 13, 2020 Link
B4R 3.31 March 17, 2020 Link

Code examples

Comments

Comments are usually used to point out what a particular piece of code does. Comments can also be used to describe whole methods. Compilers ignore comments so use comments for whatever you want!

'This is a comment

Displaying a random number in a message box.

Declare a XUI variable in "Process_Globals","Globals", or "Class_Globals":

Private XUI As XUI

Generate the random number and then display it in a message box:

Public Sub MyButton_Click
    Dim Random As Int = Rnd(1,10)
    XUI.MsgboxAsync(Random, "Your random number")
End Sub

Displaying a random number in a message box (legacy method).

The following code can be shared between B4A, B4i, and B4J with no changing:

1 Sub MyButton_Click
2     Dim Random As Int = Rnd(1, 10)
3     #If B4J
4     fx.Msgbox(Form, Random, "Your Number")
5     #Else
6     MsgBox(Random, "Your Number")
7     #End If
8 End Sub
gollark: I want 2019 back.
gollark: You could always go to Madagascar.
gollark: Space is not really a very nice place to *live*.
gollark: Or more.
gollark: In a year or so probably?

References

  1. "just for discussion: Why B4X is not famous enough". B4X Rapid Application Development & Programming Tools. Retrieved 2020-06-09.
  2. "Android Tutorial - [B4X] Documentation Booklets". B4X Community - Android, iOS, desktop, server and IoT programming tools. Retrieved 2019-09-20.
  3. "B4X Video Tutorials". www.b4x.com. Retrieved 2020-02-03.
  4. "Android Tutorial - B4A Beginners Guide | B4X Community - Android, iOS, desktop, server and IoT programming tools". www.b4x.com. Retrieved 2016-01-17.
  5. "Other - It's time to grow". B4X Community - Android, iOS, desktop, server and IoT programming tools. Retrieved 2020-02-03.
  6. "Other - It's time to grow". B4X Community - Android, iOS, desktop, server and IoT programming tools. Retrieved 2020-04-23.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.