How to fill all edits with random characters ranging from A to Z all with a space in front of the character?

Hi Folks!

Is it possible to fill each and every edit with  a space + a randomly chozen character ranging from > A to Z ?


Regards Peter

Provide a working sample > this will grant you the points ofcourse :)
PeterdeBAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

shaneholmesCommented:
procedure TForm1.Button1Click(Sender: TObject);
var
 I, C: Integer;
begin
 randomize;
 for I:= 0 to ComponentCount -1 do
  if Components[I] is TEdit then
  begin
   repeat
    C:= Random(90) + 1;
   until (C > 65) AND (C <= 90);
   TEdit(Components[I]).Text:= Char(C);
  end;
end;
0
BlackTigerXCommented:
procedure TForm1.Button1Click(Sender: TObject);
var
 I, C: Integer;
begin
 randomize;
 for I:= 0 to ComponentCount -1 do
  if Components[I] is TEdit then
  begin
    C:= Random(26)+65;
   TEdit(Components[I]).Text:= ' '+Char(C);
  end;
end;

=o)
0
shaneholmesCommented:
hello, why didn't i think of that ....... ha ha ha....

see what happens when your coding two different things at the same time

<SMILE>

sholmes
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

BlackTigerXCommented:
lol, it happened to me just now in another question...

give the points to shaneholmes, I just polished the code
0
PeterdeBAuthor Commented:
Ok guys tnx for the responses. I will follow up to your advice BlackTigerX!

Perfect code!

Regards and respect,

Peter
0
shaneholmesCommented:
Thankx BlackTigerX!

Shane
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.