Forum Discussion
Krishna_Kumar
5 years agoContributor
Hi @prabhjot88singh ,
if you want to use the functions declared in unit1 to unit2 script files, you just have to give the "unit1" reference in "unit2"script file below the reference syntax.
reference syntax and example: Vbscript:
syntax - " 'USEUNIT [scriptName] "
example - (" 'USEUNIT Unit1 ") Javascript:
syntax - " //USEUNIT [scriptName] "
example - (" //USEUNIT Unit1 ")
please add this in the beganning of the script where you want to use the functions (in script "Unit2")
please find the below snippet for accessing the fumctions:
syntax and example for accessing the function : Vbscript: syntax - " [FIleName].[FunctionName] " example - " Unit1.samplefunction() " Javascript: syntax - " [FIleName].[FunctionName] " example - " Unit1.samplefunction() "
please let me know if i have answered yor answer or not
Related Content
- 2 months agoNicolaFilosa_SE
- 5 years agoAurore
Recent Discussions
- 44 minutes agoSubhraDas