RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.StripAllFromResult Function

Converts a TModalResult value from a constant that refers to "all" to the corresponding simple constant.

Pascal
function StripAllFromResult(const AModalResult: TModalResult): TModalResult;
C++
TModalResult StripAllFromResult(const TModalResult AModalResult);

Call StripAllFromResult to remove the "all" interpretation from a TModalResult value. For example, after checking the result from a form's ShowModal method with the IsAnAllResult function, you can call StripAllFromResult to allow common code to process results that apply to a single selected item or all items.  

StripAllFromResult makes the following conversions:  

AModalResult 
Return value 
mrAll  
mrOk  
mrNo  
mrYes  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!