Advertisement

06.03.2008 at 04:49PM PDT, ID: 23455133
[x]
Attachment Details

Mid and InStr methods question

Asked by pikarde822 in Microsoft Visual Basic.Net, Visual Studio 2008

Tags: VB.net

hello...
im working on a program and im using Mid(newuserarg, InStr(newuserarg, "*") + 1) method to separate incoming stream data from a source and then writing the string to a database, basically im trying to separate the following command in its individual parts
/register *username $password
my question is, is there a way to detect the length of each part, that is, the length of username and password, and writing them, or  having a character which signifies STOP for Mid(newuserarg, InStr(newuserarg, "*") + 1) so that i can separate each part

again simplified, i want the above command to be disassembled by the code in 2 parts, username and password where i can write them to a database

any suggestions?

much appreciated....Start Free Trial
 
 
Loading Advertisement...
 
[+][-]06.03.2008 at 04:52PM PDT, ID: 21705578

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual Basic.Net, Visual Studio 2008
Tags: VB.net
Sign Up Now!
Solution Provided By: jwinney
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.03.2008 at 05:12PM PDT, ID: 21705645

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628