SetFormatStream Method for LCField

This method assigns the current format setting for a stream field. Calling this method clears all values for this field.

Defined In

LCField

Syntax

Call thisField.SetFormatStream (streamFlags, maxLength, streamFormat)

Parameters

Parameter

Description

streamFlags

Long. Optional. Stream flags assigned to the field. In this chapter refer "LCField Class Methods and Properties Summary", under "Stream" for a description of the flags. The default is 0.

maxLength

Long, >= 0. Optional. Maximum length assigned to the stream field. A value of zero indicates no maximum length. The default is 0.

streamFormat

Long. Optional. Stream format assigned to the stream field. This may be either a character set selection from Appendix D or one of several special formats listed in the "LCStream Class" Chapter, in the "Stream Format" section . A value of zero indicates no specified stream format. The default is LCSTREAMFMT_UNICODE.

Example

Option Public
Uselsx "*lsxlc"  
Sub Initialize
  Dim field As New LCField (LCTYPE_BINARY)
  Dim fmt As Long
  Dim flags As Long
  Call field.SetFormatStream (LCSTREAMF_NO_CASE, 256, LCSTREAMFMT_BIG5)
  Call field.GetFormatStream (flags, , fmt)
  Print "The stream format and flag settings are:  format=" & fmt & _ 
" flags=" & Hex(flags) & "h"
End Sub

Example Output

The stream format and flag settings are:  
format=26 flags=10h