Hallo, was hindert dich daran, WB_SetFormValue in WB_GetFormValue umzuschreiben?
Delphi-Quellcode:
function WB_GetFormValue3(WB: TWebbrowser; FieldName: string): string;
var
iForms, iItems: Integer;
FormItem: OleVariant;
begin
Result := '';
for iForms := 0 to WB.OleObject.Document.forms.Length - 1 do
begin
FormItem := WB.OleObject.Document.forms.Item(iForms);
for iItems := 0 to FormItem.Length - 1 do
begin
try
if SameText(FormItem.Item(iItems).Name, FieldName) then
begin
Result := FormItem.Item(iItems).Value;
end;
except
end;
end;
end;
end;