TypeDescription.AdjustValue
Syntax:
Parameters:
<Value> (optional)
The value to be adjusted.
Returned value:
If a value is passed, a determination is made as to whether or not the value corresponds to the type description. If the value does correspond to the type description, the method returns the passed value. Otherwise, the value will be adjusted to the type that is available in the type description.
If the value is not passed, the default value for this type description is returned.
Description:
Availability:
Example:
// There is a Articles table box located on a form. //In this table box there is a BeginChoice event //defined for a Nomenclature column cell. The handler //for this event is listed in the example //Procedure ArticlesNomenclatureBegingChoice(Item,StandardProcessing) CatType = "CatalogRef.Nomenclature"; Item.TypeRestriction = New TypeDescription(CatType); Value = Item.Value Item.Value = Item.TypeRestriction.AdjustValue(Value); Item.ChooseType = False; EndProcedure |