What causes the error "Not all code paths return a value"?
<pre><code>public string Valid(OleDbDataReader myreader, int stval)
{
    object val = myreader[stval];

    if (val != DBNull.Value)
    {
        return val.ToString() ;
    }
    else
    {
        Convert.ToString(0);
    }
}
</code></pre>

<p>There is a Error " not all code paths return a value"
please Help</p>
