Jacques
Tue Mar 02 11:20:38 CST 2004
Hi,
Yes sorry I forgot to mention that it was COM for WSC.
I tried for example:
function GetIP(strComputerName)
Option Explicit
GetIP = strComputerName
end function
but got the error "expected statement" on trying to register the COM. the
error occurs on the line "Option Explicit".
I'm using primalscript.
How now?
cheers
jk
"Joe Earnest" <joeearnestNO@SPAMqwest.netPLEASE> wrote in message
news:ur%23JZjGAEHA.3712@tk2msftngp13.phx.gbl...
> Hi,
>
> "Jacques Koorts" <jkoorts@ccalimited.com> wrote in message
> news:1048t07i1967oc6@corp.supernews.com...
> > I've tried to use Option Explicit but don't know where to put this line
of
> > code. I've check through the docs on COM and could not find any
reference
> > that one can use option explicit in COM.
> >
> > any ideas?
>
> From your prior posts, I assume that, by "COM" you mean WSC. If not, then
> disregard this response. If so, the answer is yes. You can put it at the
> start of the global code for each component. If this is what you mean,
then
> for future reference, refer to WSC files or, more generally, to classes or
> XML encoding. COM can be any type of code that results in a standalone
> accessible component.
>
> Joe Earnest
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (
http://www.grisoft.com).
> Version: 6.0.564 / Virus Database: 356 - Release Date: 01-19-04
>
>