[Gambas-user] requests to gambas cgi scripts issues

Caveat Gambas at ...1950...
Thu Aug 7 08:19:52 CEST 2014


how can i get the responses in asynchronously mode?
due the response its trapped in _Finished() process
that are out of the mothod cycle

Depends on where you wrote the code.  If the code is in a separate class 
then you might want to look at declaring and raising events, and having 
your form create the instance of your class with something like AS 
"myServiceCaller", then when you get into _Finished(), RAISE an event 
(e.g. FinishHappened) which can get picked up by your form in a public 
sub myServiceCaller.FinishHappened()

If the code is all in your form, then you can just change something 
directly on the form as soon as you get a response.

Or you could consider making a callback function...

Kind regards,
Caveat

On 06/08/14 22:53, PICCORO McKAY Lenz wrote:
>> From: Caveat <Gambas at ...1950...>
>> Here's a mail I wrote back in 2011 on calling web services from out of
>> Gambas, perhaps it helps?
> OF course, that code u post me really helps!! many many thanks
>
> due in u'r mail i see that: http.Post("application/x-www-form-urlencoded",
> data)
>
> 1)for send post data as a from must be use the
> "application/x-www-form-urlencoded"
> that's are also in the wiki documentation but difficulty to read for some
> spanish users
>
> 2) important, seems that if send post data with name:values fields,
> then the SOAP api's will interpreted as a webservice request...
> this are marvelous!
>
> BUT now another QUESTION
>
> u used the async method, that waith until data packets end...
> so in my program (that are not web or console) i have a form
> that made calls to a class, and that class have the methods
> that made the request and get the responses..
>
> how can i get the responses in asynchronously mode?
> due the response its trapped in _Finished() process
> that are out of the mothod cycle
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>





More information about the User mailing list