|
-
Nov 28th, 2002, 05:54 AM
#7
PowerPoster
Re: Well ...
Originally posted by honeybee
In VB you have to explicitly declare the data type of each variable, whether you use one Dim or separate Dim statements for them. If you don't declare it explicitly, it's cast as a Variant.
.
Thankfully, this counterintuitive structure has been fixed in dot net, and Dim the way Dongaman has it written behaves exactly as you would intuitively think (that is if you werent aware ...). I think everyone who has ever used VB has probably made this mistake ... I know I went quite some time without realizing ...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|