Title: Message

John,

 

To select “Humiston Sharon” in a list box:

 

            Pause "<SELECT>[EMAIL PROTECTED]"
            For i = 0 To Web.Selected.Options.Length

                If Web.Selected.Options(i).Value = “Humiston Sharon” Then

                    Web.Selected.selectedIndex = i

                    Exit For

                End If

            Next i

 

Don’t try to understand this exactly, just try to get the overall point.  The Internet Explorer has literally thousands of weird objects, methods and properties like this.  We try to protect you from most of them but we haven’t figured out how to protect you from this one.

 

Rich McNeil

Boston Software Systems

866 653 5105

www.bostonworkstation.com


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dutcher, John
Sent: Monday, November 08, 2004 6:36 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [Talk] 'setting' the value of the current element.

 

It's interesting (and probably understandable) that using

"Let Web.Selected.innerHTML = "Humiston Sharon"

cause no compile or run-time error.....it just hasn't

populated the listbox window wuth anything either.

-----Original Message-----
From: Dutcher, John
Sent: Monday, November 08, 2004 6:12 PM
To: '[EMAIL PROTECTED]'
Subject: [Talk] 'setting' the value of the current element.

The 2nd of the two following lines of code cause a compile error

which observes that an object is apparently needed after the '=' sign.

 

It seems to me that one should be able to instantiate some kind of

object in the code and give it the value of the literal shown.......so that

the 'element', (a listbox in this case) could be valued with the literal

value. 

 

How to achieve that in VBA ?

 

John D.  

 

Code lines:

 

        Pause "<SELECT>[EMAIL PROTECTED]"
        Set Web.Selected = "Humiston Sharon"
   <-----------compile error here ---<

Reply via email to