Appendix: Built-in Scripting Language This is an optional parameter; if no value is specified, then the default is 1 (JPG). Returned value This function returns the following possible values: Notes The Viewer task must be running for this function to be executed. The function can be called by the Background Task (e.g., by a Script or Math worksheet), but it will fail if the Viewer task is not running. Examples Save the currently active screen to \ project_name \Web\ScreenShot.JPG : SaveScreenShot() Save the screen file main.scr to \ project_name \Web\main.JPG : SaveScreenShot( "main.scr" ) Save the currently active screen as a BMP with the name of the currently logged user:
SaveScreenShot( "", UserName, 0 ) SetDecimalPoints Sets the number of decimal places to be displayed, for a specified range of real numbers. This setting will be used by all screen objects and animations that have the Auto Format option enabled, as well as by the AutoFormat function. Syntax SetDecimalPoints( numBaseValue , numDecimalPoints ) numBaseValue The base value of the range of real numbers. For negative values, the range includes all real numbers less than or equal to that value. For positive values, the range includes all real numbers greater than or equal to that number.
(You can set the other limit of the range by calling the function again with a new set of parameters.) numDecimalPoints The number of decimal places to be displayed, for the range of real numbers specified by numBaseValue . InduSoft Web Studio Page 543 Value Description 3 GIF 4 TIFF 5 Auto Value Description -1 Wrong number of parameters. -2 Wrong parameter types. -3 Invalid directory. -4 Second parameter cannot be empty. -5 Wrong format / invalid option for third parameter. -6 Failed to save file. -7 Failed to create compatible bitmap. 0 Success. Function Group Execution Windows Embedded Thin Client SetDecimalPoi ntGsraphic Synchronous Supported Supported Supported