?
Solved

extract characters of a string

Posted on 2000-03-07
2
Medium Priority
?
357 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 80 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Introducing Priority Question, our latest feature.
The top devops trends for 2017 are focused on improved deployment frequency, decreased lead time for change and decreased MTTR.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

800 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