# Reducing code

**URL:** <https://forum.kirupa.com/t/reducing-code/280476>\
**Category:** Uncategorized\
**Created:** [January 28, 2009, 3:49am UTC](https://forum.kirupa.com/t/reducing-code/280476 "2009-01-28T03:49:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yani](https://avatars.discourse-cdn.com/v4/letter/y/e9c0ed/32.png) [@yani](https://forum.kirupa.com/u/yani)\
**Post date:** [January 28, 2009, 3:49am UTC](https://forum.kirupa.com/t/reducing-code/280476/1 "2009-01-28T03:49:33Z")

</div>

Hi, just going through my code and I want to reduce it where possible.

is there a way to combine these two lines into one?

```auto
this.mainClip_mc.item0.percentage_txt.setTextFormat(perTextFormat);
this.mainClip_mc.item1.percentage_txt.setTextFormat(perTextFormat);

```
