Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Thread Tools Rate Thread Display Modes
Old 05-12-2004, 09:48 AM
tdc tdc is online now
Registered User
Join Date: 04-01-2003
Posts: 4
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?

<?xml version='1.0'?>
<project version='5'>
<step action='Set Macro' type='0'>
<checked type='11'>0</checked>
<indent type='3'>1</indent>
<name>Am I Checked</name>
<step action='Run Script' type='0'>
<![CDATA[set pstep = step
if pstep.checked then
msgbox "set a macro"
msgbox "delete a macro"
end if
<indent type='3'>1</indent>
Reply With Quote
Old 05-12-2004, 10:05 AM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,758
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
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT -5. The time now is 02:09 PM.

Copyright 1999-2019 Kinook Software, Inc.