1. Home
  2. Conecta HUB
  3. Transformations
  4. Text strings
  5. Fill Left

Fill Left

DESCRIPTION:

Left appends to the string SourceValue characters specified in Condition1Value until a string size equal to the value specified in Factor is filled.

EXAMPLE:

SourceValue: "12345".

Condition1Value: "0".

Factor: "10".

ProcessValue: "0000012345".

 

CONFIGURATION:

Value Value2 Relation Relationship2 Operation Factor
0 Fill Left 10

CODE:

If SourceValue "" Then

If (SourceValue.Length() < CInt(Factor)) Then

Dim cantidadARlenar As Integer = CInt(Factor) - ValorOrigen.Length()

Dim stringFinalAs String = ""

For i As Integer = 0 To quantityARellenar - 1

endString += Condition1Value

Next

ProcessedValue = EndString + SourceValue

Else

ProcessValue = SourceValue

End If

End If

Was this article helpful to you? Yes No

How can we help?