Spread Windows Forms 8.0 Product Documentation
GetFormatStringAtPos Method


Current text string
Position index
Returns the format string for the field at the specified position in the given text.
Syntax
'Declaration
 
Function GetFormatStringAtPos( _
   ByVal currText As String, _
   ByVal position As Integer _
) As String
'Usage
 
Dim instance As IManageFmtInput
Dim currText As String
Dim position As Integer
Dim value As String
 
value = instance.GetFormatStringAtPos(currText, position)
string GetFormatStringAtPos( 
   string currText,
   int position
)

Parameters

currText
Current text string
position
Position index
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).
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

IManageFmtInput Interface
IManageFmtInput Members

 

 


Copyright © GrapeCity, inc. All rights reserved.