Upper Console

on any delphi( program help) on console app?

a program that asks the user for their first name and their surename, the program then displays the full name, first name capitalized (first letter capital, and the rest lower case) and surename, all upper case regardless of what case the user enterd

I am not sure about the console bit as a console Delphi console application is a pascal program which has no form for users to enter their details. I am having to assume you are confusing the form with the console.

The code below uses the Upcase and Uppercase functions to change to contents of two edit components (Edit1 and Edit2).
Email me by clicking on my profile if you get further stuck.

function TForm1.TitleCase(strString: string):string;
begin
// first turn all character to lowercase
strString:=Lowercase(strString);
// now convert first char to upper
strString[1]:=UpCase(strString[1]);
TitleCase:=strString;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
if length(Edit1.Text)<>0 then Edit1.Text:=TitleCase(Edit1.Text);
Edit2.Text:=Uppercase(Edit2.Text);
end;

Knight Rider Upper Console Keypad 10 buttons with LED
Knight Rider Upper Console Keypad 10 buttons with LED
$75.00
Time Remaining: 10d 21h 3m
Buy It Now for only: $75.00

SEASON 2 PUSH BUTTON SET Knight Rider Upper Console
SEASON 2 PUSH BUTTON SET Knight Rider Upper Console
$129.00
Time Remaining: 10d 21h 8m
Buy It Now for only: $129.00

Knight Rider replicas Upper Console LED Keys Narrow
Knight Rider replicas Upper Console LED Keys Narrow
$45.00
Time Remaining: 13d 19h 30m
Buy It Now for only: $45.00

Knight Rider Upper Console COM Keypad Black and White
Knight Rider Upper Console COM Keypad Black and White
$65.00
Time Remaining: 28d 4h 51m
Buy It Now for only: $65.00

Leave a comment

Your comment