Entwickler-Ecke

C# - Die Sprache - bool methode


nesa - Do 28.02.08 17:17
Titel: bool methode
hallo!
ich habe folgenden code:

C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
  public bool checkValidationTheory()
  { 
     //check if width is correct
    if (int.TryParse(TextBoxCellWidthTheory_absent_number.Text.ToString(),
        out check_width) == false)
        error_absent_number_theory = true;

    if(error_absent_number_theory = true )
        return true;

  }

diesen code brauche ich um zu überprüfen ob di eingabe des benutzers richtig ist. jedoch kommt bei mir immer folgende fehlermeldung:
klasse,delegant,enumeration, schnittstelle oder struktur erwartet.
weiß jemand woran das liegen kann?
danke im voraus.
lg nesa


JüTho - Do 28.02.08 18:18

Ich liebe diese Mehrfach-Posts, siehe mycsharp.de [http://www.mycsharp.de/wbb2/thread.php?threadid=51839] und Entwickler-Forum [http://entwickler-forum.de/showthread.php?p=160820]

Jürgen