Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
How does GetRowCount() work in RFT 8.0?
posted

Hi all,

I'm new with Test Advantage, I have a question about GetRowCount() for Infragistics ultragrid control. Per help document, 'to get the number of rows in the root band pass in "Nothing" as the parent rows', But if I pass "Nothing" as argument for GetRowcount(), I will get a compile error says 'Nothing cannot be resolved'. My statement as below:

System.out.println("Row count: "+dTransactionstable().GetRowCount(Nothing));

 

 

Is there any syntax error in my statement? How does GetRowCount() work in RFT?

Thanks,

David

 

 

Is there any syntax error in my statement? How does GetRowCount() work in RFT?

Thanks,

David

 

  • 6729
    Suggested Answer
    Offline posted

    Hi David,

    It looks like you are using Java code so you need to use the equivelence of Nothing which is  null. So you should use the following:

    System.out.println("Row count: "+dTransactionstable().GetRowCount(null));

    let me know if you have any question.

    Regards,

    Ammar