Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Possible to put symbols in a text field?

Status
Not open for further replies.

Tasuki

MIS
Jul 26, 2002
169
US
I was wondering if it is possible to place symbols in a text field. For example, I'm trying to keep track of the Longitude and Latitude on my form. I want to format my field so that users must input it in this way:

23(degree symbol here) 55.5'(minute symbol)

Where the degree symbol would be the little tiny raised circle, and the minute symbol would be the single quote symbol as shown.

If it's not possible, no problem, just wondering if I can do that.

T
 
Hi,

You can use any Ascii character in a text field. If the characters that you want are Ascii, then you'll need the Ascii character code (look on the net for a complete list) for the symbols you want.
Try here:
When the user has inputted the numeric values, you could then insert the symbols where you wish by using the chr() function.

e.g. msgbox chr(65) will display "A".

so if you want to add 'A' to the end of the text you'd do this:
Code:
mytxtbox = mytxtbox + chr(65)
Regards,

Darrylle
"Never argue with an idiot, he'll bring you down to his level - then beat you with experience." darrylles@totalise.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top