how to escape the & sign in a label caption (like / in java language)

in java, there is escape character /, is there any similar function in Delphi 7?
I want to escape the '&' sign in label caption. (I want to really display the '&' sign in a label caption)
0
Tong
8/13/2008 4:21:53 AM
embarcadero.delphi.general 4258 articles. 0 followers. Follow

3 Replies
955 Views

Similar Articles

[PageSpeed] 50
Get it on Google Play
Get it on Apple App Store

> I want to escape the '&' sign in label caption. (I want to really display the 
> '&' sign in a label caption)

Use 2 ampersands ...
caption := "copy && paste";
0
Angus
8/13/2008 4:33:22 AM
Angus Johnson wrote:

>>I want to escape the '&' sign in label caption. (I want to really display the 
>>'&' sign in a label caption)
> 
> Use 2 ampersands ...
> caption := "copy && paste";

Or simply set ShowAccelChar to False. If you don't want an underscore 
shortcut anywhere in that label, that is.

Kjell
-- 
---------------------------------------------------------------------------
Kjell Rilbe
Home: +46 8 7610734
Cell: +46 733 442464
---------------------------------------------------------------------------
"If there's a price for bein' me, that's one I'll have to pay"
Aaron Tippin
---------------------------------------------------------------------------
0
Kjell
8/13/2008 6:34:34 AM
thx!!
0
Tong
8/14/2008 4:12:46 AM
Reply:

Similar Artilces:

Language like Delphi 6 or Delphi 7
Hi I like to make application what will connect to web services(SOAP or REST) and send data to server via HTTPS. I have previous experience with Delphi 6 and Delphi 7.I know that language in Delphi 2009 is changed. Which is the last Delhi(Delphi 2005, Delphi 2009) what have the languages like Delphi 6 or Delphi 7. Additional ,which edition(home,professional ,architect) I should use if i like to achieve my task? Pero perov wrote: > I know that language in Delphi 2009 is changed. That is not true. > Which is the last Delhi(Delphi 2005, Delphi 2009) what > have the lan...

Delphi & Java JNI
Anyone knows of a free and updated JNI classes/wrapper for Delphi? Fawzib Rojas wrote: > Anyone knows of a free and updated JNI classes/wrapper for Delphi? Maybe JNA is a better choice: Dynamically access native libraries from Java without JNI. https://jna.dev.java.net/ For basic Delphi / Java interoperation, JNA seems to be quite easy to use. See also the overview documentation which contains many examples: https://jna.dev.java.net/javadoc/overview-summary.html Best Regards, -- Michael Justin SCJP, SCJA betasoft - Software for Delphi™ and for the Java™ platform h...

Hyperlink in Label & " Sign
Hi Guy's, I have to questions:1. In my aspx.vb file I use the following code line:lbl_AgentContact.Text = "Please use our Contact Form to contact us"I would like to make a hyperlink for the sentence "contact us", but I can't figure out how.2. In mm menu XML file I use the following code line:<submenu text="Pump 1' " url="/pump1.aspx"></submenu> The ' behind the 1 should be a " but when I use " the code doesn't work anymore. What I must do in order to get 1" working?  Hi benjaminbkk, Use t...

EVarriantTypeCast error delphi language general
I uploaded above subject to the attachment space.with test.zip. If somebody coul have a look at the test i prepared. Since overall QuickReport does work, i could not guess what is going on here. Thanks in advance to have a look at the attached test i made and hopefully somebody can find the issue. Regards. Lieven Hi xxx, If nothing works, it could mean that somewhere a mistake was made.lol. For the uploaded to public attachment test.zip solution below. Regards Lieven {Sql code} QryPtDat1.Sql.Clear; QryPtDat1.Sql.Add('SELECT D."Names", ...

Delphi 7 & SOAP & WSDL Import & SSRS
Hi I am struggling with a web service I consumed (ReportService2010.asmx). I am not sure if I consumed it with the in-corrections options or if I am not setting THTTPRIO settings correctly or both ! I am really new to webservice & SOAP. I update the Delphi SOAP Runtime and Importer Update (http://cc.embarcadero.com/Item/24535). Thank you Jean-Marie Babet. I imported the WSDL with the following options [wfDebug,wfUnwindLiteralParameters,wfUseSerializerClassForAttrs]. I had to make a few changes to the pas file to get it to compile. I changed {code} SensitivityEnum = (True, Fals...

What is the Delphi equivalent to the Java "&=" operator?
What is the Delphi equivalent to the Java "&=" operator? Speaking of Delphi, now that the Greek govt. is broke, will Embarcadero consider licensing the actual site? Did John Kaster ever "vandalize" that spot with one of the Borland bumper stickers? > {quote:title=Clay Shannon wrote:}{quote} > What is the Delphi equivalent to the Java "&=" operator? 'and'. {code} // Java i &= 0xFFFF; // Delphi i := i and $FFFF; {code} <Clay Shannon> wrote in message news:408722@forums.embarcadero.com... > What is the Del...

How to display '&' in a Label.Caption? [Edit]
MyString"='Johnson & Johnson' //My string has an ampersand MyLabel.Caption:=MyString; //The caption looks like: Johnson _ Johnson and that is not what I want. How can I make the caption correctly display "Johnson & Johnson"? Thank you, Dan After some playing around, I see that I can insert another ampersand like this: 'Johnson && Johnson' to get the desired results, however, I'd be happier if I could remove the auto keyboard shortcut for the ampersand rather than check every incoming string for the '&' character. Is ...

List & Label & PB
Hi all, Has somebody ever used "List & Label" as reporting too with PB ? If so, what do you think about it ? TIA Dan ...

&& In Generated Javascript Becomes &amp;&amp;
I am trying to write client side scripts in c#, asp.net V 1.4. The && operator is generated in the javascript as &amp;amp;, which causes errors.  How can I avoid this? (Code below)  Thanks in advance.   script = "<script language='javascript' type='text/javascript'>\n"; script += "if (Form1." + tbxA.ClientID + ".value == '' && "; script += "Form1." + tbxB.ClientID + ".value == '') {"; script += "Form1." + cbxC.ClientID + ".Checked = false;}"; ...

How Can I Delphi 2009 & Indy 10 TCPServer & TCPClient & Stream ? [Edit]
How can i send simple XML data from TCPClient to TCPServer and opposite. The Indy Version is the Delphi 2009 shipped version (v10). I have some XML data (you can think it as TStrings). I Can not convert the xml string to stream and send it to server then can't convert from stream sent to server to TStrings (or string) again in server (or client) side... Thanks for code snippets & answers... Edited by: Huseyin Melih Kara on Apr 27, 2009 7:59 AM Edited by: Huseyin Melih Kara on Apr 28, 2009 5:24 AM > {quote:title=Huseyin Melih Kara wrote:}{quote} > How can i send simp...

superreview requested: [Bug 302359] Options dialog polish -- correct labels and descriptions : [Attachment 190731] Long but simple: 1) Hook up label & description, 2) Fix whitespace & description rul
Aaron Leventhal <aaronleventhal@moonset.net> has asked neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@myrealbox.com> for superreview: Bug 302359: Options dialog polish -- correct labels and descriptions https://bugzilla.mozilla.org/show_bug.cgi?id=302359 Attachment 190731: Long but simple: 1) Hook up label & description, 2) Fix whitespace & description rules in a11y 3) Fix single selection in a11y, 4) make selection match focus for pref icons (spoken better) https://bugzilla.mozilla.org/attachment.cgi?id=190731&action=edit ...

