No dim....As String?

Hi Experts,

One more small question:

No
Dim myString As String
only
Dim myString
???
wellwetAsked:
Who is Participating?
 
thunderchickenConnect With a Mentor Commented:
Yes

All dims are Variants
0
 
wellwetAuthor Commented:
Hi thunderchicken,

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?
0
 
Arthur_WoodCommented:
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.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
thunderchickenCommented:
I always use

for i = 1 to 10
  'do foo
next 'i

just to follow what i'm doing...

0
 
Anthony PerkinsCommented:
>> 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
0
 
wellwetAuthor Commented:
Thanks a lot for all the helps from experts here.....
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.