What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Known Problems with VB

Known Problems with VB
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Known Problems with VB
quote:
Originally posted by Heffy
Thanks for the help so far, guys!

However, Cookie, the spam variable is used alot in the project - it's just my temporary variable.
In other words it is not used thruout the project. A temporary variable shouldn't be made globally like you did. If you need a temporary variable you declare it in the procedure you need it.

Global variables should only be used if you need to variable to retain its value thruout the project.

It is bad practice to simply declare all variables as global (and prone to errors, as you experienced).

quote:
Originally posted by Heffy
Edit: On the undefined variable, iniSettings - that's what I called the ini variable, until I shortened it.
Use 'Option Explicit' in all modules, forms, classes, whatever, to avoid such mistakes.

quote:
Originally posted by Chestah
Don't forget Cookie ;), Microsoft is advising people not to use ini's and use XML files to store data in. It's alot easier to manipulate XML files and its also alot better for importing settings or importing data into other applications :P.
There is no reason why you should not use INI's, at all. The advise from Microsoft has got nothing to do with security issues, easyness or whatever else. Instead, it has everything to do with the policy that Microsoft takes into trying to push people to use a new way in storing stuff instead of using an old, but very decent and solid way of storing stuff (just as they try to push people from leaving VB and jumping to VB.NET). There is no valid basis why you should not use INI's in any way, especially in projects like this. It is a very wide spread and seriously misconception that using INI's would be bad, less efficient or whatever.

This post was edited on 01-12-2006 at 06:39 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-12-2006 06:31 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Known Problems with VB - by Heffy on 01-10-2006 at 08:36 AM
RE: Known Problems with VB - by Dempsey on 01-10-2006 at 08:39 AM
RE: Known Problems with VB - by Heffy on 01-10-2006 at 08:50 AM
RE: Known Problems with VB - by RaceProUK on 01-10-2006 at 12:22 PM
RE: RE: Known Problems with VB - by Heffy on 01-10-2006 at 01:44 PM
RE: Known Problems with VB - by Kryptonate on 01-10-2006 at 12:29 PM
RE: Known Problems with VB - by RaceProUK on 01-10-2006 at 12:37 PM
RE: Known Problems with VB - by CookieRevised on 01-10-2006 at 06:16 PM
RE: Known Problems with VB - by RaceProUK on 01-11-2006 at 12:49 AM
RE: RE: Known Problems with VB - by Heffy on 01-11-2006 at 08:33 AM
RE: Known Problems with VB - by Heffy on 01-11-2006 at 02:09 PM
RE: RE: Known Problems with VB - by eSouL on 01-11-2006 at 05:57 PM
RE: Known Problems with VB - by CookieRevised on 01-11-2006 at 05:18 PM
RE: Known Problems with VB - by Heffy on 01-12-2006 at 02:20 AM
RE: RE: Known Problems with VB - by CookieRevised on 01-12-2006 at 06:31 AM
RE: Known Problems with VB - by Chestah on 01-12-2006 at 06:30 AM
RE: Known Problems with VB - by Chestah on 01-12-2006 at 11:35 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On