Extracts any values ​​from a number

andrescastellanosint
Contributor

Extracts any values ​​from a number

andrescastellanosint
Contributor
Contributor

Hello, could someone help me with a rule that extracts any values ​​from a number. Example = 190386. Extracted Value =386. Thanks

0 Likes
Reply
Accepted solutions (1)
272 Views
2 Replies
Replies (2)

JelteDeJong
Mentor
Mentor
Accepted solution

try this:

Dim Example As String = "190386"

Dim startIndex As Integer = 3
Dim length As Integer = Example.Length - startIndex

MsgBox(Example.Substring(startIndex, length))

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Michael.Navara
Advisor
Advisor

This question can't be answered.

You need to specify your rules for extracting the value. Is it:

  • Last three digits
  • Everything after third digit
  • Everything after first zero
  • ...