views:

160

answers:

1

quick question.. I'm trying to make two variables appear in one text box but I'm not sure how to do so

Here's what I have.

        title1.text = dg_post.selectedItem.post_title;
        date1.text = dg_post.selectedItem.post_date;

I'd like to have post_title and post_date appear in the title1 box and remove the date1 box altogether.

thanks.

+2  A: 

Adjust to taste:

title1.text = dg_post.selectedItem.post_title + " " + dg_post.selectedItem.post_date;
Cory Petosky