Modify

#2217 closed Bug (No Bug)

IniRead + Boolean default.

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: 3.3.8.1 Severity: None
Keywords: Cc:

Description

IniRead($File, $Section, $Key, False)

If the $Key doesn't exist, function returns string False instead of Boolean keyword False.

Attachments (0)

Change History (5)

comment:1 by AdmiralAlkex, on Jun 9, 2012 at 8:20:24 PM

That is not a bug, that is a feature request.

And it's not booleans. It's numbers and everything you pass to it.

AutoIt most likely uses GetPrivateProfileString. Look it up on MSDN.

comment:2 by anonymous, on Jun 9, 2012 at 9:10:14 PM

Wait. I write function's parameter False as Boolean, not "False" as string. Function should return the specified value without changing its type.

comment:3 by Valik, on Jun 10, 2012 at 11:01:52 PM

Resolution: No Bug
Status: newclosed

The function very clearly states that it returns the default string. No bug. No feature request, the behavior will not be changed.

comment:4 by anonymous, on Jun 11, 2012 at 7:54:39 PM

You can use '1' and '0' as replace for True/False.

comment:5 by Zedna, on Jun 11, 2012 at 7:55:53 PM

Sorry, previous post is from me/Zedna. I forgot to signature me.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.