-------------------------------------------
Hello,
I come to rest an issue that bothered me since I started with PB (2.5 years ago).
It is the lack of direct access file! Style PowerBasic, QB, or other QBX Pascal, etc. ...
As responses have often been like why bother with it when you can read an entire file (even large) all at once. And that once read is so much faster in memory! Huh? And it's true, except that!
Well, now I know why it bothered me (hey, yes I am getting old

Well, it was not only to recover the old codes, but also (and that's what we are talking mostly):
How to lock a record in a file when you're working on it when it is networked ...
Must necessarily leave the file available to all that is to say, on disk, plus it does not block the file, but only recording on which we work and what if a dozen people or are more likely to work on the same file and want to accidentally access THIS Reccord there at the same time?
Before, I had two orders (instructions), Lock and Unlock ... Which enabled me to lock the record and banned all access until the first who called him was using and was released at the time he had finished and thus became available for the following.
This is the only guarantee for the work of one does not overwrite that of another. A change or development is taken into account etc..
In short: wink:, Until now I have not seen or heard of the possibility of gender (and also never got too worried), but I just started a project that requires this kind of approach and I am always thinking back on this issue.
Precision, I do not want to use the systems management of database SQL, MySQL or ODBC. This for simple reasons are that I prefer to remain master of my file management system that I can rewrite the limit! I have a personal ISAM, which needs to be adapted but still the question of foreclosure ... ?
I have an idea how to do it, but before I commit, maybe there is something that I missed and that the issue is already solved.
OR BETTER, that the concept of direct access file (Random Access) with LOCK and UNLOCK be implanted in PureBasic ....
Here, here ... I do not know if this has already been discussed, resolved or what you think?
Gerhard (GeBonet)