Micro Focus QTP (UFT) Forums
Overflow error while converting a Long value to an Integer - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Overflow error while converting a Long value to an Integer (/Thread-Overflow-error-while-converting-a-Long-value-to-an-Integer)



Overflow error while converting a Long value to an Integer - Ankesh - 08-25-2011

Hi,

I need to fetch a particular cell value from SAPGuiTable... i am using the below code to get the row number first

Code:
intRowNumber=SAPGuiSession("Session").SAPGuiWindow("Change View 'Maintenance").SAPGuiTable("Maintenance view for ZSAPCATDI").FindRowByCellContent("Catalog Number",strMaterial)

then to get a corresponding value i am using the below code

Code:
strDiscreteMaterial=SAPGuiSession("Session").SAPGuiWindow("Change View 'Maintenance").SAPGuiTable("Maintenance view for ZSAPCATDI").GetCellData(intRowNumber,"Discrete Material")

I am getting Error - Incorrect parameter.

My understanding is that since getcelldata uses an integer number for row..whereas intRowNumber is a long value.
I tried to typecast it to integer using Cint(intRowNumber) but got Overflow error.

Please help me out.

Regards,
Ankesh


RE: Overflow error while converting a Long value to an Integer - Ankesh - 08-26-2011

Guys please help me out...

Plz give any possible solution for this.


RE: Overflow error while converting a Long value to an Integer - Ankesh - 09-06-2011

guys any help regarding this????/
i need to fetch the data of the row number 42141..

i can fetch the data till 32100...

but when i m fetching the data of the row number 42141.. i m getting one incorrect parameter error.

Any help would be appreciated.


RE: Overflow error while converting a Long value to an Integer - Ankesh - 10-05-2011

I found another way of doing it through the application itself..

Thanx all.