SECMaskEdit::SetData
BOOLSECMaskEdit::SetData(const CString&strData, intnStartPos= 0, BOOLbInsert= FALSE, BOOLbIgnorePromptChars= TRUE)
Puts data into the masked edit.
Defined in: SECMEDIT.CPP
Return Value
Nonzero if successful, otherwise zero.
Parameters
strData
A CString that contains the new data for the SECMaskEdit.
Comments
Call SetData to programmatically insert data into an SECZoomView. The mask is applied to the data. For example, you might call SetData("9193216186"); while a phone mask is active to display: (919) 321-6186. This is handy for redisplaying data that has been already entered with the mask edit.
nStartPos
The point in the edit to place the new data. The default is 0, or the far left location in the edit. This is useful if you want to specify an extension or the last part of some number/name.
bInsert
Specifies if the data should be inserted or overridden. Most applications will overwrite the existing data in the edit, so the default is FALSE. Set to true if you would like to overwrite any portion of the SECMaskEdit’s data.
bIgnorePromptChars
Setting this flag tells SetData to ignore any characters that match the current prompt string in the strData data argument. Otherwise, these will be added as prompt characters in the mask edit.
See Also