-
WSJayden
AskWoody LoungerSeptember 22, 2004 at 9:23 am in reply to: Changed coding standards for VB.NET (Office97 et a #879926I have found that making sure all my VB6 arrays are 0 based (ie. dim a_strThing(0 to 3) / dim a_strThing(3) … rather than dim a_strThing(1 to 4)). Because VB.NET doesn’t support anything but 0 based arrays, I found if you used anything but this, your program logic could go a bit haywire in places. This is just one little thing amongs the multitude of things that you can do to make life easier, but it is one thing that I found sped up “converting” code.
Incidentally, I “converted” a medium sized application from VB6 to .NET and I was surprised at how little I needed to initially change to get it working (although I have since changed a great deal to ‘optimise’ it for .NET).
J
-
WSJayden
AskWoody LoungerSeptember 22, 2004 at 9:11 am in reply to: Codified Coding Standards (VB.NET/C#.NET (1.0/1.1/2.0)) #879921Don’t forget that Microsoft are the people that also in most of their examples prefix ALL variables with ‘my’ (myDataAdapter, myString, myObject).
I ask you is that a good example to be setting? and more to the point? Is that someone we should be listening to for advice about nomenclature?
-
WSJayden
AskWoody LoungerSeptember 22, 2004 at 9:11 am in reply to: Codified Coding Standards (VB.NET/C#.NET (1.0/1.1/2.0)) #879922Don’t forget that Microsoft are the people that also in most of their examples prefix ALL variables with ‘my’ (myDataAdapter, myString, myObject).
I ask you is that a good example to be setting? and more to the point? Is that someone we should be listening to for advice about nomenclature?
-
WSJayden
AskWoody LoungerSeptember 22, 2004 at 9:08 am in reply to: Codified Coding Standards (VB.NET/C#.NET (1.0/1.1/2.0)) #879920To follow on from my last post, but on a slightly different tangent (hence the seperate post), I am using Hungarian notation and we have enshrined that in coding standards at my workplace. However, we have opted to use standard hungarian notation for ‘common’ variables and controls, ie such as string, integer, long, byte, textbox, combobox etc. We have drawn a line in the sand though, and only use the Prefix of ‘obj’ for the plethora of other not-so-common variables and objects, ie. DataReaders, DataAdapters etc.
The rationale behind this is that the not-so-common occurence of these objects means that we can use the description of the object type as part of the name, with an adjective to describe seperate functions of the same variable within a procedure…
objDataAdapter
objDataReaderor
objDataReaderPatient
objDataReaderEpisodeThe only dilemma that I have had is to work out how to differentiate a truely OBJECT data type … if in fact I need to?
What this means is that the hungarian notation ‘dictionary’ if you like is small enough to not have to worry about continually referencing obscure data types or objects in documentation, which in .net, due to it’s rich object model, could be onerous, but to focus on making the code readable and understandable at a glance.
-
WSJayden
AskWoody LoungerSeptember 22, 2004 at 9:08 am in reply to: Codified Coding Standards (VB.NET/C#.NET (1.0/1.1/2.0)) #879919To follow on from my last post, but on a slightly different tangent (hence the seperate post), I am using Hungarian notation and we have enshrined that in coding standards at my workplace. However, we have opted to use standard hungarian notation for ‘common’ variables and controls, ie such as string, integer, long, byte, textbox, combobox etc. We have drawn a line in the sand though, and only use the Prefix of ‘obj’ for the plethora of other not-so-common variables and objects, ie. DataReaders, DataAdapters etc.
The rationale behind this is that the not-so-common occurence of these objects means that we can use the description of the object type as part of the name, with an adjective to describe seperate functions of the same variable within a procedure…
objDataAdapter
objDataReaderor
objDataReaderPatient
objDataReaderEpisodeThe only dilemma that I have had is to work out how to differentiate a truely OBJECT data type … if in fact I need to?
What this means is that the hungarian notation ‘dictionary’ if you like is small enough to not have to worry about continually referencing obscure data types or objects in documentation, which in .net, due to it’s rich object model, could be onerous, but to focus on making the code readable and understandable at a glance.
-
WSJayden
AskWoody LoungerSeptember 22, 2004 at 9:02 am in reply to: Codified Coding Standards (VB.NET/C#.NET (1.0/1.1/2.0)) #879917I have a book (Microsoft Press) on Coding Standards for .NET at work, I will post it’s details tomorrow. I found it a good foundation and discussion more than anything, and it helped me put some things straight in my own mind.
I guess the largest departure (or rather recommended departure) from VB6 to .NET with regard to coding standards I have struggled to work out the ‘right’ answer for is that of notation of variables. Interestingly the Microsoft Press book endorses Hungarian notation for .NET and briefly discusses it.
After much thought, some discussion with fellow developers and some reading, I have come to the conclusion that using Hungarian notation is a better idea than not. Basically, when I am reading through code (note: I do mean reading and not ‘stepping’) i don’t want to have to hover over ever variable to work out what it’s data type is…this is slow and counter-intuative. VB6 has not much of a different feature where we could have done away with Hungarian notation on the same grounds, simply by pressing SHIFT-F2 and SHIFT-ALT-F2 … but we didn’t do this and do away with Hungarian notation… ? Why … because it doesn’t help with ‘reading’ code.
At the end of the day, a standard is a standard. I guess that there are good and bad things bout using or not using Hungarian notation. To me, the MOST important issue is that your company or team has a standard , it is well defined, everyone sticks to it (unless there is a good reason not too) and the standard is DOCUMENTED.
-
WSJayden
AskWoody LoungerSeptember 22, 2004 at 9:02 am in reply to: Codified Coding Standards (VB.NET/C#.NET (1.0/1.1/2.0)) #879918I have a book (Microsoft Press) on Coding Standards for .NET at work, I will post it’s details tomorrow. I found it a good foundation and discussion more than anything, and it helped me put some things straight in my own mind.
I guess the largest departure (or rather recommended departure) from VB6 to .NET with regard to coding standards I have struggled to work out the ‘right’ answer for is that of notation of variables. Interestingly the Microsoft Press book endorses Hungarian notation for .NET and briefly discusses it.
After much thought, some discussion with fellow developers and some reading, I have come to the conclusion that using Hungarian notation is a better idea than not. Basically, when I am reading through code (note: I do mean reading and not ‘stepping’) i don’t want to have to hover over ever variable to work out what it’s data type is…this is slow and counter-intuative. VB6 has not much of a different feature where we could have done away with Hungarian notation on the same grounds, simply by pressing SHIFT-F2 and SHIFT-ALT-F2 … but we didn’t do this and do away with Hungarian notation… ? Why … because it doesn’t help with ‘reading’ code.
At the end of the day, a standard is a standard. I guess that there are good and bad things bout using or not using Hungarian notation. To me, the MOST important issue is that your company or team has a standard , it is well defined, everyone sticks to it (unless there is a good reason not too) and the standard is DOCUMENTED.
-
WSJayden
AskWoody LoungerThe tables in an MDE database are viewable. You may have to hold down the shift key as you open the database file?
Only forms, reports, modules etc can’t be accessed in an MDE (compiled) MS Access database.
Hope this helps.
-
WSJayden
AskWoody LoungerThe tables in an MDE database are viewable. You may have to hold down the shift key as you open the database file?
Only forms, reports, modules etc can’t be accessed in an MDE (compiled) MS Access database.
Hope this helps.
-
WSJayden
AskWoody LoungerI would guess that the instructions you are referring to mean to add your OWN property to the form.
Public Property IsInitiliasing …
Or something similar. Even just a module level variable would probably do the trick.
Regards
-
WSJayden
AskWoody LoungerI would guess that the instructions you are referring to mean to add your OWN property to the form.
Public Property IsInitiliasing …
Or something similar. Even just a module level variable would probably do the trick.
Regards
-
WSJayden
AskWoody LoungerAugust 4, 2003 at 8:55 am in reply to: Data Adapter Configuration Wizard & SQL Server SPs (VB.Net 2002 & SQL Server 2000) #699426Not that I can think of – but I’m not an expert.
For interests sake, I have discovered if you make the account a System Admin, then the wizard functions fine. The wizard is likely using some stored procedure or something somewhere in a system database i would think…don’t know what for though, or why it wouldn’t need to use said stored procedure for a SELECT but would for an UPDATE, INSERT or DELETE?
I will just give that user ‘Sys Admin’ rights while I am developing, although not ‘best practice’ it will save me a lot of headaches, I will then put them back to a standard user once I have finished development.
Cheers
-
WSJayden
AskWoody LoungerThe ‘files’ that SQL Server (MSDE) uses, should probably be installed in C:Programe FilesMicrosoft SQL ServerMSSQLData. You do not want to play around with these files unless you really know what you are doing I would guess.
-
WSJayden
AskWoody LoungerYou can use a number of things to ‘view’ sql server tables.
The easiest for you is to probably use MS Access. Create a new MS Access Project (.adp) file. You will need to enter the appropriate server name (the name of your computer) and the like, including the SQL Server Database Name. Once you have done this, you will be able to view the SQL Server objects in the MS Access Project (.adp) file.
You could also use Enterprise Manager, or if you wanted to get really tricking, search for a command line tool, called osql.exe, you can type in the commands manually using this (ie. select * from tblName).
I think MS Access would be your best bet for basic functionality.
-
WSJayden
AskWoody LoungerMarch 11, 2003 at 3:37 am in reply to: VB6 to Acc 2.0 (Jet 2) Database using ADO (Access 2 / VB6) #660213Hi Charlotte,
Yes , other people are in the database, using it when I am also trying to access it with ADO. Those users are using the Access 2 front end application.
What alternative method of accessing it via VB6 would be better do you think? Using DAO instead?
J
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Third party add ins reminder
by
Susan Bradley
24 minutes ago -
OTF, which backs Tor, Let’s Encrypt and more, sues to save its funding
by
Nibbled To Death By Ducks
4 hours, 2 minutes ago -
El Canal Maritimo (Awaiting moderation)
by
lourdespinson24
4 hours, 58 minutes ago -
Select multiple emails and they all open up! (Awaiting moderation)
by
CeeJay
10 hours, 21 minutes ago -
How to remove an update preview (Awaiting moderation)
by
Gunny
12 hours, 11 minutes ago -
Updating Windows 10 to Windows 11: 23H2 or 24H2?
by
Still Anonymous
14 hours, 45 minutes ago -
How can I update “Explorer Patcher”
by
WSplanckster
16 hours, 39 minutes ago -
Check out the home page for Signal
by
CAS
14 hours, 31 minutes ago -
Windows 11 and Trial version of MS Office
by
Tex265
13 hours, 34 minutes ago -
Windows 11 Insider Preview build 26120.3585 (24H2) released to BETA
by
joep517
21 hours, 2 minutes ago -
Windows 11 Insider Preview build 26200.5510 released to DEV
by
joep517
21 hours, 5 minutes ago -
Windows 11 Insider Preview Build 26100.3624 (24H2) released to Release Preview
by
joep517
21 hours, 9 minutes ago -
Limits on User Names
by
CWBillow
17 hours, 51 minutes ago -
MS-DEFCON 4: Mixed bag for March
by
Susan Bradley
11 hours, 55 minutes ago -
Non Apple Keyboards
by
pmcjr6142
2 hours, 52 minutes ago -
How to delete your 23andMe data – The Verge
by
AJNorth
15 hours, 49 minutes ago -
7 common myths about Windows 11 (Microsoft AD)
by
EyesOnWindows
13 hours, 25 minutes ago -
Error updating to Win11 0x8024a205
by
bmeacham
1 day, 15 hours ago -
default apps
by
chasfinn
1 day, 14 hours ago -
Will MS Works 4 work in MS Win 11?
by
MileHighFlyer
1 day, 22 hours ago -
Adding links to text in Word 2000
by
sgeneris
20 hours, 5 minutes ago -
FBI warnings are true—fake file converters do push malware
by
Nibbled To Death By Ducks
1 day, 16 hours ago -
Classic and Extended Control Panel — no need to say goodbye
by
Deanna McElveen
18 hours, 48 minutes ago -
Things you can do in 2025 that you couldn’t do in 2024
by
Max Stul Oppenheimer
2 days, 3 hours ago -
Revisiting Windows 11’s File Explorer
by
Will Fastie
1 day, 12 hours ago -
Planning ahead for migration
by
Susan Bradley
12 hours, 40 minutes ago -
Yahoo mail getting ornery
by
Tom in Az
1 day, 15 hours ago -
Is Spectrum discontinuing email service?
by
Peobody
1 day, 18 hours ago -
Practice what you preach! A cautionary tale.
by
RetiredGeek
1 day, 15 hours ago -
Looking for Microsoft Defender Manuals/Tutorial
by
blueboy714
1 day, 19 hours ago
Recent blog posts
- Third party add ins reminder
- MS-DEFCON 4: Mixed bag for March
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
- Planning ahead for migration
- Woody Leonhard (1951–2025)
- What I learned from Woody Leonhard
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.