Jump to content
Fivewin Brasil

Validar Inscrição estadual com DLL do Sintegra


kapiaba

Recommended Posts

Teste e declaração da DLL:

FUNCTION TestaIncsEst()
   cUF:=SPACE(02) // não pode ter espaços em branco
   cIE:=SPACE(14) // sem ponto, sem barra, sem ifen, sem espaços, somente numero em formato de string
   IF ! MsgGet("UF","UF",@cUF) ; RETURN NIL ; ENDIF
   IF ! MsgGet("IE","IE",@cIE) ; RETURN NIL ; ENDIF
   oSintDll := LoadLibrary(".\DLL32\ie32.dll")
   IF VerificaIE(cIE,cUF) # 0
      MsgAlert("Inscrição Estadual Invalida para o Estado .: " + cUF, "Inválida")
   ELSE
      MsgInfo("Inscrição Estadual válida","Ok")
   ENDIF
   freelibrary(oSintDll)
RETURN NIL

* Testar Inscrição Estadual com a DLL do SINTEGRA
DLL32 FUNCTION VerificaIE( _cIE AS STRING, _cUF AS STRING) AS LONG PASCAL ;
      FROM "ConsisteInscricaoEstadual" LIB ".\DLL32\ie32.dll"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...