Wish Dim if a for next loop

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Hi all

right now we do:

Code: Copy
Dim s as String = "Its a string" '--- love how we can do this

Dim x As Int
For x = 0 To 100
Next

can we get
Code: Copy
For x as Int = 0 To 100
Next

or is there a way to do this and I am missing it?
 
This is true. I am just so use to Dim'ing everything.

I wonder if there is a performance hit at all if you do not Dim it?
 
how about using exit for? i add "exit for" return back error message.
Code: Copy
For k = 0 To Buffer.Length - 1
If int_hex>25 Then
full_hex(int_hex)=msg
Else
int_hex=0
Exit For
End If
Next

error message:

Parsing code. Error
Error parsing program.
Error description: Missing Keyword: next
Occurred on line: 88
End If
 
Back
Top