Jump to content
  • Advertisement
Sign in to follow this  
Ksingh30

C# VS 2005

This topic is 4498 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi. ok im making a windows app. what I got is a text bar and this textbar will get in put in this form (q1,q2,q3, .....,qn) then i got this struct state, what i need to do is create n instance of this struct and each ones name has to correspont to the value in the testbar. for example i need to do state q1; so my questions is how can I take text from a textbar and use that text as a name for a struct instance.

Share this post


Link to post
Share on other sites
Advertisement
What are you trying to achieve ? I'm not sure I understand. You can't "name" instances at runtime in any way that makes sense.

Perhaps what you would want is a Dictionary<string, MyStruct> where the key is the content of the 'textbar'.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!