Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#145 closed Bug (Fixed)

IniWrite() and whitespaces

Reported by: Lagoon Owned by: Valik
Milestone: 3.2.11.2 Component: AutoIt
Version: 3.2.10.0 Severity:
Keywords: Cc:

Description

The IniWrite function requires two pairs of quotes, if any white spaces are to be included in the value argument. Is this expected functionality? If it is, perhaps it could be mentioned in the documentation.

const $FILE = "iniTest.ini"
const $SECTION = "test"

IniWrite($FILE, $SECTION, "key1", '"	!"') ; In my opinion the second pair of quotes shouldn't really be necessary.
$var = "whitespace:"  &  IniRead($FILE, $SECTION, "key1", "error")
MsgBox(262144,'Debug line ~' & @ScriptLineNumber,'Selection:' & @lf & '$var' & @lf & @lf & 'Return:' & @lf & $var) ;### Debug MSGBOX
FileDelete($FILE)

Attachments (0)

Change History (2)

comment:1 by Valik, 18 years ago

Milestone: 3.2.11.2
Owner: set to Valik
Resolution: Fixed
Status: newclosed

Fixed in version: 3.2.11.2

comment:2 by Valik, 18 years ago

This is the expected behavior. I have documented how quoting works.

Modify Ticket

Action
as closed The owner will remain Valik.

Add Comment


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