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)
  • =?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)
  • Re: "is" operator on enums
    ... > When specializing the size of an enum, ... > public enum MyEnum: uint ... > static bool CompareToUInt32(object b) ... is compatible with a given type.expression can be cast to type. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Getting String Name from Enum?
    ... Public Sub MessageMe ... Public Function EnumName (Value as MyEnum) As String ... Is there a way I can do something similar with an Enum ...
    (comp.databases.ms-access)