Re: Replace Variable with value in a statement?
- From: "Michael Harris \(MVP\)" <mikhar at mvps dot org>
- Date: Wed, 13 Jul 2005 20:40:43 -0700
agnus wrote:
> Can I replace a varibale with its value in a statement?
>
> Dim strFunction
> strFunction = "TESTFUNC"
>
> CALL strFunction ==) This one should be on runtime 'CALL TESTFUNC'
>
> Function TESTFUNC ()
> WScript.ECHO "HALLO"
> End Function
Dim strFunction
Set strFunction = GetRef("TESTFUNC")
CALL strFunction
Function TESTFUNC ()
WScript.ECHO "HALLO"
End Function
--
Michael Harris
Microsoft MVP Scripting
.
- References:
- Replace Variable with value in a statement?
- From: agnus
- Replace Variable with value in a statement?
- Prev by Date: Re: permission denied creating object
- Next by Date: Open Files
- Previous by thread: Re: Replace Variable with value in a statement?
- Next by thread: DHCP and VBScripting
- Index(es):
Relevant Pages
|