Forum Discussion

farhanahmed's avatar
farhanahmed
Contributor
13 years ago

Getting checked value from Checked List Box

hi

I have a question about checked list box.

How to get a checked box value from checked list box?

im writing script using vbScript in testcomplete 8

best regards

farhan

1 Reply

  • Hi Farhan,



    Have you tried aqObject.GetPropertyValue function. Below is the sample code from TestComplete. I hope this is what you are asking for.

    function GettingPropertyValue()

    {



      // Launches NOTEPAD.EXE with the C:\Hello.txt command line parameter

      TestedApps.notepad.Run();

      

      // Specifies an object that corresponds

      // to NOTEPAD's window

      var wndNotepad = Sys.Process("notepad").Window("Notepad", "Hello - Notepad", 1);

      var Obj = wndNotepad.Window("Edit", "", 1);

      

      var PropValue = aqObject.GetPropertyValue(Obj, "wText");

      

      // Posts the value of the specified property to the test log

      Log.Message(PropValue);

       

      // Closes NOTEPAD's window

      aqObject.CallMethod(wndNotepad, "Close");

      

    }