Bean Software Search Control Documentation   
 
 
     




LastMessage Property


Description:
Represents a message from the control after calling getWhereClause method. This read only property tells does control buids a valid SQL and what was the problem if not. If value of IfError property is set to enuIfError.ThrowException, then control will throw exception with this message. If value of IfError property is set to other value, then control will not throw exception, but you still can get a message by reading this property.

[Visual Basic .NET]

Public ReadOnly Property LastMessage() As String


[C#]

public String LastMessage() {get;}

Data type: String

Default value: empty string

Example: If you don't add any search column to SearchColumns and call getWhereClause method, the control can't build a valid SQL. Control's behavier will depends of what is IfError property value. LastMessage property value will be a string:
"Search Control Error Message 102: There is no columns to search."