09-13-2009, 11:38 AM
Hi,
Use following code example for excuting function from library.
Use following code example for excuting function from library.
Code:
'Use executefile function to load library files.
'Example:
executefile "C:\Documents and
Settings\tsheth\Desktop\Sample123.vbs"
x=50
y=50
result=Sum(x,y)
msgbox(result)
'Code in External Library file(.vbs file).
Public function Sum(a,b)
Dim sum
sum=a+b
Sum=sum
End Function