[Gambas-user] write a binary file

Jochen Georges jochen.georges at ...22...
Wed Feb 12 07:22:02 CET 2003


On Tuesday 11 February 2003 22:05, Fabien BODARD wrote:
> Le Mardi 11 Février 2003 21:04, Jochen Georges a écrit :
>
> replace
>
>  OPEN "test.jgf" FOR CREATE DIRECT AS MyFile
>
> by
>
> OPEN "test.jgf" FOR CREATE DIRECT AS #MyFile
>
> fabien

hi fabien, gambasians

thanks, but still i got an runtime error
"type mismatch: wanted standard type, got CCar instead"
(in the line "WRITE #MyFile, car)

PUBLIC SUB MenuSave_Click()
  MyFile AS File
  OPEN "test.jgf" FOR CREATE DIRECT AS #MyFile
  WRITE #MyFile, car
  CLOSE MyFile
END

beste gruesse
jochen




More information about the User mailing list