procedure
StringFormat(aEdit:TMemo; CharAllo:
array
of
Char
; MaxCharCount:
Byte
);
var
i,j:
byte
;
Result:
ShortString
begin
Result:=
''
for
i:=
1
to
Length(aEdit
.
Text)
do
j:=
0
Length(CharAllo)
if
aEdit
Text[i]=CharAllo[j]
then
Result:=Result+aEdit
Text[i];
break;
end
Delete(Result, MaxCharCount+
, Length(Result)-MaxCharCount);
Result=
Result:=CharAllo[
];
Text:=Result;
SelStart:=MaxCharCount+
SelLength:=
TForm1
Edit3Change(Sender: TObject);
CA:
[
0..9
]
i:
9
CA[i]:=
(
48
+i);
StringFormat(TEdit(Sender),CA,
3
Сайт
Форум
FAQ
Соглашения
Прочее