我在变量标题中看到了错误消息。
using webFRIEDneu._Grab;
namespace webFRIED._Grab
{
public partial class Grabserie1 : System.Web.UI.Page
{
public string GetIdent(int Zahl, string Typ)
{
string s = string.Empty;
if (Typ == "Römisch")
s = ArabicToRoman.Convert(Zahl);
if (Typ == "Arabisch")
s = Zahl.ToString();
return s;
}//Kovertierung in Arabisch/Römisch/Alphabet
public void Page_Load(object sender, System.EventArgs e)
{
}//Page_Load
public void btn_Speichern_Click(object sender, System.EventArgs e)
{
int Ident1Von, Ident1Bis, Ident2Von, Ident2Bis, Ident3Von, Ident3Bis;
string Trennzeichen;
Ident1Von = int.Parse(this.tb_Grabident1_von.Text.ToString());
Ident1Bis = int.Parse(this.tb_Grabident1_bis.Text.ToString());
Ident2Von = int.Parse(this.tb_Grabident2_von.Text);
Ident2Bis = int.Parse(this.tb_Grabident2_bis.Text);
Ident3Von = int.Parse(this.tb_Grabident3_von.Text);
Ident3Bis = int.Parse(this.tb_Grabident3_bis.Text);
Trennzeichen = this.tb_Trennzeichen.Text;
for (int i1von = Ident1Von; i1von <= Ident1Bis; i1von++)
{
for (int i2von = Ident2Von; i2von <= Ident2Bis; i2von++)
{
for (int i3von = Ident3Von; i3von <= Ident3Bis; i3von++)
{
//lb_Ausgabe.Items.Add(string.Format("{0} {1} {2} {1} {3}", GetIdent(i1von, this.ddl_Grabident1.Text), Trennzeichen, GetIdent(i2von, this.ddl_Grabident2.Text), GetIdent(i3von, this.ddl_Grabident3.Text)));
}
}
}
}//btn_Speichern
protected void btn_Hilfe_Click(object sender, System.EventArgs e)
{
}//btn_Help
protected void btn_Beenden_Click(object sender, System.EventArgs e)
{
}//btn_Beenden
/********************************************************************************
* *
* Private Methoden *
* *
********************************************************************************/
}
}
我已经收到错误消息了。我所有的int变量都标有黄色三角形。
我不知道为什么它告诉我方法没有定义...
我做错了什么?有什么建议吗?也许缺少使用指令?