adspace


Is the Variant type slower than using other variable types?

Answer Posted / Shailesh Kumar Pandey

In Visual Basic, the performance difference between using Variant and specific data types like Integer or String is negligible. However, using Variants can lead to slower execution due to their dynamic nature and the additional checks they require at runtime. It's generally recommended to use specific data types when possible for better performance.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I force a file dialogue box to reread the currect disk?

1526


How do I tell when an application executed using the SHELL command is finished?

1636


Specify technical & functional architecture of your last 2 projects.

2146


Draw Sequence Modal of DAO and Explain?

2139


With in the form we want to check all the text box control are typed or not? How?

2071


How do I make the mouse cursor invisible/visible?

1440


How would you attach pictures in column headers of List View Control?

2165


How would you activate animation control?

2456