Note that there are some explanatory texts on larger screens.

plurals
  1. POOne method not seeing another method in the same namespace
    primarykey
    data
    text
    <p>Why do these errors occur, and how can they be fixed?</p> <blockquote> <p>Error 1 Expected class, delegate, enum, interface, or struct C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\DAL.cs 9 19 EnterData</p> <p>Error 2 Expected class, delegate, enum, interface, or struct C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\DAL.cs 11 54 EnterData</p> <p>Error 3 Expected class, delegate, enum, interface, or struct C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\DAL.cs 25 23 EnterData</p> <p>Error 4 Expected class, delegate, enum, interface, or struct C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\DAL.cs 27 57 EnterData</p> <p>Error 5 Type or namespace definition, or end-of-file expected C:\Documents and Settings\agordon\My Documents\Visual Studio 208\Projects\lomdb\EnterData\DataEntry\DAL.cs 39 9 EnterData</p> <p>Error 8 The name 'PopulateMainForm' does not exist in the current context C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\WebForm1.aspx.cs 25 53 EnterData</p> <p>Error 9 The name 'PopulateBatchTable' does not exist in the current context C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\WebForm1.aspx.cs 26 50 EnterData</p> <p>Error 10 The name 'PopulateProblemTable' does not exist in the current context C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\WebForm1.aspx.cs 27 54 EnterData</p> <p>Error 11 The name 'PopulateSpecimenTable' does not exist in the current context C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\WebForm1.aspx.cs 28 56 EnterData</p> </blockquote> <p>I am keeping the IList classes in a file called DAL.cs in the same directory:</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Web; using RadarGraphInsertDLL; namespace EnterData.DataEntry { public static IList&lt;LOMDLL.Lom_Batch&gt; PopulateBatchTable() { IList&lt;LOMDLL.Lom_Batch&gt; BatchTable = new IList&lt;LOMDLL.Lom_Batch&gt;(); try { } catch (Exception e) { } return BatchTable; } public static IList&lt;LOMDLL.Lom_Problem&gt; PopulateProblemTable() { IList&lt;LOMDLL.Lom_Problem ProblemTable = new IList&lt;LOMDLL.Lom_Problem(); try { } catch (Exception e) { } return ProblemTable; } public static IList&lt;LOMDLL.Lom_Specimen&gt; PopulateSpecimenTable() { IList&lt;LOMDLL.Lom_Specimen SpecimenTable = new IList&lt;LOMDLL.Lom_Specimen(); try { } catch (Exception e) { } return SpecimenTable; } public static LOMDLL.Main_Lom_Form PopulateMainForm() { //populate class LOMDLL.Main_Lom_Form TheForm = new LOMDLL.Main_Lom_Form(); try { TheForm.lom_number = lom_numberTextBox.Text.ToInt(); TheForm.identified_by = identified_byTextBox.Text; TheForm.occurrence_date = occurrence_dateTextBox.Text.ToDateTime(); //TheForm.pre_contact = pre_contactTextBox.Text; //need to create this texdtbox //TheForm.pre_practice_code = pre_practice_codeTextBox.Text; //create this TheForm.report_by = report_byTextBox.Text; TheForm.report_date = report_dateTextBox.Text.ToDateTime(); TheForm.section_c_comments = section_c_commentsTextBox.Text; TheForm.section_c_issue_error_identified_by = section_c_issue_error_identified_byTextBox.Text; TheForm.section_d_investigation = section_d_investigationTextBox.Text; TheForm.section_e_corrective_action = section_e_corrective_actionTextBox.Text; TheForm.section_f_comments = section_f_commentsTextBox.Text; } catch(Exception e) { } return TheForm; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload