Solved

extract characters of a string

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

19 Experts available now in Live!

Get 1:1 Help Now