SftMask/OCX 6.5

SftMask.TextDisplay Property

Softel vdm, Inc.

Returns the interpreted control contents.

Syntax       

Get

VB.NET

Text = object.TextDisplay  As String

VB

Text = object.TextDisplay  As String

C#.NET

string Text = object.TextDisplay;

VC++

_bstr_t Text = object->TextDisplay;
_bstr_t Text = object->GetTextDisplay();

C

HRESULT object->get_TextDisplay(BSTR* Text);

Delphi

Text := object.TextDisplay   : WideString;

object

A SftMask object.

Text

Returns the interpreted control contents.

Comments

The TextDisplay property returns the interpreted control contents.

When retrieving the TextDisplay property in a Masked Edit control (with Mask), input positions without data are represented by the space character. The otherwise equivalent Text property returns carriage return (Chr(13)) characters instead.

The ClipMode property affects the handling of literal characters.

It is possible to retrieve portions of the control contents using the Contents.Value property.

The properties Text, TextDisplayWithLiterals, TextDisplayNoLiterals, TextPureWithLiterals and TextPureNoLiterals also retrieve the control contents with varying handling of unspecified input positions and literal characters.

Property

Unspecified Positions

Literals

Text

Chr(13)

ClipMode

TextDisplay

Space

ClipMode

TextDisplayNoLiterals

Space

No

TextDisplayWithLiterals

Space

Yes

TextPureNoLiterals

Chr(13)

No

TextPureWithLiterals

Chr(13)

Yes


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com