Jump to content

Recommended Posts

Posted

How do you check a script error on a line that doesn't exist?

I only have a bit more then 300 lines but the error is on line 1359.

are lines from included files also counted?

If so, the error is coming from a constants file.

can anybody help me with this?

FYI : the error only occurs when opening the exe file on a citrix session (not a normal computer)

It states:

AutoIt Error

Line 1359 (File: "H:sdsslvpn.exe"):

Error: Variable used without begin declared.

If needed I can upload the script

Posted

Hi,

Download the SciTE4AutoIt package which runs Au3Check just before your script and it will tell you the errors in the console.

Br, FireFox.

Posted (edited)

I'll try that thank you :)

EDIT: seems like I was already using the Au3Check before compiling (on my workstation), but I can't install anything in our citrix environment so I don't think i can check it there.

Edited by colombeen
Posted

If Eagleboy was here he would say:

 

Factfinder,

If you compile the script using Au3Stripper then SciTE4AutoIt3 removes all the blank lines and unused functions/variables before compiling the stripped file. You can then compare the number returned by the complied error MsgBox directly with that file and so find the errant variable. :)

M23

  • 2 weeks later...
  • Solution
Posted

oh it was such a stupid problem... I declared a variable within an if-else structure, but when it wouldn't go into the if-else structure, the variable wasn't declared so shame on me for not seeing it earlier.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...