-
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)) #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: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: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
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
Updates seem to have broken Microsoft Edge
by
rebop2020
43 minutes ago -
Wait command?
by
CWBillow
1 hour, 33 minutes ago -
Malwarebytes 5 Free version manual platform updates
by
Bob99
3 hours, 38 minutes ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
10 hours, 14 minutes ago -
Windows 10 finally gets fix
by
Susan Bradley
19 hours, 7 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
20 hours, 27 minutes ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
15 hours ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
1 day, 9 hours ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
1 day, 10 hours ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
5 hours, 20 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
2 hours, 1 minute ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
1 day, 21 hours ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
2 days, 1 hour ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
2 days, 1 hour ago -
Unable to eject external hard drives
by
Robertos42
12 hours, 4 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
1 hour, 49 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
5 hours, 38 minutes ago -
Synology limits hard drives
by
Susan Bradley
3 days, 5 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
2 days, 8 hours ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
3 days, 11 hours ago -
Upgrade Sequence
by
doneager
3 days, 5 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
1 day, 10 hours ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
2 days, 3 hours ago -
The incredible shrinking desktop icons
by
Thumper
4 days, 8 hours ago -
Windows 11 Insider Preview Build 22635.5240 (23H2) released to BETA
by
joep517
4 days, 10 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
1 day, 9 hours ago -
Shellbag Analyser & Cleaner Update
by
Microfix
1 day, 3 hours ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
4 days, 19 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
5 hours, 27 minutes ago -
Speeding up 11’s search
by
Susan Bradley
2 days, 8 hours ago
Recent blog posts
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.