superreview cancelled: [Bug 302359] Options dialog polish -- correct labels and descriptions : [Attachment 190731] Long but simple: 1) Hook up label & description, 2) Fix whitespace & description rul
Aaron Leventhal <aaronleventhal@moonset.net> has cancelled Aaron Leventhal <aaronleventhal@moonset.net>'s request for superreview: Bug 302359: Options dialog polish -- correct labels and descriptions https://bugzilla.mozilla.org/show_bug.cgi?id=302359 Attachment 190731: Long but simple: 1) Hook up label & description, 2) Fix whitespace & description rules in a11y 3) Fix single selection in a11y, 4) make selection match focus for pref icons (spoken better) https://bugzilla.mozilla.org/attachment.cgi?id=190731&action=edit ------- Additional Comments from A...

What is this for? "<label style=""display:none;"" for=""" & cboFieldType.ClientID.ToString & """>Type</label>"
I'm digging through the code of DNN and I found many ocurrences of this type of code: lblFieldType.Text = "<label style=""display:none;"" for=""" & cboFieldType.ClientID.ToString & """>Type</label>" What is that code for? The label is never displayed and I could not figure out what DDN uses it for. thank you This is for ADA compliance. The guidelines require that form elements have an associated label. This helps the text readers out with identifying the different parts of the form. BruceDynamic...

How to do it like: http://www.bookpool.com/ss/1?qs=asp.net+2.0&sb=d&Go.x=15&Go.y=10&Go=Go
Can someone tell me how to do it like this page? http://www.bookpool.com/ss/1?qs=asp.net+2.0&sb=d&Go.x=15&Go.y=10&Go=Go I want to create a page similare to it. What server control shoul I select? Any sample code? You can look at some custom ISAPI stuff or look at a custom 404 page... But why? What is the big deal with not using a page name? It could be Repeater, DataList, DataGrid or GridView.  If you want the built-in Paging feature, then go with either DataGrid or GridView (both in template mode to offer more flexibility in design).  If you ca...

Web resources about - how to escape the & sign in a label caption (like / in java language) - embarcadero.delphi.general

Language - Wikipedia, the free encyclopedia
Language is the human capacity for acquiring and using complex systems of communication , and a language is any specific example of such a system. ...

The Eero Programming Language
Interesting new programming language from Andy Arvanitis: Eero is a fully binary- and header-compatible dialect of Objective-C, implemented ...

Respectful language should start with our politicians
The Briggs, Dutton, Gayle incidents show us yet again why cultural change is needed to improve how Australian women are treated.

App used to teach foreign languages
The Federal Government trials an app program for preschoolers to help teach one of five languages which includes Mandarin, Japanese, Indonesian, ...

Laurentian University professor removed for asking students to agree to profane language
... Sudbury, Ont. says he has been stopped from teaching a first-year psychology class after asking students to sign off on his use of vulgar language. ...

A preview of upcoming Chinese-language films of 2016
A preview of upcoming Chinese-language films of 2016 CCTV Gong Li plays the White Boned Demon who can transform into different disguises and ...

Day care and language change
by Doctor Science This is a re-blog of something I submitted to Language Log back in early November, about some historical references to new ...

"In the Sinhala language,
"Sometimes it is used as ala vagaa kireema (අල වගා කිරීම)—'Planting Potatoes.' People/Profiles who [do] trolling often are called 'Potato Planters'— ...

Speaking their language
Speaking their language by digby The success of the conservative movement's message discipline is never better illustrated than when liberals ...

Learn any of these 16 programming languages and you'll always have a job
... capitalist Marc Andreessen famously declared. Someone has to write that software. Why not you? There are thousands of programming languages, ...

Resources last updated: 1/14/2016 5:37:45 AM