Forum Discussion

Philip_Baird's avatar
Philip_Baird
Community Expert
11 years ago
Solved

BuiltIn::InputQuery() does not set Value

Hi, I have the following function:   function testInputQuery() {   var s = "abc";   if( BuiltIn.InputQuery( "Test Complete", "Enter Value", s ) ) {     Log.Message( s...
  • TanyaYatskovska's avatar
    11 years ago

    Hi Phil,


     


    Let me quote the "InputQuery Method" article:


    Since JScript, C++Script and C#Script do not support the out parameters, the InputQuery function does not work in JScript, C++Script and C#Script projects. You can use InputBox as a workaround.


     


    As you are using JScript, the following should work for you:




      var s = "abc";


      Log.Message(BuiltIn.InputBox ("Test Complete", "Enter Value", s));