B4A Question AutoScale Code Module - klaus    
Jul 28, 2025   
(8 reactions) overcome this drawback I wrote a Scale Code module, the first version is already included in... function in the code module scales also the internal views in ScrollViews, ListViews and scales the TextSize property of Spinners.
The Scale code module contains following functions:
Initialize... or scaling with the Code Module.
Activities:
Main Main screen with an image and... Example with the different positioning routines.
Code modules:
Scale The scaling...
Tool B4Xgoodies: a maintained library/class/code module/... inventory (last updated 2026-10-24) - walt61    
May 24, 2024   
(21 reactions), snippets, code modules, classes, icons, and the ominous 'other')
- Category... you can examine the code in the VBA IDE (Alt-F11 takes you there).
Cheers,
walt61
Last updated: see...
link: Happy 10th birthday Goodies, approaching 7700 rows now 🙂...
link: 7000+ and counting...
B4A Tutorial Shared Code Modules - Erel    
Jun 19, 2018   
(22 reactions)Edit: shared modules are still supported however more powerful options are available in newer versions of B4X: https://www.b4x.com/android/forum/threads/86587
B4A v3.80 adds support for shared code modules.
Shared code modules are modules (Activity, Service, Class or Static Code) that are stored... are shared.
How it works
When a project is loaded the IDE looks for the modules files (bas files) in the project folder. If the module file doesn't exist then the IDE will look for the module in...
Other [new feature] b4xlib - a new type of library - Erel    
Nov 2, 2020   
(69 reactions) of libraries is available - b4x libraries.
A b4x library is a simple zip file with:
- Code modules. All types... and code modules can also be platform specific.
Creating a b4x library is very simple. You just need...As B4X matures, more and more reusable components are written in B4X directly.
In most cases it is simpler to implement the logic in B4X directly and the code can be cross platform. Especially....
Note that the source code can be extracted from a b4x library.
b4x libraries appear like all...
Bug? Renaming code modules: B4R doesn't clear all temp folders - KMatle    
Feb 19, 2024As posted here: https://www.b4x.com/android/forum/threads/strange-behaviour-when-changing-module-names-compiler-still-looks-for-the-cpp-files.159364/#post-978448
Manual solution: Deleting all (related) folders under C:\Users\username\AppData\Local\Temp...
link: The workaround is indeed to find the build cache folder and delete it. It will be in the logs and will look like:
Using previously ...
link: Fixed for the next update....
B4A Code Snippet HTTPCodes Code Module - Robert Valentino    
Sep 5, 2025   
(5 reactions)While working on Koofr Class I wanted to handle HTPPCodes so I wrote this code module
Maybe it will help someone out
Enjoy...
link: Added some missing codes and a version number 1.1...
B4A Question B4XView - Error compiling a code module to library - LucaMs    
May 8, 2018I have a code module (b4a) in which all the routines require variables of type B4XView as parameters.
This code module works well in b4a and b4j projects. I compiled the module to a b4a library.
Then I ran the same project (b4a) which used the code module, replacing the module with the library and I get this error at compilation time:
src\b4a\example\main.java:432: error: incompatible types: Button cannot be converted to B4XViewWrapper
parent.mostCurrent._xviewpos._viewsetrelright...
B4R Code Snippet ESP32_Dev_Module_Pins Code Module - Cableguy    
Jan 14, 2024   
(9 reactions)Hi Guys,
Although I've done this for my own needs, I guess this may help others too.
Copy this to a code module, and name it, if you want to, ESP32_Dev_Module_Pins, or whatever other name is meaningful for you.
Then, whenever you need to refer to a pin, or even to search for a suitable pin, you can....
149684
#Region CHIP INFO
' Manufactor Board Name : ESP32S NodeMCU
' B4R Board : ESP32S DEV MODULE
'*******************************************
'* Components...
B4J Library Code Module FFMPeg_Utils for jAudioTrack2 and jAudioRecord2 - stevel05    
Aug 23, 2022   
(6 reactions) has many options (see the FFMPeg documentation)
This CodeModule just performs a basic conversion... them using that.
This is the source for the code module, it's probably easier to copy it into a new code module than download it, but it's there if you want it. I haven't created a b4xlib... with it.
'Static code module FFMPeg_Utils
Sub Process_Globals
Private fx As JFX
End Sub
Public Sub...)
Wait For SH_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr...
Wish Allow Wait For in Code Modules - JohnC    
Apr 17, 2020 in multiple projects, I am often unable to place it in a code module if the routine has a "Wait For" in it because a code module is a static module that can't handle events.
For example, the below commonly used routine would be very handy to have in a code module so that I did NOT... the above routine from an activity and pass the activity as a parameter:
Wait for CodeModule... on the next screen", Me) (Result as Boolean)
And then the routine (in the code module) would...
Page: 1  
2  
3  
4  
5  
6  
7