Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indirecte addressing to set a value to an variable using its name expressed as string #603

Open
vsfeedback opened this issue May 27, 2021 · 1 comment

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


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”:

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.

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@jaredpar jaredpar transferred this issue from dotnet/roslyn Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant