How to call My Function with two parameters
Posted: Sat Nov 03, 2012 7:30 pm
Good afternoon
How to call My Function with two parameters of type string?
I've done this way:
DataTable dt = new DataTable();
dt.Columns.Add("CODIGO", typeof(int));
dt.Columns.Add("TIPO", typeof(int));
dt.Rows.Add(1, 1);
dt.TableName = "TABLE";
//Create text
StiText dataText = new StiText(new RectangleD(0, 0, 5, 0.5));
string tableName = "People";
dataText.Text = "{new ClsClass().RetornaDescricao(tableName, TABLE.TIPO)}";
dataText.Name = "DataText";
But it returns the following error: "Invalid expression term"...
Anyone know what is wrong and how to solve this problem?
Thank you for the help and attention of all...
How to call My Function with two parameters of type string?
I've done this way:
DataTable dt = new DataTable();
dt.Columns.Add("CODIGO", typeof(int));
dt.Columns.Add("TIPO", typeof(int));
dt.Rows.Add(1, 1);
dt.TableName = "TABLE";
//Create text
StiText dataText = new StiText(new RectangleD(0, 0, 5, 0.5));
string tableName = "People";
dataText.Text = "{new ClsClass().RetornaDescricao(tableName, TABLE.TIPO)}";
dataText.Name = "DataText";
But it returns the following error: "Invalid expression term"...
Anyone know what is wrong and how to solve this problem?
Thank you for the help and attention of all...