Link to home
Start Free TrialLog in
Avatar of wellwet
wellwet

asked on

No dim....As String?

Hi Experts,

One more small question:

No
Dim myString As String
only
Dim myString
???
ASKER CERTIFIED SOLUTION
Avatar of thunderchicken
thunderchicken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wellwet
wellwet

ASKER

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?
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...

Avatar of Anthony Perkins
>> 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
Avatar of wellwet

ASKER

Thanks a lot for all the helps from experts here.....