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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Very welcome :) sometimes the easy things are the hardest to find :)
ASKER
Yeah :)
ASKER