-
Hi. I have defined an array in C# - InforPath 2007
public m_array as string()
how do i assign a value into it?
If I try to do it like this
m_array(0) = "smth"
i get an error saying
Object reference not set to an instance of an object. How do i assign a value into an array? Thank you!
-
Hi. The solution is simple but very strange. I have to convert the integer into string and then i can save it into the database, in a field which is integer. LOL! Thank you for your help anyway.
-
Hi. Thank you for your reply. I have even changed the database fields to decimal (from both tables where the primary key resides and in the one where it migrates). I am using sql server 2008 express as database; i have no double there to choose. The same problem. If it is text it works but i cannot use autoincrement on the primary key, and ...
-
Hi. I am having the fillowing code
m_cmdSqlCommand = New SqlCommand("INSERT INTO Comments(userId) VALUES('" + m_userId + "')", ...
-
Thank you cery much!
-
There is one more thing. When I am using
XPathNavigator(xnFormName = null)
i get this error
Error 1 'XPathNavigator' is a type and cannot be used as an expression.
I have commented the line and the program works, but why the error?
Thank you!
-
Thank you so much Qazi Anis. I did the job!
:-bd
-
Hi. I am trying to save data in a sql database using InforPath 2007 with my own code in Visual studio tools fro applications. I do not know how to connect the field i have on the template (form) with the code. For example in Visua Studio C# you write:
variable_string = txtBoxTex.text.
How do i Write the same in Visual studio tools fro ...
-
Hi. I am new with infopath and i have read that inforpath can use stored procedures from SQL server. How do i bind the varables from Sql to the controls on the form. Thank you.