[Gambas-user] Application_Read

tobias tobiasboe1 at ...20...
Sat Jul 23 18:57:57 CEST 2011


> I don't know what you are talking about. I was sending a fixed project for
> Demosthene. Please send your project so that I can take a look at it!
>
> Regards,
>
oh god, i didn't notice the attachment... it really works. ah, i see 
Lof() returns 0 on stdin, of course...
but there is something i don't understand, i altered the working code to 
check Lof():
Static Public Sub Application_Read()

   Dim sBuf As String

   Print Lof()
   sBuf = Read -256
   FMain.Insert(sBuf)

End

and now it permanently Prints zeros into my terminal, which means that 
the Application_Read() is called all the time, but nothing is inserted 
into the textarea, not even an empty string as i expected. what is going on?

btw, there are no stream objects for the 3 standard fds, just interfaces?

regards,
tobi




More information about the User mailing list