> Wonder if anyone could tell me why this comes up with the error > 'type mismatch, wanted byte got a string' > > Image path would be something like /tmp/myimage.png > > Dim hFile As Stream > > hfile = Open ImagePath For Input > > While Not Eof(hFile) > Read #hFile, buffer, Lof(hFile) **dies here > with: > > 'type mismatch, wanted byte got a string' > > Thanks in anticipation. > > Regards > > Richard >
The syntax of READ and WRITE has changed since revision 2344. Read the wiki documentation about READ and WRITE for the details. And I suggest you subscribe to the gambas-devel-svn mailing-list so that you can follow what changes in the development version day after day. Regards, -- Benoît Minisini ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user