❔ 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?
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?