B4X newbie here. I've worked my way thru the first part of B4X Getting Started V2.4, and have the MyFirstProgram working on my Windows 11 computer. Next step is to try the same program in B4A. I am into step 3.3.3 where it will not run as per instructed on p.45. That's when I noticed there are...
Hi everyone I was wondering if it possibile to cast a Map object to a Custom type object that has the same fields.
At the moment I'm doing with a function that manually get all the fields from the map.
Thanks in advance
In B4XMainPage I have this code:
Sub Class_Globals
Private ser As B4XSerializator
End Sub
Sub GetSQL_ExtraFromTable(strNameOfSQL As String, _
iFolderID As Int, _
strRunSQL As String) As tSQL_Extra
Dim strSQL As String
Dim...
Hello everyone, here I bring you a tool to create the writing effect.
It is basic but functional.
Thank you for viewing this library.
BMTypeWriter
Author:
Version: 1
BMTypeWriter
Create a simple TypeWriter Effect on any TextView
Example:
Writer1.Initialize(Me, "Writer1")...
Hi.
In some subs I use as return a type (structure).
Sub Process_Globals
...
Type PlayedChoice(row As Int, column As Int)
...
End Sub
'Function description...
'Examples: ...
Private Sub test3 As PlayedChoice
Dim a As PlayedChoice
a.Initialize
a.row = 0
a.column = 0...
I'm using a custom type that consists of keys like title, text, datetime, keywords etc. My simple "database" is just a list of hundreds of these.
The problem is that as for now I'm using their Unix times to identify them, and that was a big mistake, as due to how the app works there will be...
Hello,
I have a list whose items are custom type. The list is stored in memory with Jsongenerator, but when I read those types, they are recognized as a string. How can I read the types from the list?
Hello
in this code which is in a loop, I wish to test every view.
'lst' is a list containing all the views of the designer
For each ...
Dim w As CustomListView=lst.Get(i)
If w.AsView Is ScrollView(or CustomListView) Then
lab=lst.Get(i)
doSomething
End...
Hello everybody,
it seems it is not possible to use a type variable in another type variable.
Like this:
Type WLAN_Type (IP As String, SSID As String, Password As String, Chanel As Byte, BSSID As String)
Type Settings(Resets As UInt, Summertime As Boolean, WLAN As WLAN_Type)
Public...
I need to have a custom type that includes a list. The following fails, complaining about a null pointer. What am I doing wrong?
Type xxxx( Name As String, Count As Int, myList As List )
Dim abc As xxxx
abc.myList.initialize <---- fails
Hi everyone, i'm trying to understand how to use the RandomAccessFile Library, beacuse i need to store custom Types of data.
I'm always getting an error while reading, i'm confused.
The test code:
Sub Globals
'These global variables will be redeclared each time the activity is created...
Hello,
Sometimes when i copy and paste some view into a new panel
i have noticed that the field Type is empty.
That apparently provide no pbs with the app. with B4A (i still dont try the transfer on B4I)
Please could you confirme that to me ?
Regards
Michel
Hi people
I've used the map collection storing "Type Object" values many times without issue and then hit a problem yesterday trying to store(put) a Type object into a B4XOrderedMap. It also fails with a standard Map... Hence I suspect a dumbass programming error :confused:
So I declare a type...
Hi
I am confused about how to insert a type into a list
So far I have....
Sub Process_Globals
Thelist As List
TheList.initialize
Type TheRT(Code As String, Description As String, Price As Double, Quantity As Double)
Public ItemInfo As TheRT
End Sub
Sub...
This Wish is in reference to this thread:
Does exceptions in inline java mess with live updating the code?
https://www.b4x.com/android/forum/threads/does-exceptions-in-inline-java-mess-with-live-updating-the-code.98502/
In some cases (see thread above) a thrown exception gets its type changed...
Hi,
I know I can create new Type, but now I need also to create method/function for my type. This could simplify my job.
I'd like to avoid writing a new lib for this, so I'd like to know if I can use the Structure syntax, more or less in this way:
Public Structure Box
Dim Length As...
if me have a Type structure.
is it possible to get the fields and datatype from within source code?
me thought about to generate a input form from it automatically.
I take it for granted, but it doesn't seem to work.
package com.example;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BA.*;
import anywheresoftware.b4a.objects.collections.Map;
@Version(1.0f)
//@Permissions(values={"android.permission.INTERNET"})
@ShortName("FirstLib")...
Good morning
it's really strange that the URI Type is a "write only" Class or a black hole:
there is not a single member which returns anything!:
https://www.b4x.com/android/help/contentresolver.html#uri
Therefore, we always get annoying cast warnings if we use this Type.
I guess it's a short...