--- In ocaml_beginners%40yahoogroups.com">ocaml_beginners
yahoogroups.com, Vincent Aravantinos
<vincent.aravantinos
...> wrote:
>
>
> Le 9 sept. 07 à 13:10, Andre Kuehne a écrit :
>
> > Hello
> >
> > Compiling this code:
> >
> > ...
> > let status = Graphics.wait_next_event [Graphics.Poll] in
> > if status.button or status.keypressed then exit 0;
> > ...
> >
> > I get the following error:
> >
> > Unbound record field label button
> >
> > I get no error if i put a
> >
> > open Graphics
> >
> > at the top of the file, but how can i access the record field
> > without opening Graphics?
>
> What about :
>
> status.Graphics.button
>
> ?
>
Yes this works.
Thanks
Andre
.