Solved

vb.net left$, Mid$ now what

Posted on 2004-08-27
1
342 Views
Last Modified: 2010-04-17
I am use to using left$, mid$ in vb6. I now notice that in vb.net it doesn't work

I know that if I use
Imports VB = Microsoft.VisualBasic

and then vb.left$

it works, but what is the equilvent in vb.net. I mean they have to still have something that does the left$, mid$ - right????


0
Comment
Question by:bear23
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
coopzz earned 25 total points
ID: 11913119
Public Function Substring(ByVal startIndex As Integer) As String
Public Function Substring(ByVal startIndex As Integer, ByVal length As Integer) As String

ie: equ to left(s, 5)

dim s as string = "the beast"
msgbox s.substring( 4 )

will alert with "Beast".

this page will give you some comparisons with these things
http://www.ondotnet.com/pub/a/dotnet/2001/07/30/vb7.html?page=2

cheers
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question