Forum Discussion
YMinaev
13 years agoStaff
Hi,
I'd rewrite it like below, but you've got the idea:
This is because you probably want to know whether a user pressed OK or Cancel in the dialog. Also, you can set a meaningful default value which you can use as a default server name if the user didn't enter anything.
I'd rewrite it like below, but you've got the idea:
ProjectSuite.Variables.ServerName = BuiltIn.InputBox("Input Data", "Type the server name:", "");
if(ProjectSuite.Variables.ServerName != "")
Log.Message(ProjectSuite.Variables.ServerName);
else
Log.Warning("Nothing entered");
This is because you probably want to know whether a user pressed OK or Cancel in the dialog. Also, you can set a meaningful default value which you can use as a default server name if the user didn't enter anything.
Related Content
- 3 years agoMarkSchofer
- 5 months agoSmartBear
- 12 months agorhu
Recent Discussions
- 4 hours agoMW_Didata