Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-05

Question

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leandro Montero

Pleas Sorry mi english , y have a problem .
I made a program in pascal who use a tipical archive of database using de command reset , rewrite , and others. this archive "database" are in a net of machines , and I wont open this archive in 2 machine simultaneously but the program sendme a message of error , this message is of my program not of the operative system . I now that is posible to made because I made in other program , but I don't remember who's are the command which are possible to do . if someone can help me I Apreciate .
Thanks Montero Leandro

Reply by email

Jonas Maebe
to Leandro Montero
Leandro Montero wrote 7 lines
I made a program in pascal who use a tipical archive of database using de command reset , rewrite , and others. this archive "database" are in a net of machines , and I wont open this archive in 2 machine simultaneously but the program sendme a message of error , this message is of my program not of the operative system . I now that is posible to made because I made in other program , but I don't remember who's are the command which are possible to do .

Are you thinking of the "filemode" variable? If you set it to 0, "reset" will open the file in read-only mode, allowing you to open it several times. Otherwise, if you use reset on a typed or untiped file, it will be opened in read-write mode and only one process at a time can have a file opened in this mode.

Jonas

Reply by email