Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Type mismatch is displayed for .SET method (Blank value)
#1
Solved: 10 Years, 9 Months, 1 Week ago
Hi,
I am using QTP9.5.
I am reading blank value from MSAccess Data table (means no value in the field).
The value is assigned to a variable & then set to a text field on screen (SWING UI).

Eg
Code:
strFlightID =  arrABC(FlightID)  'value from Access data table (blank)

JavaWindow("A").JavaInternalFrame("Flight").JavaEdit("FlightField").Set(strFlightID)

During run time display following error :
Type mismatch: 'JavaWindow(...).JavaInternalFrame(...).JavaEdit(...).set'


Why the error is displayed because in text field we can enter blank value?
Is any solution on it?
Is the same issue in QTP10.0?

Thanks in advance.
Dinesh
Reply


Messages In This Thread
Type mismatch is displayed for .SET method (Blank value) - by dineshb - 07-19-2010, 02:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  "UFT has stopped working" is displayed during running the script kotaramamohana 0 1,214 08-24-2018, 01:07 PM
Last Post: kotaramamohana
Question Is there a way to create dynamic objects by declaring the type of object as parameter lotos 3 1,999 11-08-2017, 11:15 PM
Last Post: lotos
  array to be captured and displayed Anu209 0 1,160 06-24-2017, 10:19 AM
Last Post: Anu209
  Multiple 2 IE browsers are being displayed VA1405 1 1,766 01-15-2014, 07:20 AM
Last Post: basanth27
Sad QTP Script | how to get object of some open window just using its class type,Java sophia.sabir 1 8,693 08-07-2013, 01:26 PM
Last Post: anil2u

Forum Jump:


Users browsing this thread: 1 Guest(s)