557 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owls only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
This page describes how to
You can click here to download the file for this page.
You can click here to download a file containing the sample code.
You can
Rather than using a separate line for each variable, you can declare multiple variables in the same line:
You can write a comma-separated list of variable names and data types in one Dim statement.
You may find this style of declaring variables convenient when you have a group of related variables. Take care to always state the data type for each variable that you declare. The code shown below falls into the trap of adding the data type only at the end of the line:
This code looks as though it declares three variables with the Double data type, but it doesn't! Only the last variable, BMI, has the Double data type. The other two variables will automatically have the Variant data type assigned to them.
You can learn more about the Variant data type
To practise
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2023. All Rights Reserved.