Delphi Pages Forums

Delphi Pages Forums (http://www.delphipages.com/forum/index.php)
-   General (http://www.delphipages.com/forum/forumdisplay.php?f=2)
-   -   How to grep characters in delphi 3 (http://www.delphipages.com/forum/showthread.php?t=17995)

akall 01-02-2001 10:06 PM

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'

PoseFant 01-03-2001 12:29 AM

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


All times are GMT. The time now is 07:33 PM.

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