Solved

String Manipulation

Posted on 1998-06-26
3
188 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
ID: 1464429
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
ID: 1464430
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
ID: 1464431
Thank you very much
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

713 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