Click here to Skip to main content
15,895,370 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Comparing "Similar" Strings Pin
PaleyX22-Apr-04 9:45
PaleyX22-Apr-04 9:45 
GeneralRe: Comparing "Similar" Strings Pin
RichardGrimmer26-Apr-04 4:08
RichardGrimmer26-Apr-04 4:08 
GeneralHiding menu Pin
tuningd22-Apr-04 4:29
tuningd22-Apr-04 4:29 
Generalcontrol box on form Pin
leezardd22-Apr-04 3:13
leezardd22-Apr-04 3:13 
GeneralRe: control box on form Pin
Ritesh Sompura22-Apr-04 4:33
Ritesh Sompura22-Apr-04 4:33 
GeneralWhy no error - Dim inside a loop Pin
wmccd22-Apr-04 2:58
wmccd22-Apr-04 2:58 
GeneralRe: Why no error - Dim inside a loop Pin
Ritesh Sompura22-Apr-04 4:40
Ritesh Sompura22-Apr-04 4:40 
GeneralRe: Why no error - Dim inside a loop Pin
Dave Kreskowiak22-Apr-04 7:14
mveDave Kreskowiak22-Apr-04 7:14 
Why would VB or VB.NET generate an error?

The only stipulation to using a variable is that it must be defined in the current scope or a parent scope. There are very few rules on WHERE you can use a Dim.

Dim used inside a loop just means that the variable that is defined can only be used inside that loop. Outside that loop, the variable doesn't exist. In your example, then code before the For statment and after the Next statement doesn't know anything about strHTML.



RageInTheMachine9532
GeneralApplying Style sheet(CSS) in Crystal report .net Pin
srieen22-Apr-04 1:42
srieen22-Apr-04 1:42 
GeneralStructures in VisualBasic. Pin
amardude22-Apr-04 0:45
amardude22-Apr-04 0:45 
GeneralRe: Structures in VisualBasic. Pin
Dave Kreskowiak22-Apr-04 7:23
mveDave Kreskowiak22-Apr-04 7:23 
GeneralRe: Structures in VisualBasic. Pin
amardude23-Apr-04 20:00
amardude23-Apr-04 20:00 
GeneralRe: Structures in VisualBasic. Pin
Dave Kreskowiak24-Apr-04 2:25
mveDave Kreskowiak24-Apr-04 2:25 
QuestionRetrieving a DataRow from a DataGrid??? Pin
Greg Eales21-Apr-04 23:32
Greg Eales21-Apr-04 23:32 
AnswerRe: Retrieving a DataRow from a DataGrid??? Pin
Ritesh Sompura22-Apr-04 4:46
Ritesh Sompura22-Apr-04 4:46 
Generalclient side error validation Pin
kieran540521-Apr-04 22:57
kieran540521-Apr-04 22:57 
GeneralWeb/Network communication Pin
ineedhelp21-Apr-04 21:21
ineedhelp21-Apr-04 21:21 
QuestionHow to use excel object OpenText - FieldInfo in vb.net Pin
BenLe21-Apr-04 20:30
BenLe21-Apr-04 20:30 
GeneralBroken Popup Menu Pin
zumichu21-Apr-04 15:18
zumichu21-Apr-04 15:18 
GeneralWhy my DatagridStyle is not working Pin
Muthu Annamalai21-Apr-04 11:26
Muthu Annamalai21-Apr-04 11:26 
GeneralRe: Why my DatagridStyle is not working Pin
Greg Eales21-Apr-04 23:40
Greg Eales21-Apr-04 23:40 
GeneralRe: Why my DatagridStyle is not working Pin
Muthu Annamalai22-Apr-04 3:15
Muthu Annamalai22-Apr-04 3:15 
GeneralMIDI player help Pin
Nadroj21-Apr-04 9:23
Nadroj21-Apr-04 9:23 
GeneralHandling MDI Toolbar events in MDI Child Pin
21-Apr-04 8:08
suss21-Apr-04 8:08 
Generalpassing session, datagrid Pin
partt21-Apr-04 6:41
partt21-Apr-04 6:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.