(31-12-2017, 08:15 PM)Agmcz كتب : هكذا حل
PHP كود :procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if (Edit1.Text[Length(Edit1.Text)] = #32) and (Key = #32) then
Key := #0;
end;
شكرا لك هل بمكاني استخدامها مع سترنغ؟
كود :
var
s:string;
Key: Char;
begin
try
if (s[Length(s)] = #32) and (Key = #32) then
Key := #0;
except
s:='';
end;
end;
