Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
display ampersand in VB
Name: Rich Date: October 1, 2003 at 19:29:12 Pacific OS: 2000 pro CPU/Ram: p3 500
Comment:
I know that an ampersand displays an underscore for keyboard access in labels and text boxes in VB. I'm wanting to display the & symbol in a label such as "tow & garage". Is it possible to do this, and how? Thanks - Rich
Name: SN Date: October 1, 2003 at 21:25:23 Pacific
Reply:
I don't know VB, but for many languages, when you want the program/compiler to disregard the usual meaning of a character and just treat it as an ascii char, you can escape it with a backslash.
print "tow \& garage";
This may or may not hold true for VB. I believe you may also be able to do it by printing out the value of chr(38) (38 is the ascii value of the ampersand sign.)
print "tow " print chr(38) print " garage"
Good luck, SN
0
Response Number 2
Name: egkenny Date: October 1, 2003 at 21:28:16 Pacific
Reply:
"tow && garage"
0
Response Number 3
Name: SN Date: October 1, 2003 at 21:30:34 Pacific
Reply:
Thanks kenny-There's been such a lack of posts I know anything about I've been forced to just answer ones I can only guess at:-) Of course, I could just learn more, but that would involve work... -SN
0
Response Number 4
Name: Rich Date: October 2, 2003 at 21:21:33 Pacific
Summary: Basically I want to be able to select random names from a file in VB and display them in a list box. I know how to set up the file system and get it to write names to the list box etc, but I do not kn...
Summary: Sir, I am new student in VB. And i want to use CRviewer in my database programe. so if u have a time then please tell me all about CRviewer. How i can use it with my database. i want to display a...
Summary: You need to buffer the screen before you display it. I have no idea how one would go about doing that in VB but its quite easy in C++...Try going to planetsourcecode.com and search for "buffer" or som...