This a small class generator. The class use this concept, thanks to @Emme Developer.
Enter the Class Name
Enter the fields list (Name, Type and Default Value).
Click on the 'Copy' button
In your Project, add a Standard Class module with the same class name
I'm looking for ways to clean my huge code and boost IDE performance, so I'm putting everything I can into a compiled external library.
I already know I can't do this for modules that view their own forms, as designer forms can't be part of compiled libraries, but my question is this:
I wrote a class and want to convert it to a library and use methods and processes that exist in. is there any way?
i saw the tutorial of compiling project as a library an did it. but when i want to declare a variable of it , the IDE doesnt show anything.
The title says it all. The API v10 info on which this class is based can be found at https://kodi.wiki/view/JSON-RPC_API/v10. Public methods:
- Initialize: Initializes the object
- Favourites_GetFavourites: Retrieve all favourites
- Favourites_PlayFavourite: Plays a favourite of type 'media' or...
My product used: B4A 11.0
To reproduce the bug:
-Make a new project
-Create a class, in my case a b4Xpage class. (for example "abc")
-Navigate to the modules tab
-Rightclick your class ("abc")
-Make one char upper or lower case, without retyping the class name. ("Abc")...
'i have a question about class and list and many view ,
'What to deal with is , many EditText placed on form ,
'if the value(text) of any EditText is changed then the backcolor of it will be changed ,
'i used class module in vb , it can fulfil the task , the following is code
Hi everyone, i'm using B4XPages on Android and i have this scenario:
I've a class that handles http requests (let's call A)
I've a B4XPage (let's call B)
When the app is opened/resumed, a method of the A class is called, when it finishes his work it must call a Sub that is located in B (if it...
This is an enhanced version based on @Erel 's ContactsUtils v1.20.
NOTE: DeleteContact didn't work on an Amazon Fire tablet with Android 5.1.1 but did on a Moto X Style phone with Android 7. I wasn't able to find the cause; possibly it's related to the ROM I installed on that tablet or to the...
This is a calendar manipulation class based on @DonManfred 's explorations which you can find at https://www.b4x.com/android/forum/threads/working-with-calendars-using-contentresolver-query-insert-update-delete.100229/.
It contains the following methods:
- AddCalendar: Adds a new Calendar and...
I'm working on an existing, working project. (Using B4XPages, if that matter.)
In that work I'm moving some things into classes. A sub that request RuntimePermissions also made its way into a class, because it made sense. However, the result from the request end up in B4XPage_PermissionResult...
I have a class in my app clsCrypt that does encryption/decryption that can be called from the different places. Is it possible to check what called this class methods.
For example I have 2 activities and another class from where I call clsCrypt class methods.
Can I check inside...
Hi everyone, i've a customlistview, with custom elements.
In each element there is a CircularProgressBar, i want to incremente the value of a circularprogressbar in one element.
The code to do it:
Public Sub AggiornaProgress(Data() As Object)
'0 = Progress Value
'1 = Uploaded Files...
Sometimes you need to stop a piece of code and explain why you have to do it.
A good way is to raise an exception and to give information about the reason why.
This little class offers you a pratical way to do this :
1) Add the class to your project
Public fException As clsException...
The class clsPopupMenu shows a Popup Menu which can own sub menus.
The options are stored in a map. In the example they are in json file in the assets folder.
3 events are fired :
- open : A popup menu has been opened
- click : An option has been clicked
- close : A popup menu has...
You can create class modules in B4R but they act as singletons - I can't define a class module say "MQTTBUNDLE" and then create instances of that class. I know the whole thing about low resources and all that but is this something that might be possible in the future? I'm using Types for this...
This class can parse JSON to generate CSBuilder.
Create a json string, save it in a file, add it to assets folder, and display it with this class.
All the CSBuilder capabilities are supported.
Comments in clsCSBuilderParser.bas and samples files explains the JSON structure.
Up to this point in B4A, I have always used the classic CallSubDelayed()/CallSub() as appropriate to call subs in Activities or Services. However, by mistake I called a sub (defined within a class) in the Starter service using the classic OOPs format Starter.objectName.subName - and it...
The Raspbee (or Conbee, which is the USB version - the information here will only refer to the Raspbee) from Dresden Elektronik (https://shop.dresden-elektronik.de/raspbee.html, also available elsewhere, e.g. on Amazon) is a Zigbee (https://www.zigbee.org/) radio board for the...