Forum Discussion

zunaira's avatar
zunaira
Occasional Contributor
9 years ago
Solved

Object required Excaption

i have had this exception , and i am just stuck in it.

 

whenever i try to get any property of any object i have this runtime error Object required even if i have got the object while checked through debuging, kindly help me members

 

Set firstGrid=obj_modelerRequest
Set countRow=firstGrid.wRowCount

 

Error:

Object required: 'firstGrid.VisibleRowCount'
Error location:
Unit: "Transree\TransreeAutomatedProject\Script\Functionality"
Line: 461 Column: 4.

 

 

firstGrid has got object while adding to Watch list n also has this propert "wRowCount" n has value "5".

  • i have found my mistake 

    i have to declare rowCount as varriable by using Dim keword , Set keyword is only used with Objects

2 Replies

  • NisHera's avatar
    NisHera
    Valued Contributor

     if you have defined "obj_modelerRequest" as a string
    You need to convert in to an object, othervice test will not work
    try...
    Set firstGrid=eval(obj_modelerRequest)

  • zunaira's avatar
    zunaira
    Occasional Contributor

    i have found my mistake 

    i have to declare rowCount as varriable by using Dim keword , Set keyword is only used with Objects