Re: trying to access enum from one object in another



On Wed, 28 Feb 2007 08:47:55 -0800, 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>

Could you explain what the problem you are having is - you don't really
give details of what is happening, error codes etc

AJ

--
Cubical Land:
www.cubicalland.com
Nerds-Central:
nerds-central.blogspot.com

.



Relevant Pages

  • 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)
  • Re: Enums übergeben
    ... eine Variable vom Typ myEnum?? ... > Public Enum myEnum ... > Public Property Valueas Double ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • =?ISO-8859-15?Q?Verst=E4ndnisproblem_Enums?=
    ... Ich wollte eine Enum bauen, ... einer Map und geb den Index im Konstruktor der Enum mit. ... public enum MyEnum ... Ich hab das Problem zwar jetzt gelöst, in dem ich in jedem Enum-Element ...
    (de.comp.lang.java)
  • =?Utf-8?Q?Enums_=C3=BCbergeben?=
    ... Public Enum myEnum ... Public Class myClass ... Public Sub New(ByVal myEnum As ) ... Public Property Valueas Double ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • =?utf-8?Q?Re:_Variable_und_Instanz_einer_K?= =?utf-8?Q?lasse_mit_G=C3=BCltigkeit_f=C3=BCr_di
    ... ref this Enum theEnum ... in der "extension method" benutzen. ... Kann man in C# generell einer Methode einen Enum nicht als Ref-Parameter übergeben? ... einen "ref MyEnum" als Parameter angeben und der ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)