calling a dynamic variable within a class function
Posted: Fri May 06, 2022 2:22 pm
Hi, this is my first post here so I'm sorry if I screw up any rules/formatting,
I'm also sorry if the title is unclear as to what I'm asking, but even I don't know what to call it,
What I generally want to know is if there is a way to have the variables in a function of a class be changed by the input, for example having something along the lines of info.update (Info, name of the variable).
Just to be able to not have to have a function to update each individual variable.
Thank you for taking the time to read about my issue.
I'm also sorry if the title is unclear as to what I'm asking, but even I don't know what to call it,
What I generally want to know is if there is a way to have the variables in a function of a class be changed by the input, for example having something along the lines of info.update (Info, name of the variable).
Just to be able to not have to have a function to update each individual variable.
Thank you for taking the time to read about my issue.