IncrementValue Method (IManageFmtInput)
In This Topic
Increments or decrements (dependent on sign of "incrAmt") the value represented by the text.
Syntax
'Declaration
Function IncrementValue( _
ByVal As String, _
ByVal As Integer, _
ByVal As Object, _
ByVal As Boolean, _
ByVal As Object, _
ByRef As String, _
ByRef As Integer _
) As Boolean
'Usage
Dim instance As IManageFmtInput
Dim currText As String
Dim position As Integer
Dim incrAmt As Object
Dim wrapValueFlag As Boolean
Dim initValueIfBlank As Object
Dim resultText As String
Dim resultCaretPos As Integer
Dim value As Boolean
value = instance.IncrementValue(currText, position, incrAmt, wrapValueFlag, initValueIfBlank, resultText, resultCaretPos)
bool IncrementValue(
string ,
int ,
object ,
bool ,
object ,
out string ,
out int
)
Parameters
- currText
- Current text string
- position
- Position index
- incrAmt
- Amount to increment
- wrapValueFlag
- Whether to wrap to multiple lines
- initValueIfBlank
- Initial value if blank
- resultText
- Result text string
- resultCaretPos
- Result input position
See Also