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:
'These global variables will be redeclared each time the activity is created...
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 ?
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...
I am confused about how to insert a type into a list
So far I have....
Thelist As List
Type TheRT(Code As String, Description As String, Price As Double, Quantity As Double)
Public ItemInfo As TheRT
This Wish is in reference to this thread:
Does exceptions in inline java mess with live updating the code?
In some cases (see thread above) a thrown exception gets its type changed...
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...
I take it for granted, but it doesn't seem to work.
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!:
Therefore, we always get annoying cast warnings if we use this Type.
I guess it's a short...
it seems missing
if we have a type like this one
Type Data(a As String,b As Int, c As Float)
dim test as Data
i like to have access this struct via name (and index)
test.Field("a") = "abc"
test.Field("b") = 123
foreach field in test
Type dbOptret (success As Boolean,msg As String)
Public conpool As ConnectionPool
Private curDbType As Int=0
Public DB_REAL, DB_INTEGER, DB_BLOB, DB_TEXT As String
DB_REAL = "REAL"
DB_INTEGER = "INTEGER"
DB_BLOB = "BLOB"...