[Gambas-user] How do I manage process_Read?

francesco.difusco@libero.it francesco.difusco at ...69...
Sun Sep 12 23:30:47 CEST 2004


> Try something like this.....
>
> PUBLIC Process1 AS Process
> PUBLIC Process2 AS Process
> ...
> EXEC ["first thing"] FOR READ WRITE AS Process1
> EXEC ["second thing"] FOR READ WRITE AS Process2
> ...
> PUBLIC SUB Process_Read()
>
> 	if last.id = Process1.id then
> 		' do something
> 	else if last.id = Process2.id then
> 		' do somethine else
> 	endif
>
> END

I thank you, I was breaking my head. Now I'll try your code.

> I agree that it should be possible to have separate _Read events
> for different Process objects, but I assume there's a reason
> Benoit did it this way.

Infact that was really strange to manage such situations

Thanks again

Francesco






More information about the User mailing list