Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-27-2004, 04: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

and

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
  #2  
Old 08-27-2004, 05: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
  #3  
Old 08-27-2004, 11:41 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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)
Next

We'll get the docs updated as well.
Reply With Quote
Reply


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 07:11 PM.


Copyright © 1999-2023 Kinook Software, Inc.