Message 1 of 4
Define and Assign variables - VBA vs VB.Net
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Why do most of the VB.Net examples, define and assign a variable in a single line as it is being used in the program.
In VBA I found it easier to read the code with the variables defined at the top of the function or subroutine.
What do most of you do when defining variables ???
I find the VB.net lines below more difficult to read ..............
For Each acSSObj As SelectedObject In acSSet
Dim acEnt As Entity = acTrans.GetObject(acSSObj.ObjectId,OpenMode.ForWrite)