User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 391,630 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,767 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser:

LEFT syntax

Join Date: Dec 2002
Location: West Virginia
Posts: 368
Reputation: waynespangler is on a distinguished road 
Rep Power: 6
Solved Threads: 34
waynespangler waynespangler is offline Offline
Posting Whiz

Re: LEFT syntax

  #2  
Apr 28th, 2007
Left is no longer used in vb net. Instead of
If Left(strOrderNo, 2) <> "SO" Then
use
If strOrderNo.Substring(0, 2) <> "SO" Then
The first number is the starting position and the second is the number of characters to get.
This also replaces the mid and right string operations. If the second number is omitted then all the characters from the starting place are returned.
Last edited by waynespangler : Apr 28th, 2007 at 9:24 am.
Reply With Quote  
All times are GMT -4. The time now is 12:58 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC