Opened 10 years ago
Closed 10 years ago
#2209 closed feature request (done)
Implement an string-based access to the VariableStore for Scripts
Reported by: | pfleck | Owned by: | abeham |
---|---|---|---|
Priority: | medium | Milestone: | HeuristicLab 3.3.10 |
Component: | Scripting | Version: | 3.3.9 |
Keywords: | Cc: |
Description
Currently there is no mechanism to access the VariableStore via strings at runtime.
vars.MyVariable = 42; // equivalent to vars["MyVariable"] = 42;
This would be helpful for accessing variables based on a runtime index. For Example
for (int i = 0; i < 10; i++) vars["MyVar" + i] = ...
Change History (5)
comment:1 Changed 10 years ago by pfleck
- Status changed from new to accepted
comment:2 Changed 10 years ago by pfleck
comment:3 Changed 10 years ago by pfleck
- Owner changed from pfleck to abeham
- Status changed from accepted to reviewing
comment:4 Changed 10 years ago by abeham
- Status changed from reviewing to readytorelease
looks good and the feature is documented in the script
comment:5 Changed 10 years ago by abeham
- Resolution set to done
- Status changed from readytorelease to closed
r11154: merged to stable
Note: See
TracTickets for help on using
tickets.
r11135