Indirecte addressing to set a value to an variable using its name expressed as string
- Dominant language
- No language data
- Stars
- 328
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Indirecte-addressing-to-set-a-value-to-a/1410161)._
---
Example of the proposed function: say "TheNewFunction":
Dim Variable1 As Integer
Dim Variable2 As String = "Variable1"
TheNewFunction(Variable2) = 100 would set a value of 100 to the Variable1
Such a function was implemented in the old programming language DBaseIV and in my opinion was very useful to make a code much more compact. It was just: &Variable2. I was looking for such solution in the internet in relation to vb net, and have seen, that also many other people.
Thank You for your efforts to develope the VB Net. I like it.
Best regards,
Krystian
Example of the proposed function: say “TheNewFunction”:
```vb
Dim Variable1 As Integer
Dim Variable2 As String = “Variable1”
TheNewFunction(Variable2) = 100 would set a value of 100 to the Variable1
```
Such a function was implemented in the old programming language DBaseIV and in my opinion was very useful to make a code much more compact. It was just: &Variable2. I was looking for such solution in the internet in relation to vb net, and have seen, that also many other people.
Thank You for your efforts to develope the VB Net. I like it.
Best regards,
Krystian
---
### Original Comments
#### Feedback Bot on 4/29/2021, 00:46 AM:
Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We'll provide an update once the issue has been triaged by the product team.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.