Have you checked if the 'user' variable is a string and initialized? Other common case when you can see this error, if you trying to assign value to variable using function which doesn't return anything.
Function fn() y = 7 End Function x = fn() <== type mismatch Function fn() fn = 7 End Function x = fn() <== OK On Fri, Jan 15, 2010 at 10:44 AM, Puneet <[email protected]> wrote: > yes it is in this line. > > On Jan 14, 9:28 pm, Roman Zilber <[email protected]> wrote: >> In which line do you have this error? Is it in: SwfWindow("HA - [Login >> Mode]_2").SwfEdit("txtUserId").Set user or in the place where you >> call the function? >> >> >> >> On Thu, Jan 14, 2010 at 10:09 AM, Puneet <[email protected]> wrote: >> > I am getting a type mismatch. What is the issue here? >> >> > contePPDHA_App = "HA.exe" >> > 'Enter the userid >> > SwfWindow("HA - [Login Mode]").SwfRadioButton("CLIENT").Set >> > SwfWindow("HA - [Login Mode]").SwfButton("btnContinue").Click >> > SwfWindow("HA - [Server IP]").SwfEdit("txtServerIp").Set "localhost" >> > SwfWindow("HA - [Server IP]").SwfButton("btnContinue").Click >> >> > Function HA_Login(user) >> > SwfWindow("HA - [Login Mode]_2").SwfEdit("txtUserId").Set user >> > End Function >> >> > -- >> > You received this message because you are subscribed to the Google >> > "QTP - HP Quick Test Professional - Automated Software Testing" >> > group. >> > To post to this group, send email to [email protected] >> > To unsubscribe from this group, send email to >> > [email protected] >> > For more options, visit this group at >> >http://groups.google.com/group/MercuryQTP?hl=en- Hide quoted text - >> >> - Show quoted text - > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en >
-- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
