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

FFuryion12/10/2022
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?
CCyberrex12/10/2022
call what
FFuryion12/10/2022
the value from the textboxes
FFuryion12/10/2022
these skills can use 1 value from any 4 of these textboxes
FFuryion12/10/2022
I am trying to figure out if I can make the textbox reference use a variable, so I can cut 4 checks into 1
FFuryion12/10/2022
by simply swapping out the first half of the textbox name, but I don't know how to do it/if it's possible
FFuryion12/10/2022
maybe it would be simpler if I asked
FFuryion12/10/2022
how can I make this
FFuryion12/10/2022
"Strength" + Textbox.Text
FFuryion12/10/2022
work like this
FFuryion12/10/2022
StrengthTextbox.Text
CCyberrex12/10/2022
you cant do that without reflection
CCyberrex12/10/2022
just use each name normally
FFuryion12/10/2022
sad
FFuryion12/10/2022
well thanks anyway
CCyberrex12/10/2022
or put them in a collection
CCyberrex12/10/2022
depends really
AAccord12/11/2022
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.