Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is a FPT File
Message
From
27/11/2001 11:53:59
 
 
To
27/11/2001 11:29:43
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00586267
Message ID:
00586412
Views:
20
Memo fields are variable length fields. Further, there is not necessarily a memo field for every record. This is the reason it is implemented this way. If the length of the memo field changes, and VFP attempted to keep the memo in the same position in the file, the entire file (after that point) would have to be rewritten to the disk.

There are more complex ways this could have been handled, to prevent this problem, but that is another story...

>Hi Renoir
>
>I dont know why either but its a simple test. Create a file with a memo field. Add a record and enter something into the memo field. Close the file. Open the FPT file in, for example, Notepad. You will see your memo field contents. Now back in VFP open the file and replace the memo field with some new data. Close the file and again inspect the FPT file in Notepad. There is the new data *and* the original text too!
>
>Jos
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform