Jump to content
Sign in to follow this  

Trouble understanding some errors.

Recommended Posts

I had put together little program for myself and it seems to work well enough. At one point, doing bug hunting I threw AutoIt3 Syntax Checker at it and had my jaw dropped. 23 more errors and 3 warnings,  all-over ~1500 lines of script.

Until that moment I simply checked if the functions worked like they were meant to, giving correct results, etc. What revealed itself on error messages at editor's console after starting the script got always fixed step by step.

What is wrong with the line of code like?

$cc_a1 = _SQLite_GetTable(-1, "SELECT DISCTINCT HOSTS FROM MEMTABLE", $row, 0, 0)

I'm getting on console (hiding user account specific stuff here)

"C:\****\main.au3"(874,85) : error: _SQLite_GetTable() called with Const or expression on ByRef-param(s).
                $cc_a1 = _SQLite_GetTable(-1, "SELECT DISCTINCT HOSTS FROM MEMTABLE", $row, 0, 0)

What exactly did I do wrong there?

One other type of error that's somewhat confusing me. It throws me an error in syntax checker but the code itself seems to works like this okay after running it.

$idFileViewItem[$i] = GUICtrlCreateListViewItem($name & "|" & $status, $idFileView)

"C:\****\main.au3"(1014,37) : error: Statement cannot be just an expression.
    Global $idFileViewItem[$i] = GUICtrlCreateListViewItem

 I appreciate any thoughts. Thank you:)


EDIT: Just to clarify, I only get described errors using AutoIt3 syntax checker. Otherwise, just running the script I'm not getting anything of the sort. I am wondering if I am using variables principally wrong somehow or what?

Edited by shaqan

Share this post

Link to post
Share on other sites

first one, your last two arguments should be variables rather that literals (0,0)

no idea about second.

Perhaps you are using older versions or something.

Share this post

Link to post
Share on other sites

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
Sign in to follow this  

  • Create New...