<?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 Hi Diana, in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/reading-an-edit-box/m-p/949920#M91983</link>
    <description>Hi Diana,

This is a short follow up. Even if Windows &lt;STRONG&gt;EDIT&lt;/STRONG&gt; control has a dedicated style &lt;STRONG&gt;ES_NUMBER&lt;/STRONG&gt; it doesn't solve the problem. Here is what &lt;STRONG&gt;MSDN&lt;/STRONG&gt; says about that style:

...
&lt;STRONG&gt;ES_NUMBER&lt;/STRONG&gt;
Allows only digits to be entered into the edit control. Note that, &lt;STRONG&gt;even with this set, it is still possible to paste non-digits into the edit control&lt;/STRONG&gt;.
...

It is very strange and I really surprised that Microsoft did not change it for a long time. It is good that Anthony's solution works for you.</description>
    <pubDate>Wed, 08 May 2013 04:44:09 GMT</pubDate>
    <dc:creator>SergeyKostrov</dc:creator>
    <dc:date>2013-05-08T04:44:09Z</dc:date>
    <item>
      <title>reading an edit box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/reading-an-edit-box/m-p/949915#M91978</link>
      <description>&lt;P&gt;Hi, when I read an edit box into a dialog box how can I force the reading only for real number?&lt;/P&gt;
&lt;P&gt;if I write into the edit box "87m", how can I read it and tell the user that there is a character in the string and not a number???&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2013 12:42:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/reading-an-edit-box/m-p/949915#M91978</guid>
      <dc:creator>diana_g_1</dc:creator>
      <dc:date>2013-05-06T12:42:37Z</dc:date>
    </item>
    <item>
      <title>You have to get in the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/reading-an-edit-box/m-p/949916#M91979</link>
      <description>&lt;P&gt;You have to get in the character string from the edit box a parse the string yourself. If you want to ignore non-numeric characters but keep decimal point and + and - signs, you have to search through the string for characters with ASCII codes that do not corespond to the digits 0-9, the decimal point and both of the signs. I have a routine to do this, but I am away from my office at present, so cannot help. Others here could probably help. If it is just a case of ignoring every thing except the digits 0 to 9, you can select 'number only' as a property of the edit box in the resource editor and anything entered other than those digits will be ignored automatically with no intervention from your program required. As you realise, wanting floating-point numbers with the correct syntax is rather more work, since you have to foresee cases where the -ve sign is not at the start and you may have more than one decimal point by mistake, and so on. Even more work is involved if you want to permit exponents!&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2013 13:13:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/reading-an-edit-box/m-p/949916#M91979</guid>
      <dc:creator>Anthony_Richards</dc:creator>
      <dc:date>2013-05-06T13:13:53Z</dc:date>
    </item>
    <item>
      <title>I only need to write floating</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/reading-an-edit-box/m-p/949917#M91980</link>
      <description>&lt;P&gt;I only need to write floating point and + and- signs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2013 13:21:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/reading-an-edit-box/m-p/949917#M91980</guid>
      <dc:creator>diana_g_1</dc:creator>
      <dc:date>2013-05-06T13:21:49Z</dc:date>
    </item>
    <item>
      <title>You are in luck, I found the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/reading-an-edit-box/m-p/949918#M91981</link>
      <description>&lt;P&gt;You are in luck, I found the attached on my home workstation!&lt;/P&gt;
