VB Like Functions

HOW TO:

ncTools.VB Methods Listing

Cr = Carriage Return
CrLf = Carriage Return New Line Feed

Left
var myResult = ncTools.VB.Left("John, Doe", 5);
Result: John,
Right
var myResult = ncTools.VB.Right("John, Doe", 5);
Result: , Doe
DateDiff
var myResult = ncTools.VB.DateDiff("day", Convert.ToDateTime("10/01/2021"), Convert.ToDateTime("12/02/2021"));
Result: 62 Days

FirstCap
var myResult = ncTools.VB.FirstCap("JOHN, DOE");
Result: John, Doe

IsDate
var myResult = ncTools.VB.IsDate("10/17/2021");
Result: True

var myResult = ncTools.VB.IsDate("31/17/20");
Result: False

IsNumeric
var myResult = ncTools.VB.IsNumeric("120.00");
Result: True

var myResult = ncTools.VB.IsNumeric("ten");
Result: False

ParseTheString
//- String Parsed from Left to Right
var myResult = ncTools.VB.ParseTheString("John, Doe", ",", ncTools.eParsing.Left);
Result: John 
//- String Parsed from Right to Left
var myResult = ncTools.VB.ParseTheString("John, Doe", ",", ncTools.eParsing.Right);
Result: Doe

Add Feedback