Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Can I use string and numeric variables in Visual Studio?

I'm just exploring Visual Studio 2012 with a view to creating programs similar to those that can be made in the various BASIC languages. I can't find any references to adding variables to a project. Are they available, and if so, how do I add them to my project?

2 Answers

Relevance
  • 7 years ago

    Yes you may...

    In Visual Basic, you use Dim to declare a variable

    e.g.

    Dim strword As String '---(string variable)

    Dim intnum As Integer '---(numeric variable)

    In C#:

    int intnum;

    string strword;

    Source(s): Systems Analyst / Programmer VB6, VB.Net
  • 7 years ago

    Thanks Eddie. I'll try that. I should have realized I guess, that it wasn't a language, given that VB is one. Now, all I need to do is find how to get into the VB environment from VS.

Still have questions? Get your answers by asking now.