user53790: Well, I'm trying to use a HMI display and this HMI storing datas in separeta addreses. Such as integers addr. is between 0x80000 to 0x9ffff and also for string's addr is between 0 to 0x1ffff.
At this point I want to make function which is return integer if addr is a integer addr OR it will return string if addr is String addr. is that possible to make two kind of return type for a method.
I will detect integer or string from addr value like this:
????    HMT_SendCMD_ReadVPN16(INT32U Addr)  

if((Addr > 0x00080000) || (Addr < 0x0009FFFF))
    {
        return int (); // at here it call a fonction and it will return integer
    }

else if(Addr < 0x0001FFFF)
    {
         return String (); // at here it call a fonction and it will return String
    }


user10794: 
is that possible to make two kind of return type for a method

No. Functions are declared with a single return type. What is the point anyway of returning a blank string?
You need to redesign.

53790: <p>Well, I'm trying to use a HMI display and this HMI storing datas in separeta addreses. Such as integers addr. is between 0x80000 to 0x9ffff and also for string's addr is between 0 to 0x1ffff.</p>
<p><strong>At this point I want to make function which is return integer if addr is a integer addr OR it will return string if addr is String addr. is that possible to make two kind of return type for a method.</strong></p>
<p>I will detect integer or string from addr value like this:</p>
<pre><code>????    HMT_SendCMD_ReadVPN16(INT32U Addr)  

if((Addr &gt; 0x00080000) || (Addr &lt; 0x0009FFFF))
    {
        return int (); // at here it call a fonction and it will return integer
    }

else if(Addr &lt; 0x0001FFFF)
    {
         return String (); // at here it call a fonction and it will return String
    }
</code></pre>
 10794: <blockquote>
<p>is that possible to make two kind of return type for a method</p>
</blockquote>
<p>No. Functions are <em>declared</em> with a single return type. What is the point anyway of returning a blank string?</p>
<p>You need to redesign.</p>
