Solved

extract characters of a string

Posted on 2000-03-07
2
329 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
In 2017, ransomware will become so virulent and widespread that if you aren’t a victim yourself, you will know someone who is.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

929 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

16 Experts available now in Live!

Get 1:1 Help Now