Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Exclude statement/function from syntax check

$
0
0

I have a function I want to work with AutoIt 3.3.8.1 and 3.3.9.x beta. If running on 3.3.9.x I pass a parameter that is not available with 3.3.8.1.

So I try to use #ignorefunc. Unfortunately there is a bug in 3.3.8.1 ("ERROR: missing separator character after keyword." - #2141) which seems to be resolved with 3.3.9.1.

    Local $bBeta = False ; Make the code work for 3.3.8.x (prod) and 3.3.9.x (beta)     Local $oWorkbook, $iCount = 0, $sCLSID_Workbook = "{00020819-0000-0000-C000-000000000046}"     If $sMode = Default Then $sMode = "FilePath"     If StringReplace(@AutoItversion, ".", "") >= 3390 Then $bBeta = True     ; Loop through all workbooks     While True         If $bBeta Then ; Make the code work for 3.3.8.x (prod) and 3.3.9.x (beta)             $oWorkbook = ObjGet("", $sCLSID_Workbook, $iCount + 1)         Else             $oWorkbook = ObjGet("", $sCLSID_Workbook)         EndIf     WEnd

is there another way to suppress the error message of 3.3.8.1: "ERROR: ObjGet() [built-in] called with wrong number of args"?


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>