sx_RecSize

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_RecSize

VB Declaration

Declare Function sx_RecSize Lib "Apollo9.dll" () As Long

C Declaration

LONG FAR PASCAL sx_RecSize (VOID);

Description

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.

Return Value

The size of the record is the sum of the field widths plus one for the deletion flag.

VB Example

' 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()

C Example

cpRecBuffer = sx_MemAlloc(sx_RecSize());

sx_GetRecord((BYTEP) cpRecBuffer);

See Also

sx_FieldWidth