[Gambas-user] write a binary file

Fabien BODARD abidoo.too at ...11...
Wed Feb 12 21:20:22 CET 2003


Le Mercredi 12 Février 2003 07:22, Jochen Georges a écrit :
> 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
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

hi jochen

you are a funny boy, you know?

change the private identifier in the CCar class by public.

in fact the private synthaxe is for the data who are only used ihn their owner 
class

fabien




More information about the User mailing list