Solved

Parse from a  String VB6

Posted on 2004-10-03
3
124 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

708 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

16 Experts available now in Live!

Get 1:1 Help Now