M Makumbi Well-Known Member Licensed User Longtime User Mar 27, 2019 #1 more also after installing version b4a. 9.0 i getting error at the log Log(jp) showing object converted to a string this is a programming mistake please help
more also after installing version b4a. 9.0 i getting error at the log Log(jp) showing object converted to a string this is a programming mistake please help
DonManfred Expert Licensed User Longtime User Mar 27, 2019 #2 How could we help? You are giving us around ZERO Informations. What is jp? Where is the project showing the issue? Upvote 0
How could we help? You are giving us around ZERO Informations. What is jp? Where is the project showing the issue?
mangojack Expert Licensed User Longtime User Mar 27, 2019 #3 This is not related to B4A 9.0. I get this this when attempting to Log output from an Object .. ie FusedLocationProvider example Code: Log("Last Known Location : " & flp.GetLastKnownLocation) You get ... Object converted to string. This is probably a programming mistake (Warning #7) This does not happen when using Smart String Literals.https://www.b4x.com/android/forum/threads/b4x-smart-string-literal.50135/ Try ... Code: Log($"${jp}"$) Or disable warnings (not recommended) https://www.b4x.com/android/forum/threads/compiler-warnings.28950/#content Last edited: Mar 27, 2019 Upvote 0
This is not related to B4A 9.0. I get this this when attempting to Log output from an Object .. ie FusedLocationProvider example Code: Log("Last Known Location : " & flp.GetLastKnownLocation) You get ... Object converted to string. This is probably a programming mistake (Warning #7) This does not happen when using Smart String Literals.https://www.b4x.com/android/forum/threads/b4x-smart-string-literal.50135/ Try ... Code: Log($"${jp}"$) Or disable warnings (not recommended) https://www.b4x.com/android/forum/threads/compiler-warnings.28950/#content
DonManfred Expert Licensed User Longtime User Mar 27, 2019 #4 mangojack said: Try ... Click to expand... it just print the string jp. No problem here... Upvote 0
mangojack Expert Licensed User Longtime User Mar 27, 2019 #5 DonManfred said: it just print the string jp. No problem here... Click to expand... I had to edit my post .. I left out the Curlys .. Without seeing any of his code .. it is hard to know what 'jp' is .. but I think it will be an object of some sort. Upvote 0
DonManfred said: it just print the string jp. No problem here... Click to expand... I had to edit my post .. I left out the Curlys .. Without seeing any of his code .. it is hard to know what 'jp' is .. but I think it will be an object of some sort.
DonManfred Expert Licensed User Longtime User Mar 27, 2019 #6 mangojack said: it is hard to know what 'jp' is .. but I think it will be an object of some sort. Click to expand... Aggree. See #2 ;-) Upvote 0
mangojack said: it is hard to know what 'jp' is .. but I think it will be an object of some sort. Click to expand... Aggree. See #2 ;-)
M Makumbi Well-Known Member Licensed User Longtime User Mar 27, 2019 #7 DonManfred said: Aggree. See #2 ;-) Click to expand... i have used this Log($"${jp}"$) example and it works thank you very much But also i wanted to know the steps of implementing fire base messaging in this new version of b4a9.0 because i want to send out messages privately to my customers to receive notifications on my app even wen it is not opened because currently i do not receive any message not until i open my app thank you Upvote 0
DonManfred said: Aggree. See #2 ;-) Click to expand... i have used this Log($"${jp}"$) example and it works thank you very much But also i wanted to know the steps of implementing fire base messaging in this new version of b4a9.0 because i want to send out messages privately to my customers to receive notifications on my app even wen it is not opened because currently i do not receive any message not until i open my app thank you
DonManfred Expert Licensed User Longtime User Mar 27, 2019 #8 Search for firebase mesaging. You´ll find a tutorial on how to implement it. Upvote 0
MarkusR Well-Known Member Licensed User Longtime User Mar 27, 2019 #9 Log(jp) Click to expand... c# would use jb.ToString then Upvote 0