Click here to Skip to main content
15,923,273 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to get the images as output in run time Pin
Ed.Poore1-Aug-06 21:49
Ed.Poore1-Aug-06 21:49 
GeneralRe: how to get the images as output in run time Pin
Kmurthy1-Aug-06 23:17
Kmurthy1-Aug-06 23:17 
GeneralRe: how to get the images as output in run time Pin
Ed.Poore1-Aug-06 23:20
Ed.Poore1-Aug-06 23:20 
GeneralRe: how to get the images as output in run time Pin
Kmurthy1-Aug-06 23:35
Kmurthy1-Aug-06 23:35 
GeneralRe: how to get the images as output in run time Pin
Ed.Poore2-Aug-06 1:10
Ed.Poore2-Aug-06 1:10 
QuestionCode Error! Pin
Shahzad.Aslam31-Jul-06 0:04
Shahzad.Aslam31-Jul-06 0:04 
AnswerRe: Code Error! Pin
rah_sin31-Jul-06 0:11
professionalrah_sin31-Jul-06 0:11 
AnswerRe: Code Error! [modified] Pin
J4amieC31-Jul-06 0:27
J4amieC31-Jul-06 0:27 
The reason you get this compilation error is that you method declares that it will return an instance of DataSet, but not all paths return such an instance. Look at what happens if an exception is raised.

To solve this, you need only to put this line:

Shahzad.Aslam wrote:
return m_Dataset;


outside of the try{}catch{} block.

public DataSet RSopen(string sQuery, OleDbConnection ConnObj, string szUseTransactionObj) 
        { 
            try 
            { 
                m_ConnObj=ConnObj; 
                //szUseTransactionObj="";
                m_Adapter.SelectCommand = new OleDbCommand(sQuery, m_ConnObj); 
                if ((szUseTransactionObj == "YES")) 
                { 
                    m_Adapter.SelectCommand.Transaction = m_DataConrol.GetTransactionObj();;                     
                }
                //szUseTransactionObj="";
                m_Adapter.Fill(m_Dataset); 
                m_CurrentRow = 1; 
                m_Table = m_Dataset.Tables["Chartofacct"];
                m_TotalRows = m_Table.Rows.Count; 
             } 
            catch (Exception e) 
            { 
                e.ToString(); 
            } 
          return m_Dataset; 
        } 



-- modified at 6:27 Monday 31st July, 2006


Questionusing cab files Pin
JacquesDP31-Jul-06 0:01
JacquesDP31-Jul-06 0:01 
Questionstartup form? Pin
psamy30-Jul-06 23:37
psamy30-Jul-06 23:37 
AnswerRe: startup form? Pin
Colin Angus Mackay30-Jul-06 23:38
Colin Angus Mackay30-Jul-06 23:38 
AnswerRe: startup form? Pin
rah_sin30-Jul-06 23:59
professionalrah_sin30-Jul-06 23:59 
Questionpls help with this print codes Pin
skyeddie30-Jul-06 23:15
skyeddie30-Jul-06 23:15 
AnswerRe: pls help with this print codes Pin
Vipin Venugopal31-Jul-06 0:20
Vipin Venugopal31-Jul-06 0:20 
GeneralRe: pls help with this print codes Pin
skyeddie31-Jul-06 16:53
skyeddie31-Jul-06 16:53 
GeneralRe: pls help with this print codes Pin
Vipin Venugopal31-Jul-06 17:58
Vipin Venugopal31-Jul-06 17:58 
GeneralRe: pls help with this print codes Pin
skyeddie31-Jul-06 18:54
skyeddie31-Jul-06 18:54 
GeneralRe: pls help with this print codes [modified] Pin
Vipin Venugopal31-Jul-06 19:03
Vipin Venugopal31-Jul-06 19:03 
GeneralRe: pls help with this print codes Pin
skyeddie31-Jul-06 19:16
skyeddie31-Jul-06 19:16 
GeneralRe: pls help with this print codes Pin
Vipin Venugopal31-Jul-06 19:21
Vipin Venugopal31-Jul-06 19:21 
GeneralRe: pls help with this print codes Pin
skyeddie31-Jul-06 20:10
skyeddie31-Jul-06 20:10 
GeneralRe: pls help with this print codes Pin
Vipin Venugopal31-Jul-06 20:24
Vipin Venugopal31-Jul-06 20:24 
Questionplacing the cursor Pin
sarojkumarjena30-Jul-06 23:09
sarojkumarjena30-Jul-06 23:09 
AnswerRe: placing the cursor Pin
stancrm30-Jul-06 23:29
stancrm30-Jul-06 23:29 
AnswerRe: placing the cursor Pin
LongRange.Shooter31-Jul-06 5:29
LongRange.Shooter31-Jul-06 5:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.