Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Intermediate
Aug 21, 1997

Avoid Using Variants

Variants take more memory and it's slower to get/set their values than other data types. Option 1 will run slower than Option 2. Option 1:
 Dim iLoop As Variant 
For iLoop = 1 To 100 
Print iLoop 
Next ,
Option 2:
 Dim iLoop As Integer 
For iLoop = 1 To 100 
Print iLoop 
Next 
Paul D. Sheriff
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap