Convert to array

 Action    name: MakeArray
 
This command allows you to create arrays and change their sizes.

The arrays are created in 2 simple steps:

  1. Create the first element of array using the data
     definition commands (data, string, structs)
  2. Apply the array command to the created data item.
Enter array size in current array elements (not bytes). The suggested array size is the minimum of the following values:
        - the address of the next item with a cross reference
        - the address of the next user-defined name
For string literals, you can use this command to change the length of the string.

The dialog box contains the following fields:

Items on a line (meaningless for string literals):

        0               place maximal number of items on a line
        other value     number of items on a line
Please note that the margin parameter affects the number of items on a line too.

Alignment (meaningless for string literals):

        -1              do not align items
        0               align automatically
        other value     width of each item
 Signed elements:       if checked, IDA treats all elements as signed numbers.
                        only meaningful for numbers (not for offsets and
                        segments and strings)
 Display indexes:       if checked, IDA will display the indexes of array
                        elements in the form of comments (0,1,2...)
                        This option is ignored for arrays of expanded structures.
 Create as array:       if not checked, IDA will create a separate item for
                        each array element. Useful for creating huge arrays.
                        If the box is unchecked when this command is
                        applied to string literals, IDA will create many
                        string literals instead of one big string.
If applied to a variable-sized structure, this command is used to specify the overall size of the structure. You cannot create arrays of variable-sized structures.

See also

 Edit submenu
 How to Enter a Number.
Index | Previous topic | Next topic