-
VB.NET Simplifies Common Tasks, point 9 incorrect!
sorry about the empty message
In any case, the Join() function the author uses in VB.NET also works just
fine in vb6. Observe the following code, which works just fine.
Private Sub showStringArray(arr() As String)
MsgBox Join(arr, vbCrLf)
End Sub
While the CREATION of the array using For Each...Next provides a somewhat
convenient pointer to the collection of selected items, it doesn't really
make the code any simpler. The author's VB classic code is poorlly written
and unneccesarily complex for this function as well.
The continual Redim Preserve using a counter in the loop is unecessary, for
instance, as VB's listbox provides a value for the number of selected items
(list1.selcount).
So I would say that VB.NET does not simplify this task at all, really.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks