jackyyll Posted March 3, 2006 Posted March 3, 2006 Whenever i try to use anythign that involves array.au3 i get this error H:\AutoIt3\Include\Array.au3 (171) : ==> Badly formatted "Func" statement.: Func _ArrayDisplay(Const ByRef $avArray, $sTitle) Func _ArrayDisplay(^ ERROR Anyone know why? O_o
Valuater Posted March 3, 2006 Posted March 3, 2006 simply remove the word "Func" _ArrayDisplay(Const ByRef $avArray, $sTitle) 8)
Moderators SmOke_N Posted March 3, 2006 Moderators Posted March 3, 2006 simply remove the word "Func" _ArrayDisplay(Const ByRef $avArray, $sTitle) 8)You mean the word 'Const'? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
MadBoy Posted March 3, 2006 Posted March 3, 2006 You mean the word 'Const'?I think he means "Func" isn't needed there. Else there would have to be EndFunc too ;p My little company: Evotec (PL version: Evotec)
Moderators SmOke_N Posted March 3, 2006 Moderators Posted March 3, 2006 I think he means "Func" isn't needed there. Else there would have to be EndFunc too ;pIt's the Array.au3 file guys... don't you think it has an EndFunc there? Look at where the error is pointing also. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Valuater Posted March 3, 2006 Posted March 3, 2006 You mean the word 'Const'?That was good but i think the "Both"8)
cdkid Posted March 4, 2006 Posted March 4, 2006 Yes, i agree with SmOke_N, it's the const... i think. 'Cause you cant use CONST and ByRef in a parameter, but if the error is in Array.au3 and not in your script, you should leave the func on there ~cdkid AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide!
jackyyll Posted March 4, 2006 Author Posted March 4, 2006 So how do i fix this? Do i just remove the Const from the UDF?
cdkid Posted March 4, 2006 Posted March 4, 2006 Yep. AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide!
nfwu Posted March 4, 2006 Posted March 4, 2006 (edited) Edited October 21, 2013 by Jos TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
greenmachine Posted March 4, 2006 Posted March 4, 2006 Guys, it's a beta vs. production issue. It's been answered before.My solution, and I'm surprised no one mentioned it yet, would be to get the beta (because it is best). http://www.autoitscript.com/autoit3/files/beta/autoit/
Developers Jos Posted March 4, 2006 Developers Posted March 4, 2006 As GreenMachine said: the Const keyword is only supported in the Beta release. The latest Autoit3 Beta supports separated Include directories so it is now possible to use separate Beta and Production Include versions. Only thing that needs to be updated still is AU3Check. Current version always looks in the latest production Include directory... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
jackyyll Posted March 4, 2006 Author Posted March 4, 2006 Uhh i am using beta O_o I have a beta folder in my H:/ Drive and an Autoit3 folder O_o
Developers Jos Posted March 4, 2006 Developers Posted March 4, 2006 Uhh i am using beta O_o I have a beta folder in my H:/ Drive and an Autoit3 folder O_o.....and how are you running the script using the Beta version in stead of the production version ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
jackyyll Posted March 4, 2006 Author Posted March 4, 2006 oops.. had it running 3.1.1 for some reason
Proph Posted March 9, 2006 Posted March 9, 2006 As GreenMachine said: the Const keyword is only supported in the Beta release.The latest Autoit3 Beta supports separated Include directories so it is now possible to use separate Beta and Production Include versions. Only thing that needs to be updated still is AU3Check. Current version always looks in the latest production Include directory...So all of the errors that AU3Check has been reporting to me with the latest beta is a false error then? I was really scratching my head wondering why I all of a sudden was getting a bunch of array.au3 errors in some of my scripts but my scripts seem to be working fine if I ignore the errors and try the compiled exe.Thanks for pointing that out JdeB!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now