Answer the question
In order to leave comments, you need to log in
How to fill in Delphi using TChromium?
This code is currently being used:
procedure TForm8.Button2Click(Sender: TObject);
var
NamePole:string;
CodeStr,s:string;
begin
s:=Memo1.text;
CodeStr := 'document.getElementById("'+DopText+'").value="'+s+'";' ;
Chromium1.Browser.MainFrame.ExecuteJavaScript(CodeStr, 'about:blank', 0);
end;
Answer the question
In order to leave comments, you need to log in
s:=Memo1.text;
s := StringReplace( Memo1.text, #13#10, ' ');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question