gettingstarted
[Top] [All Lists]

Re: Escaping the Ampersand (&)

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Escaping the Ampersand (&)
From: Aaron Ballman <aaron at realsoftware dot com>
Date: Thu, 24 Feb 2005 12:10:17 -0600
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <421E17EF dot 3030901 at kotisprop dot com>

On Feb 24, 2005, at 12:07 PM, Adam Voigt wrote:

I have a StaticText field that refuses to display the ampersand character (&). I'm sure it's just a reserved character that signifies something to RB, but I'm not sure how to escape it. I tried putting a backslash (\) before it, but that didn't seem to help. Anyone know how to make this appear? Here's what I have:

Field1.Text = "Town & Country"

Double the & up, like this:

Field1.Text = "Town && Country"

The & is used to denote a keyboard mnemonic on Windows and Linux, so it puts an underline under the next character in the string when being displayed.

HTH!

~Aaron
--
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>