&lt;P&gt;SUBROUTINE NORMAL(STRING,LEN)&lt;BR /&gt;CHARACTER*(LEN) STRING&lt;BR /&gt;CHARACTER*256 TEMP&lt;BR /&gt;INTEGER*4 LEN,ICOUNT&lt;BR /&gt;!&lt;BR /&gt;! COPY A NON-ZERO LENGTH STRING TO ITSELF, REMOVING&lt;BR /&gt;! NON-NUMERIC CHARACTERS EXCEPT '-' (IF FIRST CHARACTER) &lt;BR /&gt;! AND '.' IF IT IS THE FIRST OCCURRENCE OF '.'&lt;BR /&gt;!&lt;BR /&gt;! FILL TEMP WITH BLANKS&lt;BR /&gt;!&lt;BR /&gt;IF(LEN.EQ.0)RETURN&lt;BR /&gt;TEMP=' '&lt;BR /&gt;TEMP=ADJUSTR(ADJUSTL(TEMP))&lt;BR /&gt;ICOUNT=0&lt;BR /&gt;! INITIALISE FLAG USED TO DETECT FIRST OCCURRENCE OF A DECIMAL POINT&lt;BR /&gt;IDOT=0&lt;BR /&gt;DO I=1,LEN&lt;BR /&gt;IF(ICHAR(STRING(I:I)).GT.47.AND.ICHAR(STRING(I:I)).LT.58)THEN&lt;BR /&gt;ICOUNT=ICOUNT+1&lt;BR /&gt;TEMP(ICOUNT:ICOUNT)=STRING(I:I)&lt;BR /&gt;ENDIF&lt;BR /&gt;IF(ICHAR(STRING(I:I)).EQ.45.AND.I.EQ.1)THEN&lt;BR /&gt;ICOUNT=ICOUNT+1&lt;BR /&gt;TEMP(ICOUNT:ICOUNT)=STRING(I:I)&lt;BR /&gt;ENDIF&lt;BR /&gt;IF(ICHAR(STRING(I:I)).EQ.46.AND.IDOT.EQ.0) THEN&lt;BR /&gt;ICOUNT=ICOUNT+1&lt;BR /&gt;TEMP(ICOUNT:ICOUNT)=STRING(I:I)&lt;BR /&gt;! SET FLAG TO SHOW DECIMAL POINT DETECTED&lt;BR /&gt;IDOT=1&lt;BR /&gt;ENDIF&lt;BR /&gt;ENDDO&lt;BR /&gt;STRING=ADJUSTL(ADJUSTR(TEMP))&lt;BR /&gt;LEN=LEN_TRIM(STRING)&lt;BR /&gt;END SUBROUTINE NORMAL&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 06 May 2013 13:25:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/reading-an-edit-box/m-p/949918#M91981</guid>
      <dc:creator>Anthony_Richards</dc:creator>
      <dc:date>2013-05-06T13:25:29Z</dc:date>
    </item>
    <item>
      <title>thank you very much!!!!!!!!!!</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/reading-an-edit-box/m-p/949919#M91982</link>
      <description>&lt;P&gt;thank you very much!!!!!!!!!! it's perfect!!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2013 13:51:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/reading-an-edit-box/m-p/949919#M91982</guid>
      <dc:creator>diana_g_1</dc:creator>
      <dc:date>2013-05-06T13:51:36Z</dc:date>
    </item>
    <item>
      <title>Hi Diana,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/reading-an-edit-box/m-p/949920#M91983</link>
      <description>Hi Diana,

This is a short follow up. Even if Windows &lt;STRONG&gt;EDIT&lt;/STRONG&gt; control has a dedicated style &lt;STRONG&gt;ES_NUMBER&lt;/STRONG&gt; it doesn't solve the problem. Here is what &lt;STRONG&gt;MSDN&lt;/STRONG&gt; says about that style:

...
&lt;STRONG&gt;ES_NUMBER&lt;/STRONG&gt;
Allows only digits to be entered into the edit control. Note that, &lt;STRONG&gt;even with this set, it is still possible to paste non-digits into the edit control&lt;/STRONG&gt;.
...

It is very strange and I really surprised that Microsoft did not change it for a long time. It is good that Anthony's solution works for you.</description>
      <pubDate>Wed, 08 May 2013 04:44:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/reading-an-edit-box/m-p/949920#M91983</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2013-05-08T04:44:09Z</dc:date>
    </item>
  </channel>
</rss>

