[]
        
(Showing Draft Content)

FarPoint.Win.SuperEdit.IManageFmtInput.GetFormatStringAtPos

GetFormatStringAtPos Method

GetFormatStringAtPos(string, int)

Returns the format string for the field at the specified position in the given text.

Declaration
string GetFormatStringAtPos(string currText, int position)
Function GetFormatStringAtPos(currText As String, position As Integer) As String
Parameters
Type Name Description
string currText

Current text string

int position

Position index

Returns
Type Description
string

The format string for the field at the specified position.

Remarks

Example: Format String: "d/mm/yy", currText: "25/12/02" position: 3. This method will return "mm". Returns "" if bad position. If at a literal position, then the char at that position, preceded with a backslash, is returned ("\c" where 'c' is the actual char).