# Create a growing Table with AppendTo?

**URL:** <https://community.wolfram.com/t/create-a-growing-table-with-appendto/10068>\
**Category:** Questions\
**Created:** [February 25, 2017, 5:21pm UTC](https://community.wolfram.com/t/create-a-growing-table-with-appendto/10068 "2017-02-25T17:21:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![billnormal](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/billnormal/32/8911_2.png) [@billnormal](https://community.wolfram.com/u/billnormal)\
**Post date:** [February 25, 2017, 5:21pm UTC](https://community.wolfram.com/t/create-a-growing-table-with-appendto/10068/1 "2017-02-25T17:21:29Z")

</div>

I’m almost done my first program. Thanks in large part to the help I’ve received from the community. Thanks Guys. The last stupid piece that’s giving me trouble is making a growing table with the [AppendTo](http://reference.wolfram.com/language/ref/AppendTo.html) command.

my identify command links to another list of commands to give me input I’m adding to the table

```
identify = Flatten[ToExpression[Nearest[list, TextRecognize[im], 1]]]

gridlist = {"Name", "Date", "Informantion", "Number", "Refrence"}

addaline = AppendTo[gridlist, identify]

Text[Grid[gridlist, Frame -> All]]

```

Now, the problem is with the [AppendTo](http://reference.wolfram.com/language/ref/AppendTo.html) command everything gets inputted before the first list ends. I need it to append after the list ends, to add another row to my gridlist.

**Copied from the AppendTo link:**

It’s doing this

```
In[1] i = {1,2,4,9}; AppendTo[i,16]

Out[1] {1,2,4,9,16}

```

When I want it to do this

```
In[1] m = {{a, b}, {c, d}}; AppendTo[m, {e, f}]

Out[2]:= {{a,b},{c,d},{e,f}}

```

It’s coming out as

```
{"Name", "Date", "Informantion", "Number", "Refrence",{"Tony Stark", "Jan 03 2017","Iron Man", "8.53", 
"Avengers 34"}}

```

and I don’t know how to get it to come out as.

```
{"Name", "Date", "Informantion", "Number", "Refrence"},{"Tony Stark", "Jan 03 2017","Iron Man", "8.53", 
"Avengers 34"}

```

The difference being; one is a properly formatted grid command, the other is no. Now, I know the key line here is the addaline command. My first thought would be to evaluate the identify command but since it’s refrencing another list of commands I don’t know how to substitute it out, or turn it into a list before applying the AppendTo command… Help?

---

<div class="post-metadata">

**Author:** ![sghuisman](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sghuisman/32/27850_2.png) [@sghuisman](https://community.wolfram.com/u/sghuisman)\
**Post date:** [February 25, 2017, 6:16pm UTC](https://community.wolfram.com/t/create-a-growing-table-with-appendto/10068/2 "2017-02-25T18:16:48Z")

</div>

That list thing is not valid Wolfram Language, But I guess you want something like:

```
identify = {"Tony Stark", "Jan 03 2017", "Iron Man", "8.53", "Avengers 34"}
gridlist = {"Name", "Date", "Informantion", "Number", "Refrence"}
addaline = {gridlist, identify}

```

giving:

```
{{Name,Date,Informantion,Number,Refrence},{Tony Stark,Jan 03 2017,Iron Man,8.53,Avengers 34}}

```

---

<div class="post-metadata">

**Author:** ![billnormal](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/billnormal/32/8911_2.png) [@billnormal](https://community.wolfram.com/u/billnormal)\
**Post date:** [February 25, 2017, 10:49pm UTC](https://community.wolfram.com/t/create-a-growing-table-with-appendto/10068/3 "2017-02-25T22:49:35Z")

</div>

Yeah. The identify command reads the image and picks the appropriate command to run on the dynamic image “im” (each magazine has it’s own crop coordinates), and in the end I’m going to Text[Grid[title, Frame → All]] the whole thing.
