Re: Calling functions dynamically
- From: "Dag Sunde" <me@xxxxxxxxxxxx>
- Date: 31 Mar 2006 21:55:04 +0100
<hardieca@xxxxxxxxxxx> skrev i melding
news:1143825702.583974.83070@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks for that! But I'm surprised there is a way to invoke a method
via a string but there is no way to check for its existence
beforehand...
You do something like this...:
Sub yourSub()
...
On Error Goto NotExist:
result = myObj.maybeMethod(...)
' continues here if method existed...
...
ContinuePoint:
' The rest of the code that don't use the method
...
Exit Sub
NotExist:
Resume ContinuePoint:
End Sub
--
Dag.
.
- References:
- Calling functions dynamically
- From: hardieca
- Re: Calling functions dynamically
- From: eschuylerTAKE
- Re: Calling functions dynamically
- From: hardieca
- Calling functions dynamically
- Prev by Date: Re: Segments
- Next by Date: Re: Segments
- Previous by thread: Re: Calling functions dynamically
- Index(es):
Relevant Pages
|