@ symbol in visual basic

Danny Relic
02-06-2007, 10:43 AM
How would I write the '@' symbol in the visual basic code? It won't accept it as is.

Thanks

dilettante
02-06-2007, 11:01 AM
Where did you want to use the @ anyway? Obviously it works fine as a String value character. I can't imagine where else you'd want to use it.


Is this question about a C DLL and function decoration/mangling? Perhaps read:

http://www.codeproject.com/dll/XDllPt2.asp?df=100&forumid=34181&exp=0&select=1104361

http://support.microsoft.com/kb/188541

... and similar articles?

You might also be able to used the decorated function name in the Alias string of the Declare statement.

Danny Relic
02-06-2007, 11:04 AM
I'm trying to create a program that deals with email addresses. I'd like to just type in EmailAddress, instead of EmailAddress@yahoo.com

So I want to set txtemail.text = txtemail.text & "@yahoo.com"

Is that right?

simonle
02-06-2007, 11:57 AM
yes, although you don't use the "Set" keyword you just use


txtEmail.Text = txtEmail.Text & "@yahoo.com"


You proably knew that but just thought I'd make sure there was no misunderstanding

inov8iv
02-06-2007, 02:58 PM
I think what you are looking for is

mychar = Chr(64) 'Returns the @ symbol

Do a search for Ascii Codes to find out more symbols.

Danny Relic
02-06-2007, 03:24 PM
Problem solved.

Thanks alot guys!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum