Show / Hide Table of Contents

Class ContactCode

Inheritance
Object
ContactCode
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoCore.dll
Syntax
public static class ContactCode

Methods

CalculateCode(String)

Calculate the "Code" (actually Number1) field of the contact card, based on the name

Declaration
public static string CalculateCode(string contactName)
Parameters
Type Name Description
String contactName

Raw contact name

Returns
Type Description
String

Code, which is upper-case alphanumeric chars, up to a length of 9

IsCharAlpha(Char)

Is the character alphabetic, according to the regional settings on the machine we're running on

Declaration
public static bool IsCharAlpha(this char cChar)
Parameters
Type Name Description
Char cChar

Character to evaluate

Returns
Type Description
Boolean

true or false

IsCharAlphaNumeric(Char)

Is the character alphabetic OR numeric, according to the regional settings on the machine we're running on

Declaration
public static bool IsCharAlphaNumeric(this char cChar)
Parameters
Type Name Description
Char cChar

Character to evaluate

Returns
Type Description
Boolean

true or false

IsCharLower(Char)

Is the character lowercase alphabetic, according to the regional settings on the machine we're running on

Declaration
public static bool IsCharLower(this char cChar)
Parameters
Type Name Description
Char cChar

Character to evaluate

Returns
Type Description
Boolean

true or false

IsCharNumeric(Char)

Is the character numeric, according to the regional settings on the machine we're running on

Declaration
public static bool IsCharNumeric(this char cChar)
Parameters
Type Name Description
Char cChar

Character to evaluate

Returns
Type Description
Boolean

true or false

Remarks

Since there is no OS method for this, we define "numeric" as "alphanumeric:true && alpha:false"

IsCharUpper(Char)

Is the character uppercase alphabetic, according to the regional settings on the machine we're running on

Declaration
public static bool IsCharUpper(this char cChar)
Parameters
Type Name Description
Char cChar

Character to evaluate

Returns
Type Description
Boolean

true or false

© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top