|
-
May 21st, 2019, 11:19 AM
#16
Thread Starter
Fanatic Member
Re: Automatic "pretty listing" (reformatting) of code in VB6
 Originally Posted by passel
Since VB initializes the simple types to their default, i.e. 0.0 in the case of doubles, the additional code added to the line just seems redundant and superfluous.
Also, unless the compiler is being overridden somehow, the above code should create two variants and a double. And because of the initialization, the x and y variants would contain integers because of the initialization.
Well of course the default is 0, this (particular option) gives you a placement to change it without having to type colon equals :i=7, which requires a contorted shift key to be held on various keyboards that may have different key positions.
Yes there is a sort of override for that, but not implemented in this version. It is indeed better to dimension single variables one line at a time to avoid accidents, so that is still recommended for current use.
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
|