Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 7, 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: Checkbox control properties
David Nunnally
Posts: 206
 
Checkbox control propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Oct 07 3:49 PM
I have a form that has multiple checkbox controls that derive their captions from a databse field. I never realized how many companies have "&" in their name. How can I get a checkbox control to display the "&" instead of "_"?
[Reply][Quote]
Konstantin Vishnevsky
Posts: 97
 
Re: Checkbox control propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Oct 07 4:07 PM
I am not sure, I haven't tried it, but you could probably do it through code and replace it with it's ASCII code of 38
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Checkbox control propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Oct 07 4:28 PM
Quote:
Originally posted by David Nunnally

I have a form that has multiple checkbox controls that derive their captions from a databse field. I never realized how many companies have "&" in their name. How can I get a checkbox control to display the "&" instead of "_"?


You have to escape it with another ampersand. For example:

name = "Farley & Associates"
Checkbox.Caption = Replace(name, "&", "&&") '<-- Now checkbox's caption is "Farley & Associates"


Make sense?

-Ryan
[Reply][Quote]
David Nunnally
Posts: 206
 
Re: Checkbox control propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Oct 07 4:36 PM
OUCH Ryan!

That was so simple it hurt!
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Checkbox control propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Oct 07 3:42 AM
Hey, but what if my name is "Smith && Weston" - won't that loop uncontrollably
[Reply][Quote]
David Nunnally
Posts: 206
 
Re: Checkbox control propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Oct 07 8:39 AM
I LIKE IT!

I guess a little error handling is on order here!
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Checkbox control propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Oct 07 4:10 PM
Quote:
Originally posted by Mike Spragg

Hey, but what if my name is "Smith && Weston" - won't that loop uncontrollably


Actually, it doesn't loop, it would find 2 ampersands and would replace each to be two consecutive ampersands. You'd end up with "Smith &&&& Weston", which would actually come out looking like "Smith && Weston" in a caption of a label or checkbox.

Besides, what kind of name would really have && in it anyway??!
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Checkbox control propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Oct 07 5:45 PM
Quote:
Originally posted by Ryan Farley



Actually, it doesn't loop, it would find 2 ampersands and would replace each to be two consecutive ampersands. You'd end up with "Smith &&&& Weston", which would actually come out looking like "Smith && Weston" in a caption of a label or checkbox.

Besides, what kind of name would really have && in it anyway??!


A company with a stutter p-p-perhaps )
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Checkbox control propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Oct 07 6:03 PM
Quote:
Originally posted by Mike Spragg



A company with a stutter p-p-perhaps )


[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/7/2025 1:12:22 PM