B4X

Last updated
B4X
Developer(s) Anywhere Software | Erel Uziel
Operating system Microsoft Windows
Available inEnglish
Type Programming
License Apache License 2.0 [1]
Website https://www.b4x.com

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. [2]

Contents

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. [3] There is also a library of videos made by Erel available to consume. [4]

Basic4PPC

Basic4ppc (pronounced "Basic for PPC") was the first IDE produced by Anywhere Software. 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. 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. [5] On February 5, 2020, B4A became free. [6] There are no plans to make B4i free. [7]

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 separate 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.

B4R

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

Release history

B4X Version Release History Table
B4X IDECurrent VersionRelease DateChangelog
B4A12.80December 8, 2023 Link
B4i8.50January 10, 2024 Link
B4J10.0October 16, 2023 Link
B4R4.00September 5, 2023 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":

PrivatexuiAsXUI

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

PublicSubMyButton_ClickDimRandomAsInt=Rnd(1,10)xui.MsgboxAsync(Random,"Your random number")EndSub

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

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

SubMyButton_ClickDimRandomAsInt=Rnd(1,10)#IfB4Jfx.Msgbox(Form,Random,"Your Number")#ElseMsgBox(Random,"Your Number")#End IfEndSub

Related Research Articles

In computing, cross-platform software is computer software that is designed to work in several computing platforms. Some cross-platform software requires a separate build for each platform, but some can be directly run on any platform without special preparation, being written in an interpreted language or compiled to portable bytecode for which the interpreters or run-time packages are common or standard components of all supported platforms.

C++Builder is a rapid application development (RAD) environment for developing software in the C++ programming language. Originally developed by Borland, as of 2009 it is owned by Embarcadero Technologies, a subsidiary of Idera. C++Builder can compile apps for Windows, iOS, macOS, and Android. It includes tools that allow drag-and-drop visual development, making programming easier by incorporating a WYSIWYG graphical user interface builder.

Installation of a computer program, is the act of making the program ready for execution. Installation refers to the particular configuration of software or hardware with a view to making it usable with the computer. A soft or digital copy of the piece of software (program) is needed to install it. There are different processes of installing a piece of software (program). Because the process varies for each program and each computer, programs often come with an installer, a specialised program responsible for doing whatever is needed for the installation. Installation may be part of a larger software deployment process.

<span class="mw-page-title-main">Free Pascal</span> Free compiler and IDE for Pascal and ObjectPascal

Free Pascal Compiler (FPC) is a compiler for the closely related programming-language dialects Pascal and Object Pascal. It is free software released under the GNU General Public License, with exception clauses that allow static linking against its runtime libraries and packages for any purpose in combination with any other software license.

<span class="mw-page-title-main">Graphical user interface builder</span> Software development tool

A graphical user interface builder, also known as GUI designer or sometimes RAD IDE, is a software development tool that simplifies the creation of GUIs by allowing the designer to arrange graphical control elements using a drag-and-drop WYSIWYG editor. Without a GUI builder, a GUI must be built by manually specifying each widget's parameters in the source code, with no visual feedback until the program is run. Such tools are usually called the term RAD IDE.

Mobipocket SA was a French company incorporated in March 2000 that created the .mobi e-book file format and produced the Mobipocket Reader software for mobile phones, personal digital assistants (PDA) and desktop operating systems.

<span class="mw-page-title-main">Adobe AIR</span> Cross-platform runtime system for building rich web applications

Adobe AIR is a cross-platform runtime system currently developed by Harman International, in collaboration with Adobe Inc., for building desktop applications and mobile applications, programmed using Adobe Animate, ActionScript, and optionally Apache Flex. It was originally released in 2008. The runtime supports installable applications on Windows, macOS, and mobile operating systems, including Android, iOS, and BlackBerry Tablet OS.

NS Basic is a family of development tools developed and commercially marketed by NSB Corporation in Toronto, Ontario, Canada for iOS, Android, Microsoft Windows, MacOS, Linux, BlackBerry OS, WebOS, Newton OS, Palm OS, Windows CE and Windows Mobile.

<span class="mw-page-title-main">Android SDK</span> Software development kit

