473,395 Members | 2,713 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,395 software developers and data experts.

Using MidB, InstrB, lenB in ASP.NET

Hi guys,
As most of you must be knowing that people normally used MidB,
InstrB, lenB functions till VB6 for binary string manipulations.Since
now these functions are not available in VB.NET, I want to achieve the
same in VB.NET.Could any one can tell me How I can achieve the same
functionality of MidB, InstrB, lenB in VB.NET. Help would be highly
appreciated.

Thanks in Advance,
-Gaurav Sharma
Nov 18 '05 #1
2 6568
From MSDN:

"Note The MidB statement of earlier versions of Visual Basic replaces a
substring in bytes, rather than characters. It is used primarily for
converting strings in double-byte character set (DBCS) applications. All
Visual Basic .NET strings are in Unicode, and MidB is no longer supported."

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Gaurav Sharma" <Ga***********@KeaneIndia.com> wrote in message
news:97**************************@posting.google.c om...
Hi guys,
As most of you must be knowing that people normally used MidB,
InstrB, lenB functions till VB6 for binary string manipulations.Since
now these functions are not available in VB.NET, I want to achieve the
same in VB.NET.Could any one can tell me How I can achieve the same
functionality of MidB, InstrB, lenB in VB.NET. Help would be highly
appreciated.

Thanks in Advance,
-Gaurav Sharma

Nov 18 '05 #2

Chris,
The note which you have sent is already in my knowledge.I was
asking for the work around in ASP.NET.I wanted to establish the same in
ASP.NET whatever MidB, InstrB and LenB does in ASP.

Thanks,
-Gaurav.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

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

Similar topics

16
by: Dave Smithz | last post by:
Hi, In summary: I want to a form to submit information via a HTTP POST, however, when using Internet Explorer I want to be able to use the back button and all the information retained....
4
by: The_Incubator | last post by:
As the subject suggests, I am interested in using Python as a scripting language for a game that is primarily implemented in C++, and I am also interested in using generators in those scripts... ...
5
by: Carlos Ribeiro | last post by:
Hello all, I'm posting this to the list with the intention to form a group of people interested in this type of solution. I'm not going to spam the list with it, unless for occasional and...
0
by: Todd | last post by:
I'm having trouble porting something from VB 6.0 with MSXML 4.0 to C# and the .Net framework. Using MSXML 4.0, I use the HTTPRequest object to get the following page and obtain a list of...
9
by: Roger Withnell | last post by:
I'm inserting a new record into an MS SQL database table and I want to obtain the new records autonumber immediately afterwards, as follows: MadminRS.CursorLocation = adUseServer...
5
by: cloudx | last post by:
Hi there, I have got the following piece of VB code to be translated to C#, I used System.Text.Encoding.Default.GetBytes(myStr, 1, 10, aBytes, 0) but the result of aBytes is different from what...
0
by: Alex | last post by:
As most of you must be knowing that people normally used MidB, InstrB, lenB functions till VB6 for binary string manipulations.Since now these functions are not available in VB.NET, I want to...
6
by: Julien | last post by:
Hello, I have some files located in a file server and managed by a SQL database from a web based interface using ASP + VBSCRIPT technology. I need to automatically copy those files to a web...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...
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,...

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.