ErrorString Property

ErrorString Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The ErrorString property is used to get and set an error string on a form element. This property is primarily used when the validation script finds an error in the form when the form is submitted to the server for processing.

Applies To

IFormElement Interface

Type Library

Exchange Web Storage System Forms 1.0 Type Library

DLL Implemented In

EXWFORM.DLL

Syntax

[Visual Basic]Property ErrorString As String

[C++]HRESULT get_ErrorString(BSTRpbstrErrorString);
HRESULT put_ErrorString(BSTR bstrErrorString);

Parameters

  • pbstrErrorString
    Returns the value of the property as a reference to a BSTR.
  • bstrErrorString
    Sets the value of the property to the value of the BSTR.

Remarks

The error string can be any valid HTML. The error string is inserted immediately following the HTML element. The object inserts exactly what the user specifies, including spacing issues.

For example, setting this property equal to "<b>Error Occurred</b>" on a field named "company" would generate the following HTML:

<input name="company" class="field"> becomes <input name="company" class="field"><b>Error Occurred</b>

- and -

<textarea name="company" class="field"> </textarea> becomes <textarea name="company" class="field"> </textarea><b>Error Occurred</b>

Elements that require a closing tag should have the error string inserted after the closing tag. If the element does not have a closing tag, the error string is placed immediately following the opening tag.

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.