Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Determining if a Step is checked (https://www.kinook.com/Forum/showthread.php?t=434)

tdc 05-12-2004 08:48 AM

Determining if a Step is checked
 
I am trying to determine if 'Am I Checked' is checked and then set a macro based on the result. This example only works for the current Step. How do I reference 'Am I Checked' in the script?




test
0
1
Am I Checked


VBScript

1
VBScript


kinook 05-12-2004 09:05 AM

If you know where the step is, you could use

If Project.Steps(vbldStepMain)(1).Checked Then
...

To locate the step by name, use

index = Project.FindStep("Am I Checked", vbldStepMain)
If Project.Steps(vbldStepMain)(index).Checked Then
...


All times are GMT -5. The time now is 09:00 AM.


Copyright © 1999-2023 Kinook Software, Inc.