variable

  1. F

    Android Question Replace variables in string

    Hi all, i want to replace dinamically variables in strings. Something like this I recibe a string in a JSON and after the parse i obtain this: JSONdata = "The New date is: g_date" the app has the variable: Dim g_date as String g_date = "31/12/2022" So i need when i put the JSONdata to a...
  2. red30

    Android Question Process Globals variables

    If I understand correctly, the variables that are written in Process_Globals will be created when the Activity Module is created. How long can they exist? For example, I have the main module Main and in it I created several Process_Globals variables. When will variables in a given module be...
  3. J

    Android Question How to refer to many variables in B4XMainPage from other pages

    In https://www.b4x.com/guides/B4XPagesCrossPlatformProjects/?page=23 it states that you can refer to Public variables in another module by use of code: Public Page2 As B4XPage2 = B4XPages.GetPage("Page 2") Page2.lblTest.Text = "Page 3 was displayed." I would like to do this to refer to a number...
  4. B

    Android Question Read text from customlistview

    Hi there, I am new to B4A so please bear with me. I have a customlistview which has items in it. I am trying to make it so that if a user clicks on an item, it will be able to retrieve all details about that item (The text and value). I have got the value, but I've got no idea about how to find...
  5. R

    iOS Question Dim Within A Loop - Why?

    I have noticed this happens occasionally and maybe I should have asked the question earlier. This example applies to B4i but I have also noticed it happening in B4A. Dim ThisPosition As LatLng 'Before the loop Do While Locations.NextRow...
  6. Chris160179

    B4R Question Use a type variable in another type variable

    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...
  7. D

    Android Question Ideas storing an app's global variables

    Hi, Guys Scanning through the forum it appears that (using V4B 8.3+) it is OK to define global variables in the Starter Server (in the sub Process_Globals) as it will not be removed by the OS whilst the App is running, Question - is that correct? Also, would I be safe to store global variables...
  8. Ahmet KOÇ

    B4R Question How to combine variables and text ?

    I have tried many methods. "dddd" variable, "ddddd" + variable, "ddddd" .variable ... how do I combine a string variable with text in an application.
  9. Sandman

    Wish Add IDE support for variable documentation

    If we have a sub like this... ' This is a very important sub Public Sub showingOff Msgbox("Never use Msgbox", "Important message") End Sub ...we get very nice docs when hovering that sub name in other code: However, if we do the same with a variable: ' This timer is very important...
  10. R

    Android Question Undeclared variable 'RunLog' is used before it was assigned a value

    Have a simple B4A app with 2 modules, Main and Starter. Both need to do logging, but only in debugging mode. I have a Public variable for this bLog, which I have declared in the Starter module like this: Sub Process_Globals Public bLog As Boolean End Sub The Sub that does the logging is in...
Top