Hi All
I can confirm that all the values are equal, yet this doesn’t work…
What am I doing wrong?
t
What are you trying to do and what results do you want ?
Well Im trying to compare a database Long/Lat to a realtime Long/Lat
use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun
Ive tried to get Do It to work since forever - No Luck
Friend,
This could be happening because the numbers are with the number of different decimal places.
So, limit the number of decimal places.
It’s happened to me when comparing latitudes and longitudes.
where exactly do you get stuck to get the companion app running?
using the community as debugger is not very efficient…
Taifun
It just stops on 20% and doesnt budge from there
thanks
Is this a large project with loads of assets or extensions?
Get the companion app running on a small project first to understand how it is working…
Taifun
This happens to me, when My computer and my phone are on same Wifi. Try to use companion on mobile data.
The block is absolutely fine. Yesterday i too faced a similar situation but after about hour of debugging I found that it was due to an -
(underscore). I was just missing an underscore in my text.
I suggest, break down your blocks and use labels
as debugger. just like we use print
function while programming
Also if global CurrentLat
and global CurrentLong
are of numerical type, use compare block from math section. Always use compatible blocks with their respective datatype. Although its not necessary but a good practice in general I guess.
Now, in order to bring them BOTH to the same number length, I am limiting the Long to six (6)
characters and extracting any foreign delimiters ie “(” and “)”
Use math block : Format as decimal numbers
Latitude And Longitude are numbers.
Red block , as far as I know, are for text.Do you need need them?
yes, I need to limit the length of the Long to equal that of the latitude
I only saw a way to do that in the text block?
Is there a way to do it in math?
Thanks
t
Would that be sufficient?
With decimals format number block