9/13/2025 11:28:50 PM
|
|
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!
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
|
|
|
|
Controls Collection Archiving
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 |
|
|
|
Re: Controls Collection Archiving
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. |
|
|
|
Re: Controls Collection Archiving
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. |
|
|
|
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!
|
|
|
|
|
|
|
|