Solved

String Manipulation

Posted on 1998-06-26
3
179 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

825 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