Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, April 23, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Using TCheckListBox in SalesLogix 7.5
Raj Ubendran
Posts: 24
 
Using TCheckListBox in SalesLogix 7.5Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 May 13 10:33 AM

Hi,


I'm using a TCheckListBox and Looping through all the items to find out all the selected items on the control but couldn't get this to work? Can some one tell me how do I achieve this please. This is what I done:


 


 For iIndex = 0 To clbTsPots.Items.Count -1


    If clbTsPots.Items.Item(iIndex).Checked = true Then
        MsgBox clbTsPots.Items.Item(iIndex)
    End If
  Next


When I get to this line I'm getting this error:


Microsoft.VBScript runtime error: Object required: clbTsPot.Items.Item (...)


I have used this same code with TListView control but how do i do this with this control? Any help would very much appreciated...

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Using TCheckListBox in SalesLogix 7.5Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 May 13 10:38 AM
fiogf49gjkf0d

 


    For i = 0 to clbColumns.Items.Count - 1


        If clbColumns.Checked(i) then
            strCols = strCols & clbColumns.Items.Item(i) & "+"
        End If


    Next


Above is snatched from some code I use - you don't need to iterate the items, just the cols.

[Reply][Quote]
Raj Ubendran
Posts: 24
 
Re: Using TCheckListBox in SalesLogix 7.5Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 May 13 10:46 AM

Thank you Mike. You again to the rescue!!!

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Using TCheckListBox in SalesLogix 7.5Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 May 13 10:46 AM
fiogf49gjkf0d

My pleasure!

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 4/23/2024 6:48:16 PM