The Android SDK is a software development kit for the Android software ecosystem that includes a comprehensive set of development tools. These include a debugger, libraries, a handset emulator based on QEMU, documentation, sample code, and tutorials. The SDK is part of the official Android Studio IDE but its various tools and resources can be used independently.

Basic4ppc is a programming language originally for Pocket PC handheld computers running Windows Mobile operating system, by Anywhere Software. Since 2014, B4x was renamed, and currently, 2023, supports multiple devices and their OS, including desktop and mobile solutions with development adaptions for these environments. The language is based on a BASIC-like syntax, taking advantage of Microsoft's .NET technology, to allow additional libraries, graphical user interface design of windows forms, rapid application development (RAD), and .NET framework compatible compilation. The language implements a unique way of adding objects to a program without being object-oriented. Its advantages are simplicity, development pace and the integration with .NET framework. A special version of the integrated development environment (IDE) allows developing straight onto the Windows Mobile device or. With the demise of Windows Mobile operating system and the devices running it Basic4PPC came to the end of its life in about 2012. For owners of Basic4PPC it remains a useful Windows-desktop BASIC compiler as it runs code directly in the Windows environment and it can compile a project to a Windows 'exe' file for use as a Windows program.

<span class="mw-page-title-main">Xojo</span> Programming environment and programming language

The Xojo programming environment and programming language is developed and commercially marketed by Xojo, Inc. of Austin, Texas for software development targeting macOS, Microsoft Windows, Linux, iOS, Android, the Web and Raspberry Pi. Xojo uses a proprietary object-oriented language.

Codename One is an open-source cross-platform framework aiming to provide write once, run anywhere code for various mobile and desktop operating systems. It was created by the co-founders of the Lightweight User Interface Toolkit (LWUIT) project, Chen Fishbein and Shai Almog, and was first announced on January 13, 2012.

<span class="mw-page-title-main">Basic4android</span> Programming tool for Windows

Basic4Android is a rapid application development tool for native Android applications, developed and marketed by Anywhere Software Ltd.

<span class="mw-page-title-main">Puffin Browser</span> Web browser

Puffin Browser is a remote browser developed by CloudMosa, an American mobile technology company founded by Shioupyn Shen.

<span class="mw-page-title-main">Bitwarden</span> Open-source password manager


Bitwarden is a freemium open-source password management service that stores sensitive information, such as website credentials, in an encrypted vault. The platform offers a variety of client applications, including a web interface, desktop applications, browser extensions, mobile apps, and a command-line interface. Bitwarden offers a free US or European cloud-hosted service as well as the ability to self-host.

<span class="mw-page-title-main">Collabora Online</span> Online office suite based on LibreOffice

Collabora Online is an open source online office suite built on LibreOffice technology, enabling web-based collaborative real-time editing of word processing documents, spreadsheets, presentations, and vector graphics. Optional apps are available for desktops, laptops, tablets, smartphones, and Chromebooks.

<span class="mw-page-title-main">GDevelop</span> Open-source, cross-platform game engine

GDevelop is a 2D and 3D cross-platform, free and open-source game engine, which mainly focuses on creating PC and mobile games, as well as HTML5 games playable in the browser. Created by Florian Rival, a software engineer at Google, GDevelop is mainly aimed at non-programmers and game developers of all skillsets, employing event based visual programming similar to engines like Construct, Stencyl, and Tynker.

This page details the history of the programming language and software product Delphi.

References

  1. B4A github
  2. "just for discussion: Why B4X is not famous enough". B4X Rapid Application Development & Programming Tools. Retrieved 2020-06-09.
  3. "Android Tutorial - [B4X] Documentation Booklets". B4X Community - Android, iOS, desktop, server and IoT programming tools. Retrieved 2019-09-20.
  4. "B4X Video Tutorials". www.b4x.com. Retrieved 2020-02-03.
  5. "Android Tutorial - B4A Beginners Guide | B4X Community - Android, iOS, desktop, server and IoT programming tools". www.b4x.com. Retrieved 2016-01-17.
  6. "Other - It's time to grow". B4X Community - Android, iOS, desktop, server and IoT programming tools. Retrieved 2020-02-03.
  7. "Other - It's time to grow". B4X Community - Android, iOS, desktop, server and IoT programming tools. Retrieved 2020-04-23.