faholet540
Member
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:
the app has the variable:
So i need when i put the JSONdata to a label atomaticly replace the string variable
I need this why i want to format the strings outside the app (in server) but the data in variables are in the app
Thanks
I recibe a string in a JSON and after the parse i obtain this:
B4X:
JSONdata = "The New date is: g_date"
the app has the variable:
B4X:
Dim g_date as String
g_date = "31/12/2022"
So i need when i put the JSONdata to a label atomaticly replace the string variable
B4X:
label.text = (i dont know what format here)
'the output
log(label.text)
'The New date is: 31/12/2022
I need this why i want to format the strings outside the app (in server) but the data in variables are in the app
Thanks