Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   posicion string (https://www.clubdelphi.com/foros/showthread.php?t=14677)

davidgaldo 28-09-2004 10:25:40

posicion string
 
Hola como puedo saber la posicion que ocupa la barra (/) en un string de este tipo: xxxx/xx. Gracias

basti 28-09-2004 10:33:38

posicion := pos('/', 'xxx/xx);

un saludo

jplj 28-09-2004 10:37:52

De la ayuda de delphi:

Cita:

Delphi syntax:

function Pos(Substr: string; S: string): Integer;

Description

In Delphi, Pos searches for a substring, Substr, in a string, S. Substr and S are string-type expressions.

Pos searches for Substr within S and returns an integer value that is the index of the first character of Substr within S. Pos is case-sensitive. If Substr is not found, Pos returns zero.



La franja horaria es GMT +2. Ahora son las 13:06:42.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi