Modify

Opened 17 years ago

Closed 17 years ago

#46 closed Bug (Fixed)

Wrong example _ArrayTrim in help

Reported by: Emiel Wieldraaijer Owned by: Gary
Milestone: 3.2.11.0 Component: Documentation
Version: 3.2.10.0 Severity:
Keywords: _ArrayTrim Documentation Cc:

Description

#include <Array.au3>

Dim $avArray[5]
$avArray[0] = "ab"
$avArray[1] = "bc"
$avArray[2] = "cd"
$avArray[3] = "de"
$avArray[4] = "ef"

$aNewArray = _ArrayTrim( $avArray, 1, 1,1,3)
_ArrayDisplay($aNewArray,"demo _ArrayTrim")
Exit

;The new array in order should now be "a", "b" , "c" , "d", "e".

Should Be

#include <Array.au3>

Dim $avArray[5]
$avArray[0] = "ab"
$avArray[1] = "bc"
$avArray[2] = "cd"
$avArray[3] = "de"
$avArray[4] = "ef"

$aNewArray = _ArrayTrim( $avArray, 1, 1,0,4)
_ArrayDisplay($aNewArray,"demo _ArrayTrim")
Exit

;The new array in order should now be "a", "b" , "c" , "d", "e".

_ArrayTrim( $avArray, 1, 1,0,4) instead of _ArrayTrim( $avArray, 1, 1,1,3)

Attachments (0)

Change History (4)

comment:1 Changed 17 years ago by Gary

  • Resolution set to fixed
  • Status changed from new to closed

(In [2822]) Fixed #46: Doc Example for _ArrayTrim

comment:2 Changed 17 years ago by Gary

  • Milestone set to 3.2.11.0
  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:3 Changed 17 years ago by Gary

  • Owner set to Gary
  • Status changed from reopened to assigned

comment:4 Changed 17 years ago by Gary

  • Resolution set to fixed
  • Status changed from assigned to closed

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 Gary.
Author


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

 
Note: See TracTickets for help on using tickets.