Solved

String Manipulation

Posted on 1998-06-26
3
159 Views
Last Modified: 2010-05-03
I have a string in which I have the fromat like

abc.xyz.bcd

How can I grab xyz from the sting or bcd from the string
0
Comment
Question by:monalisa
3 Comments
 
LVL 6

Expert Comment

by:clifABB
Comment Utility
You duplicated the question again.  :)

You should delete this one, I've answered the other.
0
 
LVL 1

Accepted Solution

by:
dgb001 earned 10 total points
Comment Utility
Dim oldstring as string
Dim newstring as string
Dim X as byte

let oldstring = "abc.xyz.bcd"
let X=INSTR(oldstring,"bcd")
let newstring=mid(oldstring,X,3)

Just do a similar thing for the other ones. There are of course many variations on how to do this, and also with less code, but you should probably be able to follow this code with no problem.




abc.xyz.bcd

0
 

Author Comment

by:monalisa
Comment Utility
Thank you very much
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…

743 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

13 Experts available now in Live!

Get 1:1 Help Now