Highlighted
Contributor.. Contributor..
Contributor..
509 views

Visual C# Scripts

Jump to solution

Trying to create some scripts with Visual Studio 2010 , for C# 

 

The Function definition is as follows

 

int reg_save_param(string ParamName, object options)
Member of LoadRunner.IWebApi

 

object is a primary type , what kind of 'object' is it looking for ? Iam unable to overload with multiple options as we normally do for a regular script .. 

 

I tried all of the following , none worked .. What needs to be done to sort this out ? 

 

web.reg_save_param("C_Host","LB=\"connection-details\" RB=\"port\"");
web.reg_save_param("C_Host","LB=connection-details RB=port");

web.reg_save_param("C_Host","LB=connection-details, RB=port");

web.reg_save_param("C_Host","LB=connection-details; RB=port");

 

Thanks

Prabhu 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.

Hi,

 

I think these options should put in an array, like:

reg_save_param("test", new String[] {"LB=leftBoundary", "RB=rightBoundary" });

View solution in original post

2 Replies
Highlighted
Absent Member.
Absent Member.

Hi,

 

I think these options should put in an array, like:

reg_save_param("test", new String[] {"LB=leftBoundary", "RB=rightBoundary" });

View solution in original post

Highlighted
Absent Member.
Absent Member.

ha,  That worked like a charm , thanks ... 

 

I guess I was just put off with the definition as no object was defined. 

 

int reg_save_param(string ParamName, object options)
Member of LoadRunner.IWebApi

 

 

Thanks for your help ... 

 

PRabhu 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.