cast

  1. M

    Android Question [B4X] Cast Map to Custom Type

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

    Spanish Problema al extraer datos de una lista. [Solucionado]

    Hola a todos. Estoy tratando de pasar parte del contenido de un archivo csv a una base de dato sqlite. Para ello escribí una funcion de prueba. Este es el código. Public Sub CargaDatos Dim SU As StringUtils Dim AirPorts As List = SU.LoadCSV(File.DirAssets, "ejemplo.csv", ",")...
  3. Dave O

    Bug? convert string to long - still broken?

    In B4A 12.20 (64-bit version), I'm having trouble converting a string to a long: The string is a UUID (e.g. "997203633536585465") which I generate by multiplying 2 random Ints. But assigning it to a Long variable yields the slightly different value of "997203633536585472", which feels like a...
  4. abbas abedi

    Android Question How anydesk ScreenRecording Works ?

    hi when i want use screen record , I should use cast when i use cast , i must accept cast permission every start to screen record But on anydesk app is different mechanism about permission anydesk has just Security Warning just one time how can i use anydesk mechanism for screenrecord or...
  5. Daniel44

    Android Question [SOLVED]Casting issues within a For Each iterating data from an API

    Hey! I'm working with my API made in PHP . Afer I got logged it returns an Access Token and a Refresh Token in json format. Like this: Postman: { "statusCode": 201, "success": true, "messages": [], "data": { "session_id": 9, "access_token"...
  6. 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...
  7. TelKel81

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