--- title: "SearchString(P1, P2, P3)" slug: "1611331254" tags: ["Textos"] updated: 2026-07-28T15:09:50Z published: 2026-07-29T07:31:42Z canonical: "help.ila.cegid.com/1611331254" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.ila.cegid.com/llms.txt > Use this file to discover all available pages before exploring further. # SearchString(P1, P2, P3) - [x] PT - [x] ES - [x] AO - [x] CV - [x] MZ - [x] ST - [x] GW - [x] Professional - [x] Executive - [ ] Public Sector - [ ] Omnia - [x] Evolution --- Esta função localiza uma dada sequência de texto: ‘P3’ numa segunda sequência de texto; ‘P1’ na partir de uma posição;‘P2’ devolvendo como resultado a posição inicial de ‘P3’ em ‘P1'. --- ## Exemplos **Exemplo 1:** SearchString("abcdefg", 0, "cd") = 2 **Exemplo 1:** SearchString("abcdefg", 4, "cd") = -1 **Exemplo 3:** SearchString("abcdefg", 0, "a") = 0