dixie wrote:
Thanks Trevor, I do want the return code. So my ordinary Dim will work OK
as it has a default value. There is probably no point in changing it then.
When interrogating the return value, you might consider checking if the
variant is empty (IsEmpty() function) unless you have initialised the
variable beforehand.
You could also Dim as Double since Shell returns a variant of sub type
Double. In any case it's better to be explicit about these things, if
for instance you copied and pasted the code into another application,
perhaps written by someone else and were unaware they'd put say "DefInt
A-Z" up the top of the module then your untyped variable would default
to Integer. NASA lost a rocket this way :-)
--
This sig left intentionally blank