Results 1 to 4 of 4

Thread: [Resolved]Combobox/Style Issue

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Location
    Gorgeous Ontario
    Posts
    265

    Resolved [Resolved]Combobox/Style Issue

    Ok so I have an array of comboboxes set to DropDown List, so nobody can enter other data. Now I have cmd button to clear the form of all data. Since you can't write/clear the data in DropDown List style, I am switching the style of each to DropDown Combo first then clearing the data and returning the style back to DropDown List. Here's the code:

    VB Code:
    1. For i = 0 To 8
    2.                     Set cboFlash(i).Style = 0
    3.                 Next
    4.                
    5.                 For i = 0 To 8
    6.                     cboFlash(i).Text = ""
    7.                 Next
    8.  
    9.                 For i = 0 To 8
    10.                     Set cboFlash(i).Style = 2
    11.                 Next

    Now I have two errors:

    1. Compile Error: Invalid use of property - in regards to the .Style when I use the Set command.
    2. Compile Error: Can't assign to read-only property - when i remove Set command.

    Any suggestions?
    Last edited by Falconsbane; Jun 22nd, 2006 at 08:51 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width