Ir para conteúdo
Fórum Script Brasil
  • 0

Erro Num Script Q Estou Dando ManutenÇÃo


AndreTrickle

Pergunta

pois bem galera

estou com um script aki para correção

está indicando o seguinte erro:

Microsoft VBScript runtime error '800a0005'

Invalid procedure call or argument: 'LEFT'
ele se refere à linha 246 aqui vai o script:
if ucase(right(objFile.Name,3)) = "WMA" then
   if ucase(left(objFile.Name,instr(objFile.Name,"_") - 1)) = data then
	i= 1
	nome_arquivo= objFile.Name
	strName = left(objFile.Name,len(objFile.Name)-4)
	'response.write strName & "<br>"
	processo= right(strName, len(strName) - instr(strName,"_"))
	SQLstmt= "INSERT INTO SONS_WMA (NOME_ARQUIVO,DATA_SESSAO,PROCESSO) VALUES "
	SQLstmt= SQLstmt + "('"& nome_arquivo & "',TO_DATE('" & data & "','YYMMDD'),'" & processo &"')"
	'Response.Write SQLstmt
        Set RS1= Connection.Execute(SQLstmt)
  end if
end if

alguém tem idéia do q seja?

Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts Recomendados

Visitante
Este tópico está impedido de receber novos posts.


  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,7k
×
×
  • Criar Novo...