home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,051 of 10,840   
   J French to mynamehere@comcast.net   
   Re: Object Array Bug   
   07 May 06 09:41:55   
   
   From: erewhon@nowhere.uk   
      
   On Sat, 6 May 2006 10:51:45 -0700, "Steve Gerrard"   
    wrote:   
      
   >   
   >"J French"  wrote in message   
   >news:445c4fb6.431364077@news.btopenworld.com...   
   >> On Sat, 06 May 2006 00:27:16 GMT, "Mike Adams"    
   >> wrote:   
   >>   
   >>>I have my class which I want to make a two-dimensional array of.   
      
   >>>Public Class SpaceTile   
   >>>    Public Shared TileType As Integer   
   >>>    Public Shared Planet As Integer   
   >>>    Public Shared Occupied As Integer   
   >>>    Public Shared PosX As Integer   
   >>>    Public Shared PosY As Integer   
   >>>End Class   
      
   >>>Public STiles(100,100) As SpaceTile   
      
   >>>I initialize each with a loop and:   
   >>>STiles(x, y) = New SpaceTile   
      
   >> Set STiles(x, y) = New SpaceTile   
      
   >> I don't think this is your real code   
      
      
   >I think the Shared keyword, and the inline class definition, indicate a VB.Net   
   >app, where Set is not needed.   
      
   Ah, thanks - I did not spot that   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca