I'm not sure but try this ...
class Config { public: StartLotOption START_LOT_TYPE; //fill from inputs void fillFromInputs() { START_LOT_TYPE = ::START_LOT_TYPE; //Assign the global input to the local member with same name } };
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi there,
I would like to assign a value from an input variable to a member variable with the same name.
Here is the code:
This does not seem to work. Any ideas?
(unfortunately I probably wont be able to use different names).
Maybe there is some syntax like INPUTS.START_LOT_TYPE ?
Thank you very much