Link to home
Start Free TrialLog in
Avatar of Ruttensoft
Ruttensoft

asked on

Get value back from a sub...

Hi

I want to do something in a sub and then it should give back a value

I know that it can be done something like this:

return = copyfile("c:\test.test")
if return = "ok" then
Do something
else
Do something else
end if

Private sub copyfile(file as string)
Do something
        => HOW CAN I HERE GIVE BACK AN ok if I succeeded?
End sub


Thanks

Sven
ASKER CERTIFIED SOLUTION
Avatar of softplus
softplus

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ruttensoft
Ruttensoft

ASKER

Thanks!
Very welcome :) sometimes the easy things are the hardest to find :)
Yeah :)