Solved

Parse from a  String VB6

Posted on 2004-10-03
3
125 Views
Last Modified: 2010-05-02
Experts

I have a string

myvar = "rbrbr43254325egfewge@information1@sfdgsrg32543brbrbr"

how can i parse the info inside the 2 @

the string myvar also changes

i just need the string inside @information1@

so result would be  information1

saved as myvar2

thankyou
0
Comment
Question by:Jimmyx1000
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
Rejojohny earned 500 total points
ID: 12211263
larr = split(myvar, "@")

myvar2 = larr(1)
0
 
LVL 26

Expert Comment

by:Rejojohny
ID: 12211270
Dim larr() As String
myvar = "rbrbr43254325egfewge@information1@sfdgsrg32543brbrbr"
larr = Split(myvar, "@")
MsgBox larr(1)
0
 

Author Comment

by:Jimmyx1000
ID: 12211289
Thanks

Nice quick Code
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now