[Gambas-user] Version 2.7 / Problem with OPEN???

gambas at ...1938... gambas at ...1938...
Wed Jul 9 14:17:01 CEST 2008


Hello List!

Like all other people new to this list, I have to say: Gambas rocks!! :-)
The last six years I was a perl fellow...this changed in may 2008! ;-)

Here is my problem:
Docu says: 
Unlike other Basic dialects, Gambas will never delete a file when it is opened 
by the WRITE keyword for instance.  ....... To avoid this, open the file 
including the CREATE keyword.

When I do this:
LOGFILE = OPEN FilePath FOR CREATE WRITE 

Compiling my console program, gives me the following error message:
Unexpected WRITE!

When I do this:
LOGFILE = OPEN FilePath FOR WRITE CREATE

All went fine!!

Is this a bug or a feature???? :-)

Greetz
Stevie





More information about the User mailing list