Waiting for previous XML to be parsed before second XML

MrRey

Member
Licensed User
Longtime User
I'm at a little standstill. I think it's because of lack of sleep.

I can download and parse XMLs with no problem. However, I can't parse the second XML until I have some data from the first XML. (It has a location.)

I need to wait until I've completely parsed the first XML before retrieving & parsing the second XML.

Do I use CallSubDelayed for that? Something like:
B4X:
'both subs are in same module
CallSubDelayed(Me, "GetSecondXML")

If not, is there a good way to do this? Thanks in advance.
 

MrRey

Member
Licensed User
Longtime User
Hm. I had tried that first but what happened was a variable I had in Process Globals wasn't being assigned while the first XML was being parsed.

I'll have to try again.

Thanks!
 
Upvote 0
Top