Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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, 14 years ago

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, 14 years ago

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, 14 years ago

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, 14 years ago

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

comment:5 by Zedna, 14 years ago

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.