Solved

extract characters of a string

Posted on 2000-03-07
2
351 Views
Last Modified: 2010-04-16
how to extract characters of a string like a VB function substr

  abc:string
  xyz:string;

abc:="This is demo");
xyz:=substr(abc,9,4);

then xyz = "demo"

0
Comment
Question by:adrianmak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
My name is Mud earned 20 total points
ID: 2594724
Program CopySTR;
VAR
  abc: string;
  xyz: string;
Begin
  abc:="This is demo";
  xyz:=Copy(abc,9,4);
  Write(xyz);                            (*then xyz = "demo"*)
End.
0
 
LVL 3

Expert Comment

by:vikiing
ID: 2597371
(Besides that, that VB function you mention is MID$, not SUBSTR)...
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The conference as a whole was very interesting, although if one has to make a choice between this one and some others, you may want to check out the others.  This conference is aimed mainly at government agencies.  So it addresses the various compli…
Microsoft is moving in-place eDiscovery & hold from ECP to EOP console under Content Search in Search and Investigation Options.  In this post, I will be showing you how to export emails to a PST file using the Content Search Options.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

728 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