444,065 Members | 1,598 Online
Need help? Post your question and get tips & solutions from a community of 444,065 IT Pros & Developers. It's quick & easy.

# Newby question

 P: n/a Hi, How do I create an array of 2 to object pointers? i.e. dim a as object(2) Thanks, Boni Nov 21 '05 #1
4 Replies

 P: n/a "Boni" schrieb Hi, How do I create an array of 2 to object pointers? i.e. dim a as object(2) Thanks, Boni An array being able to point to two object? dim a(1) as object '1=upper bound a(0) = new object a(1) = new object Armin Nov 21 '05 #2

 P: n/a > dim a(1) as object '1=upper bound A side note, that line used to be written as... dim a(0 to 1) as object If you think of it that way, it is easier to remember that 1 is the upper bound and not the row count. -- Jonathan Allen "Armin Zingler" wrote in message news:uC****************@tk2msftngp13.phx.gbl... "Boni" schrieb Hi, How do I create an array of 2 to object pointers? i.e. dim a as object(2) Thanks, Boni An array being able to point to two object? dim a(1) as object '1=upper bound a(0) = new object a(1) = new object Armin Nov 21 '05 #3

 P: n/a "Jonathan Allen" schrieb: dim a(1) as object '1=upper bound A side note, that line used to be written as... dim a(0 to 1) as object If you think of it that way, it is easier to remember that 1 is the upper bound and not the row count. That's why VB 2005 will support the '... To ...' syntax for arrays again, however, the lower bound must be zero. -- M S Herfried K. Wagner M V P V B Nov 21 '05 #4

 P: n/a > That's why VB 2005 will support the '... To ...' syntax for arrays again, however, the lower bound must be zero. That sort of defeats the purpose of changing the syntax. But maybe in 2007 we will get control over lower bounds again. I know it is rarely used in good code, but in there are rare cases where it helps a lot. -- Jonathan Allen "Herfried K. Wagner [MVP]" wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... "Jonathan Allen" schrieb: dim a(1) as object '1=upper bound A side note, that line used to be written as... dim a(0 to 1) as object If you think of it that way, it is easier to remember that 1 is the upper bound and not the row count. That's why VB 2005 will support the '... To ...' syntax for arrays again, however, the lower bound must be zero. -- M S Herfried K. Wagner M V P V B Nov 21 '05 #5

### This discussion thread is closed

Replies have been disabled for this discussion.