type

  1. J

    B4J Question Custom type with List

    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
  2. M

    Android Question RandomAccessFile - ReadB4XObject ERROR

    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...
  3. ALBRECHT

    Android Question Designer Copy and Paste Views

    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
  4. DroidLyon

    Android Question B4XOrderedMap / Map - putting a type object problem

    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...
  5. makis_best

    Android Question [SOLVED] Insert type into list

    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...
  6. LucaMs

    Wish [already exists] Designer - Custom views "type".

    If possible, a less generic "description" of (you can have more than one kind of custom views in your layout, of course)
  7. Sandman

    Wish Make thrown exceptions keep their type while live updating code

    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...
  8. Alpandino

    B4R Question Can I use Structure in B4R?

    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...
  9. MarkusR

    B4J Question Access to a Type structure by Code?

    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.
  10. 52manhua

    Java Question How To Initialize B4A Map in Java

    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")...
  11. J

    Bug? Easy to fix bug: Type: URI: it's a black hole...

    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...
  12. MarkusR

    Wish Access Fields in Type at Runtime

    hello, 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 something like foreach field in test log(field) next
  13. icefairy333

    B4J Code Snippet get col type exactly with dbutils(ResultSetMetaData)

    dbutils 'version 1.20 Sub Process_Globals 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"...
Top