wellwet
asked on
No dim....As String?
Hi Experts,
One more small question:
No
Dim myString As String
only
Dim myString
???
One more small question:
No
Dim myString As String
only
Dim myString
???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Actually, the "Next i" notation is NOT required in "PURE VB" itself. That is really an artifact for VB's roots in BASIC. It is used mostly for internal 'documentation', and if you DO NOT supply the loop variable name in the Next statement, VB will automatically step the immediately preceding 'For Loop-Variable...' statement.
I always use
for i = 1 to 10
'do foo
next 'i
just to follow what i'm doing...
for i = 1 to 10
'do foo
next 'i
just to follow what i'm doing...
>> Where to find tutotial that explains those things? <<
Key Differences Between Visual Basic for Applications and VBScript
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dninvbs/html/keydifferencesbetweenvisualbasicforapplicationsvbscript.asp
INFO: Visual Basic for Applications Features Not in VBScript (Q190273)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q190273
INFO: VBScript Features Not in Visual Basic for Applications (Q190274)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q190274
Anthony
Key Differences Between Visual Basic for Applications and VBScript
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dninvbs/html/keydifferencesbetweenvisualbasicforapplicationsvbscript.asp
INFO: Visual Basic for Applications Features Not in VBScript (Q190273)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q190273
INFO: VBScript Features Not in Visual Basic for Applications (Q190274)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q190274
Anthony
ASKER
Thanks a lot for all the helps from experts here.....
ASKER
Thank you.
I also found For i = 1 to ....Next without Next i. It looks some different between pear VB and VBScript....Where to find tutotial that explains those things?