title: Wrong number of arguments or invalid property assignment error in hp UFT
body: <pre><code>Set ParentObject=Browser("Title:=Sign-In").Page("Title:=Sign-In Home Page")
  PropertyRequired="name"
  PropertyValue="Agree and Login"
  Result="yes"
  
  
  Function WebButton(ParentObject,PropertyRequired,PropertyValue,Result)
  Call ReportResult(Result)
  Dim hit
  hit=0
     If PropertyRequired="" then
         PropertyRequired="name"
     End If
  
   If ParentObject.WebButton(PropertyRequired &amp;":="&amp;PropertyValue).exist then 
       ParentObject.WebButton(PropertyRequired &amp;":="&amp;PropertyValue).click
       hit=1
   End if
  
  If hit&gt;0 then
      Reporter.reportevent micpass,"The button: "&amp;PropertyValue,"Clicked    sucessfully"
  else
      Reporter.reportevent micpass,"The button: "&amp;PropertyValue,"not Clicked sucessfully"
  End if
  End Function
  </code></pre>
  
  <p>After I Call this function, then an error " Wrong number of arguments or invalid property assignments" displayed.</p>
  
  <pre><code>Call WebButton(ParentObject,PropertyRequired,PropertyValue,Result)  
  </code></pre>