that a function can return a value?or there are more differences?can't we have sub's instead of functions in library file?
<font color="blue">[i]If there is no struggle, there is no progress!
Yes, in vbs anyway, the only real difference is whether you return a value or not.
Yes, only one difference. I usually always use function whether a value is supposed to be returned or not.
But some may prefer a strict code to raise an error when you expect a value out of a method which doesn't return anything. So SUB is in picture for that
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **