PRODUCT






Home









Free Download








Installation Instructions





FAQ





FAQ








Ask A Question





LEARN SCRIPTING





Overview








Lesson 1








2


3


4


5








Exam





SAMPLE SCRIPTS





Computer








Internet








Administrators








Developers








Data








Miscellaneous





HELP / DOCUMENTATION





Commands








Automated Internet








Automated Editors








Sample Scripts








Precompiled Functions








System Features






  Help Page - makestr

( Some help pages may not display correctly in html because those help pages may have sample code
in them, part of which may be mis-interpreted as html tags.

All help pages, including this help page, are available in biterScripting with the help command. )




Function makestr Purpose Makes a str value from other types of values. Return Type str Syntax makestr(<type>(<value>)) Arguments <type> Can be real, int, str, bool. <value> A value of type <type>. This can be a constant, variable, another function, expression, inline command or a combination of these, together resulting in a value of type <type>. Return Value A constant of type str. The <value>, whether it is a variable, expression, or anything else, remains unchanged. Stream Input Streams apply to commands and not to functions. Stream Output Streams apply to commands and not to functions. Stream Error Streams apply to commands and not to functions, although any errors will be written here. Description Depending on <type>, makestr() function performs the type conversion as follows. <type> Return Value ------- ------------------------------------------------------------- real A str constant containing the real value. int A str constant containing the int value. str A str constant containing the original str value. (Makes a copy of the original value.) bool A str constant containing the word "true" or "false" depending the bool value. Restrictions Although any type can be converted to any other type using the makeXXXX functions, be careful, as it may sometimes produce unintended results. All system functions are declared as global, and can not be redeclared (overloaded). Valid Examples var str sFileCount var int fileCount ... # Assign some number of files to $fileCount ... set $sFileCount = makestr(int($fileCount)) The str representation of the int value in $fileCount is now available in $sFileCount. Invalid Examples var str s var int i set $s = $i Will produce error, since $s is of type str, which is of lower operability than int, which is the type of $i. Automatic conversion will fail, since it only happpens toward higher operability. set $s = makestr(int($i)) Will work. See Also constant var makereal makeint makebool conversion systemvar

© 2008-2013, biterScripting.com. All rights reserved.
biterScripting, biterScript, biterBrowser, biterMobile, biterScripting.com, FVA (Forward Variable Assignment) are trademarks of biterScripting.com. Is it biterScripting-compatible ? is a service mark of biterScripting.com. Explorer, Unix, Windows are trademarks, service marks or other forms of intellectual property of their respective owners.