Solved

extract characters of a string

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Data breaches are on the rise, and companies are preparing by boosting their cybersecurity budgets. According to the Cybersecurity Market Report (http://www.cybersecurityventures.com/cybersecurity-market-report), worldwide spending on cybersecurity …
In this increasingly digital world, security hacks are no longer just a threat, but a reality. As we've witnessed with Target's big identity hack 2013, Heartbleed in 2015, and now Cloudbleed, companies and their leaders need to prepare for the unthi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

822 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