If Supports(ADocument, IID_IHTMLDocument3, HTMLDocument) then If (em(I, I) as IHTMLOptionElement).value = AValue then Source code: function SelectOptionByValue(const ADocument: IDispatch const AElementID,įunction IndexOfValue(const AHTMLElement: IHTMLSelectElement If the with a given value is successfully found (and selected), the return value is the index of that option in a specified drop down list, -1 otherwise.
0 Comments
Leave a Reply. |