StringExtensionsSplitRefName Method
Split Reference Name with number e.g. R100 => R and 100
Namespace: PCBI_API_Extensions.ExtensionsAssembly: PCBI.API_Library (in PCBI.API_Library.dll) Version: 17.0.0.0 (17.0.0.0)
public static bool SplitRefName(
this string input,
out string prefix,
out int number
)
<ExtensionAttribute>
Public Shared Function SplitRefName (
input As String,
<OutAttribute> ByRef prefix As String,
<OutAttribute> ByRef number As Integer
) As Boolean
public:
[ExtensionAttribute]
static bool SplitRefName(
String^ input,
[OutAttribute] String^% prefix,
[OutAttribute] int% number
)
[<ExtensionAttribute>]
static member SplitRefName :
input : string *
prefix : string byref *
number : int byref -> bool
- input String
- Component Reference
- prefix String
- The string part without number or counterpart (if it contains "_" it counts after it)
- number Int32
- last number to count up
Booleantrue if the reference contains an numberIn Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).