On Dec 09, 2006, at 1:55 PM, Lars Jensen wrote:

Consider this oft-repeated pattern:

 dim items() as string = Array(...)
 for each item as string in items()
    ...
 next

Why is "as string" necessary in the "for" statement? I'd rather just say:

 dim items() as string = Array(...)
 for each item in items()
    ...
 next

How about

 dim items() as variant
 .... fill the array somehow ....

 for each item in items()
    ...
 next

What type should "item" be ?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to