Patterns: WIP Patterns2
This commit is contained in:
@@ -24,8 +24,8 @@ Namespace [PatternModule]
|
||||
Dim oCounter = 0
|
||||
Dim oPanel As Panel = pReplaceMap.Item("CTRL_VALUE_PANEL")
|
||||
|
||||
While BaseFunctions.ContainsPattern(oResult, PatternIdentifier)
|
||||
Dim oControlName As String = BaseFunctions.GetNextPattern(oResult, PatternIdentifier).Value
|
||||
While ContainsPattern(oResult, PatternIdentifier)
|
||||
Dim oControlName As String = GetNextPattern(oResult, PatternIdentifier).Value
|
||||
Dim oControl As Control = oPanel.Controls.Find(oControlName, False).FirstOrDefault()
|
||||
|
||||
If oControl IsNot Nothing Then
|
||||
@@ -49,10 +49,10 @@ Namespace [PatternModule]
|
||||
oReplaceValue = "0"
|
||||
End Select
|
||||
|
||||
oResult = BaseFunctions.ReplacePattern(oResult, PatternIdentifier, oReplaceValue)
|
||||
oResult = ReplacePattern(oResult, PatternIdentifier, oReplaceValue)
|
||||
End If
|
||||
|
||||
BaseFunctions.IncrementCounterOrThrow(oCounter)
|
||||
IncrementCounterOrThrow(oCounter)
|
||||
End While
|
||||
|
||||
Return oResult
|
||||
|
||||
Reference in New Issue
Block a user