SmartZone v8.0 - Updated
Accusoft.SmartZoneICR.Net Assembly / Accusoft.SmartZoneICRSdk Namespace / Reader Class / SetFieldRegularExpression Method
Field type to associate the regular expression to
Regular expression string




In This Topic
    SetFieldRegularExpression Method (Reader)
    In This Topic
    Sets a regular expression as an additional pattern of a desired field type. This can be useful if the user has a specific pattern that he/she considers belonging to a certain field type.
    Syntax
    'Declaration
     
    
    Public Sub SetFieldRegularExpression( _
       ByVal field As FieldType, _
       ByVal regularExpression As String _
    ) 
    'Usage
     
    
    Dim instance As Reader
    Dim field As FieldType
    Dim regularExpression As String
     
    instance.SetFieldRegularExpression(field, regularExpression)
    public void SetFieldRegularExpression( 
       FieldType field,
       string regularExpression
    )
    public: void SetFieldRegularExpression( 
       FieldType field,
       string* regularExpression
    ) 
    public:
    void SetFieldRegularExpression( 
       FieldType field,
       String^ regularExpression
    ) 

    Parameters

    field
    Field type to associate the regular expression to
    regularExpression
    Regular expression string
    Exceptions
    ExceptionDescription
    The input Regular Expression is syntactically incorrect or unsupported.
    The input FieldType is General Text, DataValidationList, or Unknown.
    Remarks
    FieldType.GeneralText, FieldType.Unknown and FieldType.DataValidationList are not valid as input field types for this method.
    See Also