Advertisement

08.06.2008 at 03:42AM PDT, ID: 23625139
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

IHtmlDocument2, Delphi and Select and CheckBox

Asked by trevorb in Delphi Programming, Delphi Programming Language

Tags: , , ,

Dear All,

I'm a bit stuck on a problem with IHtmlDocument2 and filling in a web form.

We are trying to develop a small program to fill out an Amtrak desptach form. I came across an example of the Delphi section of About.Com which really seemed to be exactly what we required.

The article is here: http://delphi.about.com/od/twebbrowser/a/submit_web_form.htm

I won't repost the code here for sake of space!

After some initial problems (e.g there are some '.value' attributes missing in the value setting procedure), it seemed that the information I gathered from here would be exactly what we required.

I already know the field names and so it was easy to begin with to load the login screen and enter our logon details and then goto the despatch page.

I can fill all the fields on there just fine using their WebFormSetFieldValue procedure except.......

(a) I cannot seem to see how to check or uncheck a checkbox?
(b) I cannot fathom out how to set a value in a select box by it's text value? I can do it by it's itemindex but this would mean that we would need to hard code the Amtrak values into Delphi and if Amtrak change them (e.g. add a new service) which is highly likely then the wrong select value may be chosen. Is there a way to set the value field 'textually' or is there an 'indexof' type equivalent for the select element?

This is a little bit outside my day-to-day Delphi knowledge but it would be nice to be able to get this working.

Or maybe there is a better way to do this than the methods on the About website? The advantage of their method is that we can populate the HTML fields by name whereas other examples seem to access the HTML fields by an index which (again) could cause problems if Amtrak tweak their pages.

Many thanks in advance!

TrevorStart Free Trial
[+][-]08.06.2008 at 03:58AM PDT, ID: 22168815

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 04:15AM PDT, ID: 22168903

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 04:27AM PDT, ID: 22168957

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 04:33AM PDT, ID: 22168981

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 04:55AM PDT, ID: 22169113

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Delphi Programming, Delphi Programming Language
Tags: Codegear, Delphi, 2007, Delphi
Sign Up Now!
Solution Provided By: ciuly
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.06.2008 at 05:24AM PDT, ID: 22169301

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628