Thursday, September 15, 2011

Delphi Experts 1 : I got to create an event handler for a button click. How to remove spaces & change to caps?

The btnConvert removes the blanks and converts the string in the Edit component to

UpperCase. Okay i know you use the uppercase command but how do i remove the spaces from a string?



For example the edit componant says %26quot;Hello how are you%26quot;



you must convert that on the click to %26quot;HELLHOWAREYOU%26quot;Delphi Experts 1 : I got to create an event handler for a button click. How to remove spaces %26amp; change to caps?UpperCase( StringReplace(Edit1.Text, ' ', '', [rfReplaceAll]);