|
-
Oct 27th, 2000, 03:44 AM
#1
Thread Starter
Member
I'm trying to display a text field from an SQL database in a VB label, eveything works fine apart from the fact the '&' symbol shows up as a '_'. I'm sure this is something to do with '&' being a special character in VB so how do i actually get it to display ???
Regards
Ian (New Guy!)
-
Oct 27th, 2000, 03:50 AM
#2
Hyperactive Member
You need to put '&&' to show a single &.
If it is in a database field you will need to replace all &'s with &&.
regards
Chris
-
Oct 27th, 2000, 03:53 AM
#3
Thread Starter
Member
Thanks Chris, i figured it would be something silly like that but could'nt seem to find the answer ...
Ian.
-
Oct 27th, 2000, 05:35 AM
#4
The other option is to turn off the UseMnemonic property (make it false). That stops VB interpreting the & as an underline. A lot easier than search adn replace
- gaffa
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|