473,401 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Namespace Craziness

Does anyone know a good referance site for Namespaces?
I'm trying to move some code to a codebehind page, but this line is
erroring:
dim strBlah = left(txtDomain,3) - Name 'Left' Is not declared
Do any of you loveley people know what namespace i need to import to get
that working? I currentlyey have:
Imports System
Imports System.Directoryservices
Imports System.IO
Imports System.Text
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Data
Imports System.Data.SqlClient

TIA
Martin
Nov 18 '05 #1
3 900
Microsoft.VisualBasic

"Martin c" <ma****@nospam.com> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
Does anyone know a good referance site for Namespaces?
I'm trying to move some code to a codebehind page, but this line is
erroring:
dim strBlah = left(txtDomain,3) - Name 'Left' Is not declared
Do any of you loveley people know what namespace i need to import to get
that working? I currentlyey have:
Imports System
Imports System.Directoryservices
Imports System.IO
Imports System.Text
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Data
Imports System.Data.SqlClient

TIA
Martin

Nov 18 '05 #2
Hi Martin,
Thanks for posting in the community!
From your description, you are wondering which namespace to import since
you'd like to use the "Left" function of classic VisualBasic in VB.NET, yes?
If there is anything I misunderstood, please feel free to let me know.

As for this question, I think Eliyahu's answer is exact the one you want:
"Microsoft.VisualBasic". Add it in the project's reference list. Then, you
can use the "Left" as well as many other classic VisualBasic apis. For
detailed info on "Microsoft.VisualBasic" runtime library , you may view the
following reference in MSDN:

#Visual Basic Run-Time Library Members
http://msdn.microsoft.com/library/en...imeLibraryKeyw
ords.asp?frame=true
In addition, since you'd like to use the "left" function to do string
manipulation, would you please also have a look on the System.String class
in dotnet frame work. The String class also provide may good member methods
for string manipulation such as "Substring" "Replace" "IndexOf" "Split"
"Join" ...etc. You may view the following web link for more detailed
description:

#String Manipulation Example
http://msdn.microsoft.com/library/en...ngManipulation
Example.asp?frame=true

Please check out the preceding suggestions. If you have any other
questions, please feel free post here.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3
Hi Martin,
Have you had a chance to try out the suggestions or have you had any
further questions? If you need any help, please feel free to post here.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John L. Clark | last post by:
I am curious as to the rationale, and effect, of having default namespaces not applying (directly) to attributes (see http://www.w3.org/TR/REC-xml-names/#defaulting). Given an attribute without a...
25
by: kj | last post by:
Consider the following XML document: <?xml version='1.0' encoding='UTF-8'?> <bar:foo xmlns:bar='someuri'> <baz/> </bar:foo> What namespace does baz belong to? What is this namespace bound...
3
by: Mike Dickens | last post by:
hi, i'm sure this has come up before but havn't managed to find an answer. if i have the following xslt <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet method="xml" version="1.0"...
6
by: Don Wash | last post by:
Hi There! I just need some advice on Namespace management for creating reusable VB.NET applications. I would like my applications to have this namespace structure... Namespace MyCompany ...
8
by: Petter Reinholdtsen | last post by:
I ran into a problem on HP-UX 11.00 the other day, where it refused to compile a program using 'using namespace std;' at the top. The reason seem to be that the compiler refuses to accept 'using...
2
by: puzzlecracker | last post by:
after reading some of the post I found out something rather radical to my previous understanding: that when you do #include<iostream> #include<string> #include<vector> etc compiler puts...
7
by: Kevin Newman | last post by:
I've been toying with a namespace manager, and wanted to get some input. So what do you think? if (typeof com == 'undefined') var com = {}; if (!com.unFocus) com.unFocus = {}; ...
14
by: Tiraman | last post by:
Hi , I would like to use nested namespace . I have 3 namespace as dll's : Namespace A Namespace B Namespace C And i want to have some namespace that contain them all , some thing like
1
by: Chris Nurse via .NET 247 | last post by:
Option Compare Text Module Module1 Sub Main() #If MyString = "ABC" Then MsgBox("You have been compiled!") #End If
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.