Type mismatch is displayed for .SET method (Blank value) - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Type mismatch is displayed for .SET method (Blank value) (/Thread-Type-mismatch-is-displayed-for-SET-method-Blank-value) |
Type mismatch is displayed for .SET method (Blank value) - dineshb - 07-19-2010 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) 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 RE: Type mismatch is displayed for .SET method (Blank value) - Arun Prakash - 07-19-2010 Code: strFlightID = arrABC(FlightID) 'value from Access data table (blank) Try to use the above code...While taking from Access it will give strFlightID =Null To avoid this try using the above code,i think it will solve your problem.. Kindly update on the progress.. RE: Type mismatch is displayed for .SET method (Blank value) - dineshb - 07-19-2010 Thanks Arun for the quick response. It is working fine. If you know, could youl tell me "Is the same issue in QTP10.0?" Thanks again. RE: Type mismatch is displayed for .SET method (Blank value) - Arun Prakash - 07-20-2010 Yaa Dinesh this is the same issue in QTP 10.0 also... RE: Type mismatch is displayed for .SET method (Blank value) - dineshb - 07-20-2010 Thanks Arun. Dinesh |