Solved

No dim....As String?

Posted on 2002-03-27
6
1,758 Views
Last Modified: 2012-08-13
Hi Experts,

One more small question:

No
Dim myString As String
only
Dim myString
???
0
Comment
Question by:wellwet
6 Comments
 
LVL 11

Accepted Solution

by:
thunderchicken earned 60 total points
Comment Utility
Yes

All dims are Variants
0
 

Author Comment

by:wellwet
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?
0
 
LVL 44

Expert Comment

by:Arthur_Wood
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.
0
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

by:thunderchicken
Comment Utility
I always use

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

just to follow what i'm doing...

0
 
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
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
 

Author Comment

by:wellwet
Comment Utility
Thanks a lot for all the helps from experts here.....
0

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