No dim....As String?

Posted on 2002-03-27
Last Modified: 2012-08-13
Hi Experts,

One more small question:

Dim myString As String
Dim myString
Question by:wellwet
LVL 11

Accepted Solution

thunderchicken earned 60 total points
Comment Utility

All dims are Variants

Author Comment

Comment Utility
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?
LVL 44

Expert Comment

Comment Utility
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.
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

LVL 11

Expert Comment

Comment Utility
I always use

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

just to follow what i'm doing...

LVL 75

Expert Comment

by:Anthony Perkins
Comment Utility
>> Where to find tutotial that explains those things? <<
Key Differences Between Visual Basic for Applications and VBScript
INFO: Visual Basic for Applications Features Not in VBScript (Q190273);EN-US;q190273
INFO: VBScript Features Not in Visual Basic for Applications (Q190274);EN-US;q190274


Author Comment

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now