Re: Microsoft.VisualBasic.String.Left
- From: "Armin Zingler" <az.nospam@xxxxxxxxxx>
- Date: Mon, 22 Oct 2007 21:38:06 +0200
"Greg" <AccessVBAnet@xxxxxxxxxxxxxxxxx> schrieb
I have two questions with regards to the LEFT function.
I ran into a problem with the LEFT function today. I knew it was a
valid Function, but when I tried to use it, it was getting
interpreted as the LEFT location of a control or something like
that, instead of the LEFT function. (I want to extract the left
portion of a string). Anyway, I knew what I needed was to find out
what IMPORTS I was missing. After finding a posting on MSDN that
spoke about a similar issue, I realized I did not need an imports,
but I need to refer to it like Microsoft.VisualBasic.String.Left and
it worked fine. In fact, using Microsoft.VisualBasic.String as an
import did not allow me to use just the LEFT function by itself. I'm
assuming this si because there is already another LEFT defined.
Now my questions.
1. I assume there is a better way of doing this now with VB.Net 2005
since I need to reference it the way I did. Is there a different
command I should be using in VB.Net 2005 in place of the VB6 way of
doing it?
TheString.SubString(0, ...)
2. I know of a method/function I want to use. In this case, it was
LEFT. But, I don't know the namespace I need to include in my
Imports section. Knowing the command I want to use, how can I find
out what Imports I need to reference to use it?
Alt+F12 (or "symbol search" in Edit menu): "Left" <enter>
Armin
.
- Follow-Ups:
- Re: Microsoft.VisualBasic.String.Left
- From: Greg
- Re: Microsoft.VisualBasic.String.Left
- Prev by Date: Re: Commenting functions - Solved!
- Next by Date: Re: Create minidump
- Previous by thread: Re: Commenting functions - Solved!
- Next by thread: Re: Microsoft.VisualBasic.String.Left
- Index(es):
Relevant Pages
|