I'm having a little problem with checking if a value exists in an HTML form. I have a TWebBrowser control. It navigates to a website where the user performs a registration process. I need to pull a value from the form to see how far along the process the user has gone. Now, if there is any problem, and the form is not loaded, obviously that value will not be in the page. I use the following code to retrieve the value :
RegProcStr := WebBrowser.OleObject.Document.getElementByID('RegProc').value;
How do i check if the value exists before i retrieve it, if the value is not there, i get an error.
Thanks in advance.