I have a small Clarion applet which runs a NetWebClient Fetch() against a web service. Sometime only one page, but often 3 or 4 pages depending on the results of a SQL query.
I have the Fetch()es in a loop, i.e.
Loop
Next(SQLFile)
If Error() Then Break.
ThisNetWebClient.Fetch('http://mywebservice.com/getarecord?id=' & SQL:SomeID)
End
I thought with asynchronous Fetch()es, that the ThisNetWebClient.PageReceived will be called each time a Fetch() returned some data, but it doesn't seem to be doing that. So far, I trace multiple Fetch() calls going out, but only one PageReceived() being called - for the first Fetch() only.
What is the best way to queue up multiple concurrent Fetch() calls?
Thanks,
Devan