<< Click to Display Table of Contents >> Navigation: Apollo API Listing > sx_RecSize |
Declare Function sx_RecSize Lib "Apollo9.dll" () As Long
LONG FAR PASCAL sx_RecSize (VOID);
Extracts the size of a record in the current table in number of bytes. This number will include 1 byte for the hidden deletion flag field.
The size of the record is the sum of the field widths plus one for the deletion flag.
' Display database info
Text1.Text = sx_WorkArea(0&)
Text2.Text = sx_BaseName()
Text3.Text = sx_Alias(0)
Text4.Text = sx_BaseDate()
Text5.Text = sx_RecSize()
Text6.Text = sx_RecCount()
cpRecBuffer = sx_MemAlloc(sx_RecSize());
sx_GetRecord((BYTEP) cpRecBuffer);