Forum Discussion

joffre's avatar
joffre
Regular Contributor
13 years ago

Don't know how to

Hi all.



In my script, I was having some trouble when my Windows is in english and in portuguese. Trying to avoid this problem, I make some conditionals on my code that is working fine. But the wait time, that was 30 minutes before, now is around 90 minutes.



Here is what I am using:



  Dim btnSave = Aliases.FPW5_CADCALC.dlgImportaTabelasNomeArquivoOrigem.btnSave

  Dim btnSalvar = Aliases.FPW5_CADCALC.dlgImportaTabelasNomeArquivoOrigem.btnSalvar

  If btnSave.Exists Then

    btnSave.ClickButton

  Else

    btnSalvar.ClickButton

  End If




My script is running fine for both languages. But for portuguese it is taking longer because of the condicional above. Is there anyway I can make it faster?