Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

Extract_a_SubString_from_a_String_in_Delphi7

Código em Delphi7 para copiar uma parte de uma String a partir de um caractere informado até outro caractere informado.

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Extract a SubString from a String - Delphi7

Code in Delphi 7 to copy a part of a String from an informed character to another informed character. Being able to skip a number of occurrences of these characters.

diff
  @@ Exemplos: @@

  1- {
    MainString -> ( NAME='TESTE'; )
    Caractere inicial -> ( = )
    Caractere final -> ( ; )
    Resultado -> ( 'TESTE' )
  }

  2- {
    MainString -> ( SENSATO )
    Caractere inicial -> ( S )
    Caractere final -> ( O )
    Resultado -> ( 'ENSAT' )

    Pular Caractere inicial -> ( 1 )
    Resultado -> ( 'AT' )
  } 

  3- {
    MainString -> ( GOOGLE TRADUTOR )
    Caractere inicial -> ( G )
    Caractere final -> ( T )
    Resultado -> ( 'OOGLE ' )

    Pular Caractere inicial -> ( 1 )
    Pular Caractere final -> ( 1 )
    Resultado -> ( 'LE TRADU' )
  }