On 17 Mar 2011, at 19:24, Jürgen Hestermann wrote:

> Jonas Maebe schrieb:
>> On 17 Mar 2011, at 19:07, Jürgen Hestermann wrote:
>>  
>>> If I assign "Filemode := fmInOut" I get a constant range check error (at 
>>> compilation time) which is clear because all constants are larger than byte.
>>> Is this a bug?
>>>    
>> No. See http://www.freepascal.org/faq.var#filemode for more info.
>> 
> 
> I didn't find "fminout" and the other constants mentioned at this link.

It describes the values you can assign to filemode and their effect.

> Are they not for assigning to filemode?

No. They're mainly for internal use in the system unit. I guess the only reason 
they are public is that they can also be useful when you implement your own 
text file driver (which you're unlikely to want to do).


Jonas_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to