Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error 501 Illegal Assignment
#4
Solved: 10 Years, 9 Months, 1 Week ago
The error that u were getting was because u were assigning a value to the variable..

Code:
Action_Result = fnAccountInfoPageOSA(iInitialDeposit, sFundAccFrom, sAccNickname, sChangeOwnerToJoint, sASPOption, sASPAmount, sASPAccFrom, sASPFreq, sASPStartDate)

But there was no value being returned by the function. Hnece no value was getting assigned and QTP was throwing error.

In function we were not getting any error because u were doing a assignment using wrong name. This name was being treated as a variable by QTP. Hence no error.


Reply


Messages In This Thread
RE: Error 501 Illegal Assignment - by Ankesh - 04-20-2012, 11:35 AM
RE: Error 501 Illegal Assignment - by Ankesh - 04-23-2012, 03:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Wrong number of arguments or invalid property assignment qtpro_exe 0 6,296 11-22-2011, 07:48 AM
Last Post: qtpro_exe

Forum Jump:


Users browsing this thread: 1 Guest(s)