Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 6, 2025 
 
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: Controls Collection Archiving
Michael Rogers
Posts: 70
 
Controls Collection ArchivingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Mar 07 8:52 AM
fiogf49gjkf0d
Before I re-invent the wheel here, does anyone have a method they use to document the types and names of the controls on their forms as well as the Properties of those controls? I started to loop through objControls to get names and types, but am coming up short on syntax to loop through properties. Thank you in advance! Michael
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Controls Collection ArchivingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Mar 07 12:05 PM
fiogf49gjkf0d
The problem is that there isn't an easy way to "loop" through the properties. You could use

Select Case TypeName(objControl)
Case "TextBox"
' hard code specific properties for TextBox
Case "Button"
' hard code specific properties for Button
End Select

' now handle all generic properties that apply to all controls
' etc...


It is were me, I'd do it outside in .NET, gen a interop library for the SlxControls.ocx and then reflect the properties. That'd be the way to do it.
[Reply][Quote]
Michael Rogers
Posts: 70
 
Re: Controls Collection ArchivingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Mar 07 1:05 PM
fiogf49gjkf0d
Ryan, Thanks for the help. As it turns out it may be a moot point: as an example, the bound fields show as blank (objControls(2).text = ""). May just be one of those " you can't get there from here" issues.
[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 © 2025 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): 6/6/2025 11:27:04 AM