Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2001, 10:06 PM
akall akall is offline
Junior Member
 
Join Date: Jan 2001
Posts: 14
Default How to grep characters in delphi 3

How can i grep a character in a string
ex. character 6 and 7 in sting '2000-46'
Reply With Quote
  #2  
Old 01-03-2001, 12:29 AM
PoseFant PoseFant is offline
Senior Member
 
Join Date: Jan 2001
Posts: 1,002
Default RE: How to grep characters in delphi 3

Var
Grep : String[2];
Begin
Grep := Copy('2000-46',6,2);
End;

The first parameter is a string or a dynamic array, the second is the index of where to start, the third is the count of how many characters to copy including the index character.

Regards

/Filip
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 06:42 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.