# Create new Tab File from MemoryFeatureLayer

**URL:** <https://community.thinkgeo.com/t/create-new-tab-file-from-memoryfeaturelayer/7033>\
**Category:** Silverlight\
**Created:** [December 24, 2013, 5:20am UTC](https://community.thinkgeo.com/t/create-new-tab-file-from-memoryfeaturelayer/7033 "2013-12-24T05:20:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syarief](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/eb9ed0/32.png) [@Syarief](https://community.thinkgeo.com/u/Syarief)\
**Post date:** [December 24, 2013, 5:20am UTC](https://community.thinkgeo.com/t/create-new-tab-file-from-memoryfeaturelayer/7033/1 "2013-12-24T05:20:36Z")

</div>

Hello,  
  
  
  
How&nbsp;can&nbsp;I&nbsp;create&nbsp;a&nbsp;new&nbsp;Tab&nbsp;File&nbsp;from&nbsp;the&nbsp;MemoryFeatureLayer&nbsp;object.  
  
  
  
Thanks&nbsp;in&nbsp;advance.

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [December 24, 2013, 11:19pm UTC](https://community.thinkgeo.com/t/create-new-tab-file-from-memoryfeaturelayer/7033/2 "2013-12-24T23:19:30Z")

</div>

Hi&nbsp;Syarief,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Could&nbsp;you&nbsp;please&nbsp;try&nbsp;the&nbsp;codes&nbsp;below&nbsp;to&nbsp;see&nbsp;if&nbsp;it&nbsp;is&nbsp;what&nbsp;you&nbsp;want?&nbsp;  
&nbsp;`InMemoryFeatureLayer inMemoryLayer;\This is InMemoryFeatureLayer.TabFeatureSource.CreateTabFile(@"D:\US.tab", new TabDbfColumn[] { new TabDbfColumn("Id", DbfColumnType.String, 100, 0, false, true) }, inMemoryLayer.InternalFeatures);TabFeatureLayer.BuildIndexFile(@"D:\US.tab", BuildIndexMode.DoNotRebuild); `&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Johnny&nbsp;  
&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![Syarief](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/eb9ed0/32.png) [@Syarief](https://community.thinkgeo.com/u/Syarief)\
**Post date:** [December 26, 2013, 9:42am UTC](https://community.thinkgeo.com/t/create-new-tab-file-from-memoryfeaturelayer/7033/3 "2013-12-26T09:42:09Z")

</div>

Thanks&nbsp;a&nbsp;lot&nbsp;johnny,  
  
  
  
but&nbsp;now&nbsp;I&nbsp;changed&nbsp;my&nbsp;mind&nbsp;to&nbsp;save&nbsp;it&nbsp;to&nbsp;shapefile&nbsp;(shp).  
  
  
  
Can&nbsp;I&nbsp;use&nbsp;the&nbsp;code&nbsp;in&nbsp;this&nbsp;link&nbsp;[Create&nbsp;Shapefiles&nbsp;From&nbsp;Scratch](http://thinkgeo.com/forums/MapSuite/tabid/143/aft/5399/Default.aspx)&nbsp;?  
  
  
  
Thanks.

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [December 30, 2013, 1:46am UTC](https://community.thinkgeo.com/t/create-new-tab-file-from-memoryfeaturelayer/7033/4 "2013-12-30T01:46:02Z")

</div>

Hi&nbsp;Syarief,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;the&nbsp;sample&nbsp;code&nbsp;in&nbsp;"Create&nbsp;Shapefiles&nbsp;From&nbsp;Scratch"&nbsp;will&nbsp;works&nbsp;for&nbsp;you.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Our&nbsp;main&nbsp;APIs&nbsp;has&nbsp;been&nbsp;little&nbsp;change&nbsp;for&nbsp;keep&nbsp;steady.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![Syarief](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/eb9ed0/32.png) [@Syarief](https://community.thinkgeo.com/u/Syarief)\
**Post date:** [January 12, 2014, 6:34am UTC](https://community.thinkgeo.com/t/create-new-tab-file-from-memoryfeaturelayer/7033/5 "2014-01-12T06:34:34Z")

</div>

Thanks&nbsp;Don.

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [January 12, 2014, 7:23pm UTC](https://community.thinkgeo.com/t/create-new-tab-file-from-memoryfeaturelayer/7033/6 "2014-01-12T19:23:15Z")

</div>

Syarief,&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;there&nbsp;is&nbsp;any&nbsp;other&nbsp;question,&nbsp;don’t&nbsp;hesitate&nbsp;to&nbsp;let&nbsp;us&nbsp;know.&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Johnny
