Re: Cannot add microsoft.visualbasic as reference - newbie ?
- From: "Phill W." <p-.-a-.-w-a-r-d@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 03 Jan 2007 16:57:54 +0000
Tim A wrote:
If microsoft.visualbasic is automatically referenced by the project system why can't I reference the classes within without typing "microsoft.visualbasic.right(string,int)" instead of "right(string,int)".
Microsoft.VisualBasic /is/ automatically referenced by the Visual Studio IDE (and used "under the covers" as well) and, usually, automatically Imported as well - have a rummage around the Project Properties; there's a list of "automatic" Imports in there somewhere.
I use a number of these (classes?) from microsoft.visualbasic in my coding including "err", "right", etc. Am I doing this the wrong way?
IMHO, if you are maintaining or struggling to "upgrade" existing code, then No; you're doing things the /right/ way sticking with the compatible functions.
If you are writing new code from scratch, then /perhaps/ not. The methods available on the String class, while more "fiddly" than those in MS.VB, are a better way forward and Structure Exception Handling (Try .. Catch) just leaves "On Error Goto" standing ...
HTH,
Phill W.
.
- Prev by Date: Re: Simple inheritance question
- Next by Date: Re: Delegates and Classes
- Previous by thread: Re: Cannot add microsoft.visualbasic as reference - newbie ?
- Next by thread: Re: Cannot add microsoft.visualbasic as reference - newbie ?
- Index(es):
Relevant Pages
|