[Gambas-user] Error in the documentation
Pino Zollo
pinozollo at ...626...
Thu Aug 27 00:57:28 CEST 2009
HI
Maybe there is an error in the documentation example of the instruction OPEN.
-----------------------
' Watching a serial port
DIM hFile AS File
hFile = OPEN "/dev/ttyS0" FOR READ WRITE WATCH
...
PUBLIC SUB File_Read() <---- hFile_Read() ??????
DIM iByte AS Byte
READ #hFile, iByte
PRINT "Got one byte: "; iByte
END
----------------------
Saludos
Pino
--
Key ID: 0xF6768208
Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208
Key server: hkp://wwwkeys.eu.pgp.net
More information about the User
mailing list