ClearVirtualCode Method for LCField

This method clears the specified virtual code for the field. Virtual codes flag fields as special system properties recognized by different systems. Refer to the connector documentation for specific codes supported by each connection.

Defined In

LCField

Syntax

Call field.ClearVirtualCode (code)

Parameters

Parameter

Description

code

The code to clear. Zero (0) clears all codes.

Example

Option Public
Uselsx "*lsxlc"  
Sub Initialize
  Dim session As New LCSession 
     ' In an LEI Scripted Agent, use the following syntax instead:
     ' Dim session As New LCSession ("mySession")
  Dim field As New LCField (LCTYPE_INT)
  Dim Code As Long
  Dim text As String
  Call session.ListConnector (LCLIST_FIRST, , Code)
  Call field.SetVirtualCode (Code)
  While session.ListConnector (LCLIST_NEXT, , Code)
    Call field.SetVirtualCode (Code)
  Wend
  ' use the value to clear an individual connector's virtual code
  ' use 'zero' to clear all connectors' virtual codes
  Call field.ClearVirtualcode (0)
  Print "All of the virtual codes have been cleared."
End Sub

Example Output

All of the virtual codes have been cleared.