Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 3.5 and Visual Studio. 2008 > .NET Framework 3.5
|
.NET Framework 3.5 For discussion of the Microsoft .NET Framework 3.5.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 3.5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 11th, 2012, 12:51 AM
Authorized User
 
Join Date: Aug 2006
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default Vb.net equivallent for left and Instr

Hi,

I am working on a Vb6 to Vb.net conversion project. In VB6, there is code like -
Code:
Dim strCompName as string
strCompName = New String(chr(0),255)
strCompName = Left(strCompName ,InStr(1, strCompName ,chr(0)) -1) ' remove the 'unnecessary chr(0)'s
Can any one tell me what will be the eqivallent of this in Vb.net??
shall I use
Code:
strCompName =strCompName .replace(chr(0),"')
??
or anything else??

Thanks,
Sumith
__________________
sumith





Similar Threads
Thread Thread Starter Forum Replies Last Post
popupmenu equivallent in vb.net sumith ASP.NET 3.5 Basics 0 May 28th, 2012 10:09 AM
Oracle Instr ermutigen BOOK: SQL Functions Programmer's Reference 1 May 31st, 2009 12:04 AM
CHARINDEX instead of Instr... mircea Classic ASP Databases 7 July 19th, 2004 01:47 PM
help on functions instr.... kyootepuffy Classic ASP Basics 2 September 19th, 2003 10:01 AM
instr function Beulah ASP.NET 1.0 and 1.1 Basics 1 September 18th, 2003 01:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.