Strings in variable names?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Strings in variable names?

Hybrid View

  1. #1
    Join Date
    Sep 2011
    Posts
    1

    Question Strings in variable names?

    So say I have a string called name which maybe be equal to "Sam" or "Max" or maybe "Betty". I'm trying to make a variable that has a different name for each value of name.
    For example it might be Samitems or Maxitems or Bettyitems.

    Is there anyway way to insert a string into a variable name?

  2. #2
    Join Date
    Jun 1999
    Location
    SW Missouri
    Posts
    3,422

    Re: Strings in variable names?

    anyway way to insert a string into a variable name?
    You create variable names when you type them into the source code.

    If you want to use a String to access a value when the a program is executing, look at the Map class.
    Norm

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center