how to access complex datatypes/classes in VBA?

M

Marco Janssen

Hello,

i'm trying to fill a complex struct with data, but it
isn't working at all..

the struct:
Public request_uri As String
'"content" is an array with elements defined as
struct_Structcontentitem
Public content As Variant

Content struct..

Public sys_name As String
Public sys_page As String
Public sys_template As String
Public table As String
'"fieldKV" is an array with elements defined as
struct_StructfieldKV
Public fieldKV As Variant


I want to access the sys_template property of content(0),
but this isn't working..

Sub vulcomplex()
Dim a As New struct_StructmdataKVpage
a.content(0).sys_template = "1"
End Sub

If someone could help me with this, i would be very
grateful,

greetings,

Marco
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top