Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 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 Changed 17 years ago by Valik

  • Milestone set to 3.2.11.2
  • Owner set to Valik
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version: 3.2.11.2

comment:2 Changed 17 years ago by Valik

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

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Valik.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.