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
60
GetCellData argument error
posted

 

This works if CountColumns is replaced with a number, otherwise I get an error "Column argument

 must be string or Int16."

CLR 2 2006 vol2

 

For  i  =  1 To  CountColumns
 Col = SwfWindow("CaridianBCT Service Maintenanc").SwfTable("machineHistoryGrid").GetCellData(3, i)
    ReportText = ReportText & vbNewLine & i & ") " & Col
Next
Reporter.ReportEvent micDone, "Columns", ReportText

Richard

Parents
No Data
Reply
  • 6729
    Verified Answer
    Offline posted

    Hi Richard,

    How are you initiating CountColumns? if you are using

    CountColumns = SwfWindow("CaridianBCT Service Maintenanc").SwfTable("machineHistoryGrid").GetNAProperty( ... )

    Then try casting it to int:

    For  i  =  1 To  CINT(CountColumns)

    I hope this will help

    Ammar

Children