How to check whether a string is all "upper case"

106 51
< Continued from page 3

The IsUpperCase returns true if the string accepted as a paramter is all upper case.

~~~~~~~~~~~~~~~~~~~~~~~~~
function IsUpperCase(Value: string): Boolean;
begin
   Result := Value = UpperCase(Value) ;
end;
~~~~~~~~~~~~~~~~~~~~~~~~~

Delphi tips navigator:
» Display standard Windows Properties dialog
« How to complete partial strings typed into a combo box

Source...

Leave A Reply

Your email address will not be published.