borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2011 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Share .net book for FREE!!!)Next Topic (Start Learning .Net) New Topic New Poll Post Reply
AndreaVB Forum : ASP.Net : prefixing a variable
Poster Message
ali0482
Level: Trainee

Registered: 17-08-2010
Posts: 1

Ads by Lake Quincy Media
icon prefixing a variable

What do the symbols $ @ and % mean when prefixing a variable?

____________________________
Softwar
e
Projects

Source
Code Library


17-08-2010 at 06:45 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 1036
icon Re: prefixing a variable

Ive only seen these as post-fix to the variable name:

$ means string
% means integer
@ has no meaning in Vb, but means literal in c# (for example, c# doesn't like "c:\myfile.txt" and you would have to write "c:\\myfile.txt", unless you prefxi with @ as in @"c:\myfile.txt")

they're only rarely used and are a throwback to VBversion 1 and the original BASIC language.

____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

23-08-2010 at 06:50 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ASP.Net : prefixing a variable
Previous Topic (Share .net book for FREE!!!)Next Topic (Start Learning .Net) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2011 Andrea Tincaniborder