Switch to: V9V8V7V6V5

VTable Class: BLOB Fields Creation

VTable.CreateBLOBField()

Declaration:

CreateBLOBField( 
	inName as String, 
	inSegmentSize as Integer) as VBLOB

Parameters:

  • inName - The name of the field.
  • inSegmentSize - The segment size of the BLOB field.

Description:

Creates a BLOB (Binary Large Object) field of general kind.

You need to specify the segment size in bytes.

Example:

dim fldNotesStyle as VBLOB
 
fldNotesStyle = tblPerson.CreateBLOBField( "fldNotesStyle",  256 )

VTable.CreateTextField()

Declaration:

CreateTextField( 
	inName as String, 
	inSegmentSize as Integer, 
 	inFlags as EVFlag = fNone, 
	inMethod as String = ”") as VText

Parameters:

  • inName - The name of the field.
  • inSegmentSize - The segment size of the BLOB field.
  • inFlags - The flags of the field.
  • inMethod - The text of the method for a calculation field.

Description:

Creates a Text field.

  • You need to specify the segment size in bytes, because TEXT is kind of BLOB field.
  • You can specify flags for a field to modify its behavior.
  • If you want to create a calculation field then you should specify the method text.

Example:

dim fldNotes as VText
 
fldNotes = tblPerson.CreateTextField( 
               "fldNotes", 
               256, 
               EVFlags.fNullable + EVFlags.fIndexed + EVFlags.fIndexByWords )

VTable.CreatePictureField()

Declaration:

CreatePictureField( 
	inName as String, 
	inSegmentSize as Integer) as VPicture

Parameters:

  • inName - The name of the field.
  • inSegmentSize - The segment size of the field.

Description:

Creates a picture field.

  • You need to specify the segment size in bytes.

Example:

dim fldPhote as VPicture
 
fldPhote = tblPerson.CreatePictureField( "fldPhoto", 256, fNone )