Re: trying to access enum from one object in another



Must have shocked you. ?!?

Do you have your parents permission to post ?





"A L" <AL@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:D33E60AC-BB69-43C2-95B3-F3816E36DF17@xxxxxxxxxxxxxxxx

Whoops, sorry for the double post. Didn't realize that the newsgroup
microsoft.public.scripting.wsh is the same as microsoft.com/communities !!

AL

"A L" wrote:

Hello-

I'm trying to create a vbscript based WSH script. I'm having trouble
accessing an enum that is a part of one object (Persist.enumObjectType -
"myEnum") when using a function call in to another object
(ImportExportUtility).

The enum is actually off of Persist (enumObjectType), but I when running the
code in VB6, I have to reference class, not just an object.

Anyone know what I need to do to get this to work? Thanks much! AL


<job>
<reference object="ImportExportUtility.clsDBInterface"/>
<reference object="Persist.CDBPersist"/>
<object id="mIEUtil" progid="ImportExportUtility.clsDBInterface"/>

<script language="VBScript">

m_IEUtil.Import enumObjectType.myEnum, sParam2, sParam3

Set mIEUtil = Nothing

</script>
</job>

.



Relevant Pages

  • Re: trying to access enum from one object in another
    ... "myEnum") when using a function call in to another object ... The enum is actually off of Persist, ... m_IEUtil.Import enumObjectType.myEnum, sParam2, sParam3 ... give details of what is happening, error codes etc ...
    (microsoft.public.scripting.wsh)
  • trying to access enum from one object in another
    ... I'm having trouble ... "myEnum") when using a function call in to another object ... The enum is actually off of Persist, ... m_IEUtil.Import enumObjectType.myEnum, sParam2, sParam3 ...
    (microsoft.public.scripting.wsh)