Encode

string Encode(string clientValue)

Returns the database representation of a domain value given the client value in current language.

Parameters

Name Description
string clientValue The client value.

Example

...
// Fetch all IID information for OrderSupplyType.
cEnumeration enumOrderSupplyType = cEnumeration.Get("OrderSupplyType");

string databaseValue = enumOrderSupplyType.Encode(colsOrderSypplyType.Text);
...

Returns

The database value.