Kinook Software Forums

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

Thread Tools Rate Thread Display Modes
Old 08-27-2004, 05:56 AM
AndyFarr AndyFarr is online now
Registered User
Join Date: 08-12-2004
Posts: 16
Question Access Parameters of a Subroutine Call from script

I would like to read the parameters of a subroutine call from script.

I cant seem to do this. Any Suggestions

Step.Property("_EMAIL_ADDRESS") does not work


Step.Property("ParamValues") may not return the correct parameter as there is more than one parameter.

The one I want is Marked with Array='0' in the XML but there is nothing in the help about accessing Array Properties.
Reply With Quote
Old 08-27-2004, 06:10 AM
AndyFarr AndyFarr is online now
Registered User
Join Date: 08-12-2004
Posts: 16
Sorry Just took a punt and tried

Step.Parameter("ParamValues")(0) and it worked
Reply With Quote
Old 08-27-2004, 12:41 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,838
I think you meant Step.Property("ParamValues")(0)

Yes, array-type properties (for instance Subroutine Call action parameter names/values, VisBuildPro Project parameter names/values, and COM+ action properties/values) are returned as variant arrays. You can also use code like this to iterate over the values in the array

arr = Step.Property("ParamValues")
For i = 0 To UBound(arr)
Builder.LogMessage arr(i)

We'll get the docs updated as well.
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 01:25 PM.

Copyright 1999-2021 Kinook Software, Inc.