Hi all
I feel stupid for asking this, but i just went to use the left() function
from vb6 only to find it doesnt do what it used to under .NET. Im assuming
theres something else now im meant to do when i want to say for example
Dim Str as string
Str = "1234"
msgbox left(str,2)
Thanks 18 1757
String.SubStrin g <--- That's what u got now !!
- Sahil Malik http://dotnetjunkies.com/weblog/sahilmalik
"Jm" <ja*****@ihug.c om.au> wrote in message
news:cr******** **@lust.ihug.co .nz... Hi all
I feel stupid for asking this, but i just went to use the left() function from vb6 only to find it doesnt do what it used to under .NET. Im assuming theres something else now im meant to do when i want to say for example
Dim Str as string Str = "1234" msgbox left(str,2)
Thanks
Ah thanks Sahil, a little different but easy to use nonetheless.
Thanks
"Sahil Malik" <co************ *****@nospam.co m> wrote in message
news:Oe******** ******@TK2MSFTN GP12.phx.gbl... String.SubStrin g <--- That's what u got now !!
- Sahil Malik http://dotnetjunkies.com/weblog/sahilmalik
"Jm" <ja*****@ihug.c om.au> wrote in message news:cr******** **@lust.ihug.co .nz... Hi all
I feel stupid for asking this, but i just went to use the left()
function from vb6 only to find it doesnt do what it used to under .NET. Im
assuming theres something else now im meant to do when i want to say for example
Dim Str as string Str = "1234" msgbox left(str,2)
Thanks
Jm,
It is still there as a full continious part of the Net Framework, as well as
all these methods. http://msdn.microsoft.com/library/de...rykeywords.asp
I hope this helps?
Cor
"Jm" <ja*****@ihug.c om.au> I feel stupid for asking this, but i just went to use the left() function from vb6 only to find it doesnt do what it used to under .NET. Im assuming theres something else now im meant to do when i want to say for example
Dim Str as string Str = "1234" msgbox left(str,2)
Thanks
Microsoft.Visua lBasic.Left()
--
Met vriendelijke groet
Kind regards,
Michel Posseth
Software Developer
Microsoft Certified Professional
Company : Nohau Systems B.V.
Division : Systems Development
"Jm" <ja*****@ihug.c om.au> wrote in message
news:cr******** **@lust.ihug.co .nz... Hi all
I feel stupid for asking this, but i just went to use the left() function from vb6 only to find it doesnt do what it used to under .NET. Im assuming theres something else now im meant to do when i want to say for example
Dim Str as string Str = "1234" msgbox left(str,2)
Thanks
"Jm" <ja*****@ihug.c om.au> wrote in message
news:cr******** **@lust.ihug.co .nz... Hi all
I feel stupid for asking this, but i just went to use the left() function from vb6 only to find it doesnt do what it used to under .NET. Im assuming theres something else now im meant to do when i want to say for example
Dim Str as string Str = "1234" msgbox left(str,2)
Thanks
In fact you can still use Left by invoking explicitly
Microsoft.Visua lBasic.Left(str ing, length)
but this does seem a bit unneccesary now we have Substring.
Regards
--Jim.
Hi Cor
Thanks for the reply, i feel stupid saying it but i wasnt aware that
namespace existed. Sahil pointed out the new method which i used anyhow.
Thanks for the reply
Thanks
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:uQ******** ******@TK2MSFTN GP14.phx.gbl... Jm,
It is still there as a full continious part of the Net Framework, as well
as all these methods.
http://msdn.microsoft.com/library/de...rykeywords.asp I hope this helps?
Cor
"Jm" <ja*****@ihug.c om.au>
I feel stupid for asking this, but i just went to use the left()
function from vb6 only to find it doesnt do what it used to under .NET. Im
assuming theres something else now im meant to do when i want to say for example
Dim Str as string Str = "1234" msgbox left(str,2)
Thanks
Hi Jim
Thanks for the reply, i feel stupid saying it but i wasnt aware that
namespace existed. Sahil pointed out the new method which i used anyhow.
Thanks for the reply
Thanks
"Jim" <no******@this. address> wrote in message
news:2n******** ******@fe2.news .blueyonder.co. uk... "Jm" <ja*****@ihug.c om.au> wrote in message news:cr******** **@lust.ihug.co .nz... Hi all
I feel stupid for asking this, but i just went to use the left()
function from vb6 only to find it doesnt do what it used to under .NET. Im
assuming theres something else now im meant to do when i want to say for example
Dim Str as string Str = "1234" msgbox left(str,2)
Thanks
In fact you can still use Left by invoking explicitly
Microsoft.Visua lBasic.Left(str ing, length)
but this does seem a bit unneccesary now we have Substring.
Regards
--Jim.
JM,
That is not a new method, that is a very old method. It comes from the C
type languages.
The C type methods use a zero indexer and the VB type methods the First as
indexer.
I think it is good to stay to one kind because otherwise you will soon be
confused.
I never use methods which have a First as starting indexer although I think
it is better, the only reason for that is that I am used to that zero
indexer. (Therefore I use substring).
Cor
"Jm" <ja*****@ihug.c om.au> Hi Cor
Thanks for the reply, i feel stupid saying it but i wasnt aware that namespace existed. Sahil pointed out the new method which i used anyhow. Thanks for the reply
Thanks
"Cor Ligthert" <no************ @planet.nl> wrote in message news:uQ******** ******@TK2MSFTN GP14.phx.gbl... Jm,
It is still there as a full continious part of the Net Framework, as well as all these methods.
http://msdn.microsoft.com/library/de...rykeywords.asp I hope this helps?
Cor
"Jm" <ja*****@ihug.c om.au>
> I feel stupid for asking this, but i just went to use the left() function > from vb6 only to find it doesnt do what it used to under .NET. Im assuming > theres something else now im meant to do when i want to say for example > > Dim Str as string > Str = "1234" > msgbox left(str,2) > > Thanks > >
http://mikecaldwell.com/VBNET.asp
Jm wrote: Hi all
I feel stupid for asking this, but i just went to use the left() function from vb6 only to find it doesnt do what it used to under .NET. Im assuming theres something else now im meant to do when i want to say for example
Dim Str as string Str = "1234" msgbox left(str,2)
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Neil Zanella |
last post by:
OK, this time the compiler's got me a little bit puzzled, simply because it is
doing something I am not expecting. My understanding, according to the
documentation of std::vector<>::resize(), is that when you specify a
second argument the number of elements specified in the first
argument is each in turn set to the second argument.
void Foo::bar(int x) {
static std::vector<int> foo;
std::cout << "source: " << x << std::endl;...
|
by: Lauren Wilson |
last post by:
Hi folks,
Just "upgraded" from A2K to A2K3. Everything is just hunky dory (so
far) -- EXCEPT that the Add-in I had with A2K that auto inserts error
code is no longer available in the Add-in manager or anywhere on my
PC. I DO have the VSTO Access Developer Extensions installed for
2003.
Anyone have a clue what happened to the Add-in? Is there another
source for this Add-in? I have scoured the Microsoft web sites for
|
by: N J |
last post by:
Hi,
Please take a look at http://webmonky.myby.co.uk/error.JPG . This is the
second time this has happened. All I did was run command ...
CurrentDb.Execute "Update tblDownload Set OrderType = """ & "REFUNDED" & """
Where ID = " & Me.Text43 & ";", dbfailonerror
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
....and access seems to make data turn into chinese charactors and put
|
by: Mikey |
last post by:
Can somebody tell me what happened to the Source Profiler? It used to be
under the Build menu in VC6, but now it's gone, and I cannot find anything
in the docs that say what happened to it. The docs now only say something
about atttaching a third party tool, but do not give any hints of what that
might be.
Can the old VC6 profiler be used with a fresh VC .Net compile (totally
unmanaged code).
Any advice, hints, etc appreciated.
|
by: SugarDaddy |
last post by:
I'm pretty new to C#, but I've had a lot of experience with MFC. MFC
had a mechanism for updating dialog controls using an idle message.
For those unfamiliar, basically you would override OnIdle and call
UpdateDialogControls(), and that would send WM_UPDATECOMMANDUI messages
to all the controls in the dialog. Then you could add handlers for
each control that you wanted to update. For example, if you wanted a
button to be disabled if...
| |
by: han zhiyang |
last post by:
I've just studied the "how to" web service and the async pattern in donnet.I
make a test with these knowledges,but I got a strange result. Here is my
test.
1.Write a simple "Add" service named MathWS( the class name),and put it in a
..asmx file named math.asmx in the "D:/winnt/interpub/wwwroot/mathws"
directory. "mathws" is my new-built directory.
2.run the http://localhost/mathws/math.asmx,find it works well,and run run
the...
|
by: Mike Rand |
last post by:
I am having a really hard time trying to get some client side code hooked up
in VS2005, ASP 2.0.
The code is in an .inc file (vbscript). The first problem I am encountering
is the ASP.NET page doesn't like vbscript and throws fits about the syntax.
Second, the page throws fits about the server side code tags (<% ...
%>),...are these supported anymore? Third, when I set the onclick event of a
client side HTML button it does not recognize...
|
by: dkintheuk |
last post by:
Hi all,
Just had the wierdest thing happen overnight to one of my databases.
I have a frontend/backend set up with the front end under development
on my machine.
I was copying a load of old files of the network while I had my front
end performing some tasks overnight and I have managed to copy an old
version of the front end over the version i had open. I didn't know I
|
by: Giampaolo Rodola' |
last post by:
http://groups.google.com/group/python-dev2
It seems it no longer exists. What happened?
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |