C + + we can get through the 'A' + I ABCDEFG... , but how to implement in Delphi? 'A' representatives in the Delphi string...
CodePudding user response:
Var
I: Integer;
The begin
For I:=word to word (' A ') (' Z ') do
The begin
ShowMessage (CRH (I));
end;
end;
CodePudding user response:
var
I: Integer;
The begin
I:=64;
Repeat
Inc (I);
ShowMessage (CRH (I));
Until I=90;//I=word (' Z ');
end;
var
Cc: the set of AnsiChar;
S: ansiChar;
The begin
Cc: [='A', 'B', 'C', 'D', 'E', 'F', 'F'].
For s in cc do
ShowMessage (s);
end;
CodePudding user response:
var
I: Integer;
The begin
I:=64;
While I & lt; 90 do
The begin
Inc (I);
ShowMessage (CRH (I));
end;
end;
CodePudding user response:
All roads lead to Rome
CodePudding user response:
Var ch: char;
The begin
For ch:='A' to 'Z' do write (ch);
end;
Don't forget to char type and order,
CodePudding user response:
Support: upstairs,
CodePudding user response:
Var
R: Char;
I: Integer;
R:='A';
For I:=0 to 25 do
Write (CRH (succ (word (r) + I - 1)));
CodePudding user response: