[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | Atari ST, TT, & Falcon |
Notice: | Please read note 1.0 and its replies before posting! |
Moderator: | FUNYET::ANDERSON |
|
Created: | Mon Apr 04 1988 |
Last Modified: | Tue May 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 1433 |
Total number of notes: | 10312 |
1106.0. "GFA basic, PUT don't save new data at once" by HAMSC4::CLUBITZ () Wed Apr 10 1991 09:28
I've using GFA basic V3.n. I try to write a program which opens a relative
database by the following statement:
DIM A1$(100),A2$(100),...
OPEN "R",#1,"A:\file",80
FIELD #1,20 AS A1$,20 AS A2$,...
In this program I try to read in new data and want to save these by
PUT #1,REC_N%
where REC_N% is the new record of the file.
For example when I created five new records, I leave this part of the program
and start the searching of data, the program wouldn't find the new one. During
creating the five new records I recognized by that the disk didn't work to save
the new data.
So I changed the program in that kind, that I close the file after the creation
of new data and then restart once more by opening the file, read the whole
data. This would take a long time if there are a lot of records.
Is there any other way to save each record after creating the data or is this
the only way to manage it. I tried to find a way by using the commands
RECALL #1,B$(),100,BACK%
and
STORE #1,B$(),REC_N%
but the result was the same. The new records would be saved only when I close
the file.
Thanks for help, Christian
T.R | Title | User | Personal Name | Date | Lines |
---|
1106.1 | It is a feature!!! I am not kidding! | BHAJEE::SURAUF | | Wed Apr 10 1991 15:33 | 11 |
| Hi Christian.
This IS a feature of GFA, that you will fillup first the Channel buffer
for the record!
Try filling up the fields with new records, after a while the records
are being written to disk.
The meaning ist that the GFA dont waste time to update the disk.
After you have all new records added, then you will need to close the
file in order to FLUSH the rest of it to the disk.
Rolf....
|
1106.2 | Your Write to make sure it's not lost! | RIVAGE::DEIGHTON | | Thu Apr 11 1991 17:22 | 13 |
| Whilest :-1 is almost certainly true I'd prefer any writes to a database
to get written to disk as soon as possible (if not before).......if a user
writes it's so the data is not lost.
Given that I live on the Cote d'Azur where power failures in summer seem
as common as the mosquitos it's not surprising that I have this view....
lighting in Nice (20Km from my house) causes a total system failure (due
to a total power failure!).......I never had this problem in Annecy
(not far from Geneva in the French pre-Alps) where mother nature often
gives a display that hammers home what electricity is all about!
|
1106.3 | May i will find a solution. | BHAJEE::SURAUF | | Fri Apr 12 1991 15:12 | 6 |
| Hmmmm. In this case you are in trouble...
I think there will be no way to work around, but i will take a close
look in my GFA-Cook Book.
Maybe i will find some to get your problem solved.
Rolf...
|