Ir para conteúdo
  • Cadastre-se

fabiano ribeiro fernandes

Membros
  • Total de ítens

    1
  • Registro em

  • Última visita

Community Answers

  1. fabiano ribeiro fernandes's post in Pegar somente chave da NFS-e. was marked as the answer   
    exemplo : H:\PROJETO\PRINCIPAL\Fontes\Dados\DFe\NFSe\2022\09\Notas\3522092730343100018356202200000000086-nfse.xml
     
    uses StrUtils;

    function ChaveAcesso(chave : string) : string;

    function ChaveAcesso(chave : string) : string;
    var
    str:string;
    begin
        str := chave;
        str := ReverseString(Str);
        delete(str,pos('\',str),length(Str));
        str := copy(str,pos('-',str)+1,length(Str));
        str := ReverseString(Str);
        Result := str;
    end;
     
     
    Resultado:
    3522092730343100018356202200000000086
     
    Modo de uso:
     
    var chave_nfse : string;
    chave_nfse   := ChaveAcesso( ACBrNFSeX1.NotasFiscais.Items[i].NomeArq );
×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.

The popup will be closed in 10 segundos...
The popup will be closed in 10 segundos...