On Dec 11, 2006, at 4:35 AM, CV wrote:


On Dec 10, 2006, at 8:41 PM, Norman Palardy wrote:

How about

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

 for each item in items()
    ...
 next

What type should "item" be ?

It would be a variant, I think, as in old versions of VisualBasic. Currently, VisualBasic uses a For...Each construct similar to Rb's, requiring dimensioning of the control variable prior to or within the For...Each statement, and most collection types support For...Each(ie., arrays, collections, hashtables).

Except that

  dim items() as variant

  for each item as integer in items()
  next

and

  dim items() as variant

  for each item as string in items()
  next

 may also be legal

Be explicit & type the extra 10 or so characters :)

_______________________________________________
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