askForInput()

ICE Data Services -

askForInput()
Previous  Top  Next


askForInput( [title] )

Calling this function will cause an abbreviated version of the Edit Studies dialog to be display so that users can edit parameters for the script. It can be called from preMain() or from within the main() function. Typically used in conjunction with Function Parameter routines.

Parameters

title
optional. title to display in dialog


Usage

function preMain() {

   setPriceStudy(
true);
   setStudyTitle(
"Example Script");
   setCursorLabelName(
"EMA"0);
   setDefaultBarFgColor( Color.blue, 
0 );
   setShowTitleParameters( 
false );

   ...
   ...

   
//force the script parameter menu to be displayed when the script
   
//is first loaded
   askForInput( 
"My EMA Script" );

}


FunctionParameter Object
setOnApply()