Hi everybody,
I use
in a fucntion, whereas the querystr is a select statement, which is tested to work properly.
when assigning it to a variable
I am using the name of the function as the variable, to pass the value returned to an if clause.
QTP gives me an error msg:
"Wrong number of arguments or invalid property assignment."
and quotes the line I am using the function in. (shown above)
Am I doing something wrong? Did i forget anything?
Any help would be great
I use
Code:
objDatabase.execute(querystr)
in a fucntion, whereas the querystr is a select statement, which is tested to work properly.
when assigning it to a variable
Code:
functionname = objDatabase.execute(querystr)
I am using the name of the function as the variable, to pass the value returned to an if clause.
Code:
if functionname() = "1" then
QTP gives me an error msg:
"Wrong number of arguments or invalid property assignment."
and quotes the line I am using the function in. (shown above)
Am I doing something wrong? Did i forget anything?
Any help would be great
![Smile Smile](https://www.learnqtp.com/forums/images/smilies/smile.gif)