what is the delphi code to find the \" lowest \"character inauser supplied strin
ID: 3613919 • Letter: W
Question
what is the delphi code to find the " lowest "character inauser supplied string ( edit component). The user enters some text in an edit component, and thenclicks a butten component to have the program display the "lowest"character in the string. "Lowest" account to the delphi/ pascalcharacter order. what is the delphi code to find the " lowest "character inauser supplied string ( edit component). The user enters some text in an edit component, and thenclicks a butten component to have the program display the "lowest"character in the string. "Lowest" account to the delphi/ pascalcharacter order.Explanation / Answer
Dear,Lowest character :
procedure TForm1.Button1Click(Sender: TObject);
begin
var s:string;//long string declaration
ShowMessage('Enter string:');
Label1.Caption:=Edit1.Text; // edit text
s:=Label1.Caption;
s_length:=High(s[0]); // Returns the lowest value
ShowMessage('highest characters :'+s_length);
end;
I hope this will helpfulfor you............
Lowest character :
procedure TForm1.Button1Click(Sender: TObject);
begin
var s:string;//long string declaration
ShowMessage('Enter string:');
Label1.Caption:=Edit1.Text; // edit text
s:=Label1.Caption;
s_length:=High(s[0]); // Returns the lowest value
ShowMessage('highest characters :'+s_length);
end;
I hope this will helpfulfor you............ I hope this will helpfulfor you............
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.