FileExist ( returns the complete path of the file

Report problems with documented functionality
User avatar
SL5
Posts: 860
Joined: 12 May 2015, 02:10
GitHub: sl5net
Contact:

FileExist ( returns the complete path of the file

24 Dec 2018, 17:03

i have a different result if i add a space beetween FileExist and (

1)
fileEx := FileExist ( ActionList postFixGenerated ) ; If no file is found, an empty string is returned.

or

2)
fileEx := FileExist( ActionList postFixGenerated ) ; If no file is found, an empty string is returned.

1) returns the complete path of the file
2) returns false (thats what i expected)

i am using: version: v1.1.30.01 - November 11, 2018
User avatar
nnnik
Posts: 4274
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: FileExist ( returns the complete path of the file

24 Dec 2018, 17:28

1) does not call the function - you cannot put spaces between the function and the bracket.
Recommends AHK Studio
User avatar
SL5
Posts: 860
Joined: 12 May 2015, 02:10
GitHub: sl5net
Contact:

Re: FileExist ( returns the complete path of the file

24 Dec 2018, 18:27

nnnik wrote:
24 Dec 2018, 17:28
1) does not call the function - you cannot put spaces between the function and the bracket.
found: it happens with all function calls:
https://autohotkey.com/board/topic/8940 ... -me-crazy/
but probably will changed with version 2 its sayd here.

I do not know that from any other programming language or script language i have used (except the document description languages ​​like XML HTML and so on).
it took my half the day to find this space problem :-D https://youtu.be/iD30amFYDgw
User avatar
nnnik
Posts: 4274
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: FileExist ( returns the complete path of the file

24 Dec 2018, 20:02

That won't change in v2 - as far as I can tell there are no plans for that.
Recommends AHK Studio

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 17 guests