New Method for LCFieldlist

This is the constructor for LCFieldlist.

Defined In

LCFieldlist

Syntax

Dim variableName as New LCFieldlist(recordCount, fieldFlags)

Parameters

Parameter

Description

recordCount

Long. Optional, >= 1. The number of records in the fieldlist. The default is 1. All fields added to the fieldlist will have this number of records. Select a higher number to allow multiple-row operations (for example, to Fetch several rows at a time).

fieldFlags

Long. Optional. The default field flags for the fieldlist (zero or more LCFIELDF_XXX flags ORed together). These are set as the initial field flags for each field added to the fieldlist. The default is LCFIELDF_TRUNC_PREC.

Example

Option Public
Uselsx "*lsxlc" 
Sub Initialize
Dim record As New LCFieldlist(1, 0)
	 ' Space to contain one record, with no precision truncation allowed.