Storages & Files CalcBuffer
CalcBuffer method

Calculates the buffer size required to handle a SFRecord or a SFField. Usually this is done automatically but direct access to the feature is provided for advanced applications.

Syntax:

variable = object.CalcBuffer(objectToHandle)

Parameters:

objectToHandle - SFRecord or SFField object.

returned value: The size in bytes of the buffer required for the passed object.

Remarks:

Typical applications will not need to call this method - when a SFRecord's BindTo method is called this method will be internally called and the buffer size is set automatically. However if the application needs something else - such as measure the buffer but not use it you can use this method to obtain the actual size of binary buffer required to handle a record or a single field.

Applies to: SFFilter object

Supported on:

Windows 95/NT and later
Windows CE 3.0 and later
Pocket PC/Windows Mobile 2003 and later
Windows CE.NET 4 and later

 

newObjects Copyright 2001-2006 newObjects [ ]