just a question why this isnt processed in the why i expected.
it tried this:
This isnt working in all cases.
In some cases the parameter from sub Document returns null, checking it that specific case it turns out that Document wasnt called at all, thus the parameter was null
This works in all cases:
just curious why the first example isnt working all the time?? Timing in the queue?
it tried this:
B4X:
CallSub2("Main","DownloadAndSaveFile",Callsub2("Main","Document")
In some cases the parameter from sub Document returns null, checking it that specific case it turns out that Document wasnt called at all, thus the parameter was null
This works in all cases:
B4X:
Private document=CallSub("main","Document") As String
CallSub2("Main","DownloadAndSaveFile",document )