Home > Software engineering >  VB script to get parameters by another window procedure
VB script to get parameters by another window procedure

Time:06-05

As shown in figure, wrote a VB script file, now want to set one of the fixed value as a parameter, the user can manually input parameters and to change the value in the original script code, have who can teach,
OEditor. CreateCircle Array (" NAME: CircleParameters ", "IsCovered:=", true, "XCenter:=", _
"0 mm YCenter:", "=", "0 mm", "ZCenter:=", "0 mm", "the Radius:=", "10 mm", "WhichAxis:=", _
"Z", "NumSegments:=", "0")

CodePudding user response:

CodePudding user response:

What you mean? To the user by passing an array parameter in?
Directly on your creatcircle directly set a series of parameters don't have to, why want to use an array as a parameter to? If the array structure, content, order and what you want is a bunch of different fault? Can strictly strictly defined as far as possible, you have to do get enough psychological ready enough flexibility code over n times bug flip n n times the construction period

CodePudding user response:

User input which parameters?
User input? InputBox?

CodePudding user response:

Is how the user input interface to modify the parameters in the VB script

CodePudding user response:

reference milaoshu1020 reply: 3/f
user input which parameters?
User input? InputBox?

Is how the user input interface to modify the parameters in the VB script

CodePudding user response:

reference crispy big ice cream on the second floor response:
what mean? To the user by passing an array parameter in?
Directly on your creatcircle directly set a series of parameters don't have to, why want to use an array as a parameter to? If the array structure, content, order and what you want is a bunch of different fault? Can strictly strictly defined as far as possible, you have to do get enough psychological ready enough flexibility code over n times bug turn n times period n times

But I want to do is a program that allows users to input interface to modify the parameters in the VB script,

CodePudding user response:

Can allow the user to input parameters by means of input popup Windows;
To save the content below for VBS script file, and then double-click on the run:
 
'prompt the user input parameters;
S=inputbox (" please input parameters: ")
'display user input parameters;
Msgbox s

CodePudding user response:

And carefully looked at it and think, if is custom form input parameters can be achieved by the ActiveX DLL or EXE, like VBS operation WORD/EXCEL;
Run the example:


Download address:
Link: https://pan.baidu.com/s/1IAdRk9IC_L6EkQsyv7HCXA
The extracted code: fcl9
  •  Tags:  
  • VBA
  • Related