cast

  1. GGSoft

    B4J Question How to cast to java.util.Vector

    I am working with a .jar external library and I need to send a java.util.Vector data to one of its methods. How can I cast that type of data or convert a B4X array or a B4X list to a vector? The library's documentation says: public void setNoteList(java.util.Vector newNoteList) Replaces the...
  2. M

    Android Question Is there a way to create/return an explicit cast of a List/Map.

    Ex: Dim myLife as Map (As yearstring, As Wine) If myLife.Get("2019").IsTonsOfWine = True Then... Because I haven't found any with the IDE or in the forums. That would be a huuuuuuuuuuuuuuuuuuuuuuuge time saver I believe. Thanks !
  3. E

    Bug? Error parsing string "-0" to float

    This code (2 lines of diagnosis hacks + 1 original problem line): Dim TempString As String = lblReading.Text Log("len = " & TempString.Length & ", str = [" & TempString & "] isnum = " & IsNumber(TempString)) Dim CurrentReading As Float = TempString '''lblReading.Text is producing...
Top