Get field value from a SQL data reader using VB.NET

Function: Get the field values based on passed sqldatareader and field name or position in Visual Basic .NET
Description:
An example function that checks if the parameter is a field name or field ordinal and then reads the field value from a data reader. The function will return a value if the field name or ordinal is existing and the value is not NULL but will return nothing if parameters are incorrect.
Read more Get field value from a SQL data reader using VB.NET