Author: Edward Seid
Date: 09:35:59 09/29/03
Go up one level in this thread
On September 29, 2003 at 12:15:04, Rafael Andrist wrote: >On September 29, 2003 at 12:12:15, Edward Seid wrote: > >>On September 29, 2003 at 12:03:20, Rafael Andrist wrote: >> >>>On September 29, 2003 at 11:49:20, Edward Seid wrote: >>> >>>> Dim index, width As Integer >>> >>>At least in older VB versions, "index" is now of data type Variant, not Integer. >>>Not sure how VB.NET handles this, but I doubt they fixed this flaw. >>> >>>Dim index As Integer, width as Integer >>>would be necessary in older VB versions, otherwise you need more space and more >>>time for the conversion. >> >>I'm using 'index' as a variable name for a Loop counter. It seems to work fine >>as I have it written and 'index' doesn't seem to be a reserved word in VB.NET. > >It has nothing to do with the word "index" or a reserved word. > >Dim index, width As Integer >== >Dim index As Variant, width As Integer > >For all VB versions I know, though I did/could not check it with VB.NET I found this in the MSDN Library, which addresses this issue. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vacondeclarationsyntax.asp It looks like things have changed from VB6 to VB.NET and that my declaration is correct in VB.NET.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.