Sign in to follow this  
Followers 0
jackyyll

Array.au3 problem O_o

16 posts in this topic

Whenever i try to use anythign that involves array.au3 i get this error :o

H:\AutoIt3\Include\Array.au3 (171) : ==> Badly formatted "Func" statement.: 
Func _ArrayDisplay(Const ByRef $avArray, $sTitle) 
Func _ArrayDisplay(^ ERROR

Anyone know why? O_o

Share this post


Link to post
Share on other sites



simply remove the word "Func"

_ArrayDisplay(Const ByRef $avArray, $sTitle)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

simply remove the word "Func"

_ArrayDisplay(Const ByRef $avArray, $sTitle)

8)

You mean the word 'Const'?

[center]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.[/center]

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

I think he means "Func" isn't needed there. Else there would have to be EndFunc too ;p

It's the Array.au3 file guys... don't you think it has an EndFunc there? Look at where the error is pointing also.

[center]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.[/center]

Share this post


Link to post
Share on other sites

You mean the word 'Const'?

That was good but i think the "Both"

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

So how do i fix this? Do i just remove the Const from the UDF?

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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...


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Uhh i am using beta O_o I have a beta folder in my H:/ Drive and an Autoit3 folder O_o

Share this post


Link to post
Share on other sites

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 ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

oops.. had it running 3.1.1 for some reason :o

Share this post


Link to post
Share on other sites

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! :o

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  
Followers 0