Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memo first block Number
Message
 
 
To
09/05/2006 20:00:08
Neil Mc Donald
Cencom Systems P/L
The Sun, Australia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01120576
Message ID:
01120580
Views:
16
This message has been marked as the solution to the initial question of the thread.
Hi Neil,

NextFreeBlockOfsset = NextFreeBlockLocation * MemoBlockSize
NextFreeBlockLocation: bytes 00 – 03
MemoBlockSize: bytes 06 – 07

Keep in mind that in SET BLOCKSIZE TO nBytes, the values from 1 to 32 are multiplied by 512 to get actual block size that is stored in MemoBlockSize.

>Does anyone have code that will calculate the first block position in a new create memo file for varying blocksizes.
>
>From testing it doesn't seem to follow any pattern. i.e. blocksize 1 = 1, blocksize 33 = 16, blocksize 64 = 8 & 512 and above it drops back to 1.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform