Page 1 of 1

How to call My Function with two parameters

Posted: Sat Nov 03, 2012 7:30 pm
by borges
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...

Re: How to call My Function with two parameters

Posted: Mon Nov 05, 2012 6:47 am
by Alex K.
Hello,

Can you please send us a sample project which reproduce the issue for analysis.

Thank you.