mam juz dzialajacy kod ktory wypelnia formularz ale mam problem z obsluga pol wyboru
moj kod jest taki
....
var
CurWebrowser: IWebBrowser;
TopWebBrowser: IWebBrowser;
Document: OleVariant;
WindowName: string;
i,j:integer;
FormItem: Variant;
begin
.....
FormItem := Document.forms.Item(I);
for j := 0 to FormItem.Length - 1 do
begin
try
memo1.Lines.Add(FormItem.Item(j).Name+'|'+FormItem.Item(j).Type);
//when the fieldname is found, try to fill out
if FormItem.Item(j).Name = 'login' then
begin
FormItem.Item(j).Value := 'misiek'; {to dziala automatycznie sie wypelnia to pole }
end;
i teraz jest kwestia wyboru daty urodzenia
jest kolejne pole w formularzu:
FormItem.Item(j).Name=Rok_urodzenia
i mi pokazuje jego
FormItem.Item(j).Type='select-one'
jak odczytac teraz ze zmiennej:
FormItem.Item(j) jego pola wyboru??? i Od razu ustawic ze wybrano np 3 z 9 mozliwych