Home Forums ActiveX components Other ActiveX components SmartCombo Add Item In For Statement

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #43237 |

    This code on it’s own works (of course):
    SmartCombo(“COMBO”).SubItems.Add , “FOLDER” & ComboListCount,

    However when I loop through all combo items and only add the new item if it doesn’t already exist I recieve an error:
    For Each SubItem In Item.SubItems
    If SubItem.Caption = fontDir Then
    Exit Sub
    Else
    SmartCombo(“COMBO”).SubItems.Add , “FOLDER” & ComboListCount, fontDir, ListItemFullRow
    End If
    Next SubItem

    The error is Type Mismatch. I’m guessing it’s not formated properly but I can seem to get the formatting right.

    Help!
    Justin

    Applies to Xceed SmartUI (ActiveX). Imported from legacy forums. Posted by CodeHaven (had 3205 views)

    User (Old forums)
    Member
    Post count: 23064

    I figured out a work around to deal with this routine.

    Applies to Xceed SmartUI (ActiveX). Imported from legacy forums. Posted by CodeHaven (had 3658 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.