<?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: Format a Number Col Edit Box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Format-a-Number-Col-Edit-Box/m-p/207758#M41842</link>
    <description>&lt;P&gt;Here is an example of how this message works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

now = Today();

then = now - In Days( 3 ) - In Hours( 5 );

before = then - In Days( 2 ) + In Hours( 3 );

New Window( "Format Number Col Edit Box",
	Outline Box( "Dates",
		Table Box(
			String Col Box( "Event", { "First", "Second", "Third" } ),
			nceb = Number Col Edit Box( "Date", { now, then, before } )
		)
	)
);

nceb &amp;lt;&amp;lt; Set Format( 30, 100 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know what kind of date format you want, so you might have to try different integers to get the one that you want.&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2019 18:57:21 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2019-05-13T18:57:21Z</dc:date>
    <item>
      <title>Format a Number Col Edit Box</title>
      <link>https://community.jmp.com/t5/Discussions/Format-a-Number-Col-Edit-Box/m-p/207544#M41836</link>
      <description>&lt;P&gt;All,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I would like to use a number col edit box similar to a number edit box in that, I would like to format it to display a date. However, as shown in the following example the format doesn't seem to be accepted the same way ? Can someone point out whats wrong in the following approach ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Using Number Col Edit Box &lt;BR /&gt;nR = 7; 
NEB1 = Number Col Edit Box("StartDate",Repeat(Today() - 30 * 24 * 60 * 60,nR)); 
NEB1 &amp;lt;&amp;lt; set format(format("ddMonyyyy"));

NEB2 = Number Col Edit Box("StartDate",Repeat(Today(), nR ));
NEB2 &amp;lt;&amp;lt; set format(format("ddMonyyyy"));

TB1 = Table Box(NEB1,NEB2);
			   
NW = New Window("test",TB1); 


// Using number edit box 
numbox = Number Edit Box( 0 ,&amp;lt;&amp;lt; set format(format("ddMonyyyy")), &amp;lt;&amp;lt; set(Today()));
 
NW1 = New Window( "Example", numbox );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 299px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17190i6441DE2F5464AF86/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 17:58:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Format-a-Number-Col-Edit-Box/m-p/207544#M41836</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2019-05-13T17:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Number Col Edit Box</title>
      <link>https://community.jmp.com/t5/Discussions/Format-a-Number-Col-Edit-Box/m-p/207592#M41841</link>
      <description>&lt;P&gt;Right, the protocol for the &lt;STRONG&gt;Number Edit Box&lt;/STRONG&gt; and the &lt;STRONG&gt;Number Col Edit Box&lt;/STRONG&gt; are not the same. In particular, the &lt;STRONG&gt;&amp;lt;&amp;lt; Set Format()&lt;/STRONG&gt; message is different for these two objects. Per the Scripting Guide, this message uses a number (code) for the format specification of the object that you want to use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 399px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17193iD137920DD8A82126/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 18:49:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Format-a-Number-Col-Edit-Box/m-p/207592#M41841</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-05-13T18:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Number Col Edit Box</title>
      <link>https://community.jmp.com/t5/Discussions/Format-a-Number-Col-Edit-Box/m-p/207758#M41842</link>
      <description>&lt;P&gt;Here is an example of how this message works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

now = Today();

then = now - In Days( 3 ) - In Hours( 5 );

before = then - In Days( 2 ) + In Hours( 3 );

New Window( "Format Number Col Edit Box",
	Outline Box( "Dates",
		Table Box(
			String Col Box( "Event", { "First", "Second", "Third" } ),
			nceb = Number Col Edit Box( "Date", { now, then, before } )
		)
	)
);

nceb &amp;lt;&amp;lt; Set Format( 30, 100 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know what kind of date format you want, so you might have to try different integers to get the one that you want.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 18:57:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Format-a-Number-Col-Edit-Box/m-p/207758#M41842</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-05-13T18:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Number Col Edit Box</title>
      <link>https://community.jmp.com/t5/Discussions/Format-a-Number-Col-Edit-Box/m-p/207926#M41847</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thank you . While that works, it is not intuitive that a number will implement some kind of formatting on the number col edit box, rather than the more intuitive format that the number edit box allows. I will be adding this to the wish list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 19:18:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Format-a-Number-Col-Edit-Box/m-p/207926#M41847</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2019-05-13T19:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Number Col Edit Box</title>
      <link>https://community.jmp.com/t5/Discussions/Format-a-Number-Col-Edit-Box/m-p/207933#M41849</link>
      <description>&lt;P&gt;This method of specifying the format is the original way. It is the way that we used to set the format for the Number Col Box object. I was surprised to see that the newer Number Col Edit Box object still used it.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 19:26:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Format-a-Number-Col-Edit-Box/m-p/207933#M41849</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-05-13T19:26:03Z</dc:date>
    </item>
  </channel>
</rss>

