Hi,
I am using VFP 6.0. I have created a class with some functions. One of the functions is 'addCustomer' with following code:
I am using VFP 6.0. I have created a class with some functions. One of the functions is 'addCustomer' with following code:
Code:
LPARAMETER cust_Name,cust_Address
strConnect="driver={SQL Server};..."
nConnectionHandle=SQLSTRINGCONNECT(strConnect)
xyz=SQLEXEC(nConnectionHandle,"execute addCustomer '" + cust_Name + "','" + cust_Address + "'","myCursorName")
SQLDISCONNECT(nConnectionHandle)[\code]
When I click a button in the form where i have put the class,the function has to be called:
[code]thisform.testSQL1.addCustomer("...","...")[\code]
When I pass the parameters, in the form it's correct. But when I print them from the method in the class they are always empty? Does anyone know what the problem is?
Thanks!!!