<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Find and Delete all formulas present in a table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Find-and-Delete-all-formulas-present-in-a-table/m-p/258949#M50847</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 1000 columns in a table with 500 columns have formulas. I want to write a jsl script which will find the column having formula and delete the formula. One line code is highly recommended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks :)&lt;/img&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 19 Apr 2020 17:11:08 GMT</pubDate>
    <dc:creator>Rajat</dc:creator>
    <dc:date>2020-04-19T17:11:08Z</dc:date>
    <item>
      <title>Find and Delete all formulas present in a table</title>
      <link>https://community.jmp.com/t5/Discussions/Find-and-Delete-all-formulas-present-in-a-table/m-p/258949#M50847</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 1000 columns in a table with 500 columns have formulas. I want to write a jsl script which will find the column having formula and delete the formula. One line code is highly recommended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2020 17:11:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-and-Delete-all-formulas-present-in-a-table/m-p/258949#M50847</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2020-04-19T17:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Delete all formulas present in a table</title>
      <link>https://community.jmp.com/t5/Discussions/Find-and-Delete-all-formulas-present-in-a-table/m-p/258951#M50848</link>
      <description>&lt;P&gt;Interactively you can do this with the Standardize Attributes dialog, but if you want a script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
numCols = dt &amp;lt;&amp;lt; get column names( numeric );
For( i = 1, i &amp;lt;= N Items( numCols ), i++,
	Try( Column( dt, numCols[i] ) &amp;lt;&amp;lt; delete formula )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and if you want a one line script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );dt = Current Data Table();numCols = dt &amp;lt;&amp;lt; get column names( numeric );For( i = 1, i &amp;lt;= N Items( numCols ), i++,Try( Column( dt, numCols[i] ) &amp;lt;&amp;lt; delete formula ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;It is possible to shorten it down but make the script work a little longer&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = 1, i &amp;lt;= N cols(current data table()), i++,
	Try( Column( i ) &amp;lt;&amp;lt; delete formula )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 19 Apr 2020 18:28:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-and-Delete-all-formulas-present-in-a-table/m-p/258951#M50848</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-19T18:28:28Z</dc:date>
    </item>
  </channel>
</rss>

