Modify ↓
Opened on Feb 28, 2008 at 2:36:20 PM
Closed on Feb 28, 2008 at 3:41:33 PM
Last modified on Feb 28, 2008 at 3:42:22 PM
#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 , on Feb 28, 2008 at 3:41:33 PM
| Milestone: | → 3.2.11.2 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
comment:2 by , on Feb 28, 2008 at 3:42:22 PM
This is the expected behavior. I have documented how quoting works.
Note:
See TracTickets
for help on using tickets.

Fixed in version: 3.2.11.2