© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
17 replies
Furyion

❔ Is it possible to use a variable name in an object call?

Forgive me if I worded it wrong(that is probably part of the problem of why I can't find information on this), but I want to know if this is possible, and if so, how.

Example:
I have 4 textboxes: StrengthTextbox, DexterityTextbox, VitalityTextbox, FocusTextbox
I am making a calculator for skills in a game, and these skills can be based on any of these 4 attributes(using them in their equations)
Is there some kind of way where I can call these textboxes in a way like... attribute + Textbox.Text?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ How do I name an object after a variable in that object?
C#CC# / help
3y ago
❔ Is it possible to put a method into a variable and call the variable?
C#CC# / help
4y ago
❔ Is there a way to name an object with an input?
C#CC# / help
3y ago
Hi is it possible to allow parametersArray to contain an instance variable?
C#CC# / help
3y ago