<?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 Re: How do i convert Type'Name&amp;quot; to String in order to get value of Column Property&amp;quot;Spec Limits&amp;quot; in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-i-convert-Type-Name-quot-to-String-in-order-to-get-value/m-p/655776#M84477</link>
    <description>&lt;P&gt;Thanks Jim.&lt;/P&gt;&lt;P&gt;the solution helped me a lot.&lt;/P&gt;&lt;P&gt;i will study more about how to treat list &amp;amp; element.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 00:25:13 GMT</pubDate>
    <dc:creator>HyeonRyeolCHO</dc:creator>
    <dc:date>2023-07-06T00:25:13Z</dc:date>
    <item>
      <title>How do i convert Type'Name" to String in order to get value of Column Property"Spec Limits"</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-i-convert-Type-Name-quot-to-String-in-order-to-get-value/m-p/655344#M84442</link>
      <description>&lt;P&gt;Hi ALL.&lt;/P&gt;
&lt;P&gt;I am coder and work for OSAT industry.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am trying to make JSL script.&lt;/P&gt;
&lt;P&gt;i succeed&amp;nbsp; getting Column Property "Spec Limits" But&amp;nbsp; it come as List.&lt;/P&gt;
&lt;P&gt;when i get List"Spec Limits" element in order to get value of LSL &amp;amp; USL, the elements type is Name.&amp;nbsp;( I am not get used to this type &amp;amp; JSL language)&lt;/P&gt;
&lt;P&gt;when i try to convert this Name type to String, i couldn't find function(As String).&lt;/P&gt;
&lt;P&gt;Q1. is there any function can convert type Name to String?&lt;/P&gt;
&lt;P&gt;Q2. If there is no fucntion, how can i parse LSL,USL value from column property "Spec Limits"?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Data Table( "ABC.stdparametric" );
dt &amp;lt;&amp;lt; Add Rows( 2, 0 );
number_of_columns = N Col( dt );
//------------------------------------------------------------
start_point = 1; // Initialze the start-point variable. and looking for where testItem start.
For( j = 1, j &amp;lt;= N Col( dt ), j++,
	colName = Column( dt, j ) &amp;lt;&amp;lt; Get Name;
	If( colName == "ATR_Present",
		start_point = j; // Assign the column index if the name matches
		Break(); // Exit the loop after finding the first occurrence
	);
);
start_point = start_point + 1;
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --For( i = start_point,
	i &amp;lt;= number_of_columns, i++, // from 28-boone;
	columnIndex = 50;
	columnName = Column( dt, columnIndex ) &amp;lt;&amp;lt; Get Name;

// Get the specification limits from column
	specLimits = Column( dt, columnIndex ) &amp;lt;&amp;lt; Get Property( "Spec Limits" );
	lsl = specLimits[1];
	usl = specLimits[2];
	usl_value = Eval( Parse( usl ) );  // not working

	lsl_value = Eval( Parse( lsl ) );  // not working
	dt:columnName[1] = lsl;
	dt:columnName[2] = usl;
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 10:31:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-i-convert-Type-Name-quot-to-String-in-order-to-get-value/m-p/655344#M84442</guid>
      <dc:creator>HyeonRyeolCHO</dc:creator>
      <dc:date>2023-07-05T10:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do i convert Type'Name" to String in order to get value of Column Property"Spec Limits"</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-i-convert-Type-Name-quot-to-String-in-order-to-get-value/m-p/655357#M84443</link>
      <description>&lt;P&gt;Here is a simple example that shows how to retrieve the numeric value of the LSL and USL from the retrieved Spec Limits List&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/semiconductor capability.jmp");

specLimits = column( dt, "NPN1" ) &amp;lt;&amp;lt; get property( "Spec Limits" );
usl_value = specLimits["USL"];
usl_value = specLimits["LSL"];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There are also some JSL features that will simplify your code.&amp;nbsp; Below is a modification of your script that you may find advantageous.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Data Table( "ABC.stdparametric"  );
dt &amp;lt;&amp;lt; Add Rows( 2, 0 );
number_of_columns = N Col( dt );
//------------------------------------------------------------
/*start_point = 1; // Initialze the start-point variable. and looking for where testItem start.
For( j = 1, j &amp;lt;= N Col( dt ), j++,
	colName = Column( dt, j ) &amp;lt;&amp;lt; Get Name;
	If( colName == "ATR_Present",
		start_point = j; // Assign the column index if the name matches
		Break(); // Exit the loop after finding the first occurrence
	);
);*/
columnNames = dt &amp;lt;&amp;lt; get column names( string );
start_point = Contains( columnNames, "ATR_Present" ) + 1;
//start_point = start_point + 1;
//------------------------------------------------------------
For( i = start_point, i &amp;lt;= number_of_columns, i++, // from 28-boone;
	//columnIndex = 50;
	//columnName = Column( dt, columnIndex ) &amp;lt;&amp;lt; Get Name;

	// Get the specification limits from column
	specLimits = Column( dt, columnNames[i] ) &amp;lt;&amp;lt; Get Property( "Spec Limits" );
	/*lsl = specLimits[1];
	usl = specLimits[2];
	usl_value = Eval( Parse( usl ) );  // not working

	lsl_value = Eval( Parse( lsl ) );  // not working
	dt:columnName[1] = lsl;
	dt:columnName[2] = usl;*/
	Column( dt, columnNames[i] )[1] = specLimits["USL"];
	Column( dt, columnNames[i] )[2] = specLimits["LSL"];
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jul 2023 11:22:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-i-convert-Type-Name-quot-to-String-in-order-to-get-value/m-p/655357#M84443</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-07-05T11:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do i convert Type'Name" to String in order to get value of Column Property"Spec Limits"</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-i-convert-Type-Name-quot-to-String-in-order-to-get-value/m-p/655358#M84444</link>
      <description>&lt;P&gt;Here are some options&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

specs = Column(dt, "NPN1") &amp;lt;&amp;lt; Get Property("Spec Limits");
// lsl_val = Arg(specs[1], 1);
// usl_val = Arg(specs[2], 1);
lsl_val = specs["LSL"];
usl_val = specs["USL"];&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jul 2023 10:53:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-i-convert-Type-Name-quot-to-String-in-order-to-get-value/m-p/655358#M84444</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-07-05T10:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do i convert Type'Name" to String in order to get value of Column Property"Spec Limits"</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-i-convert-Type-Name-quot-to-String-in-order-to-get-value/m-p/655364#M84448</link>
      <description>&lt;P&gt;The other answers are the ones you really want, but the answer to converting names to strings is the char() function which will make some sort of string out of any JSL type.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;e = Expr( xyzzy );
Show( Type( Name Expr( e ) ) ); // Type(Name Expr(e)) = "Name";
Show( Char( Name Expr( e ) ) ); // Char(Name Expr(e)) = "xyzzy";
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jul 2023 11:30:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-i-convert-Type-Name-quot-to-String-in-order-to-get-value/m-p/655364#M84448</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-07-05T11:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do i convert Type'Name" to String in order to get value of Column Property"Spec Limits"</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-i-convert-Type-Name-quot-to-String-in-order-to-get-value/m-p/655776#M84477</link>
      <description>&lt;P&gt;Thanks Jim.&lt;/P&gt;&lt;P&gt;the solution helped me a lot.&lt;/P&gt;&lt;P&gt;i will study more about how to treat list &amp;amp; element.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 00:25:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-i-convert-Type-Name-quot-to-String-in-order-to-get-value/m-p/655776#M84477</guid>
      <dc:creator>HyeonRyeolCHO</dc:creator>
      <dc:date>2023-07-06T00:25:13Z</dc:date>
    </item>
  </channel>
</rss>

