Forum Discussion

aduddella's avatar
aduddella
Contributor
16 years ago

How to access a collection of array values in a class

Hi



I have a class with name LINE which has different properties such as for example CLI,DSL,STATUS



Now I have another class with name Current_CLI in whcih I have a property by name LINE which is a array type



my idea is to access [object_current_CLI].[Line](0).CLI and assign value to it





this is my code




set cl_ob = ODT.Classes.new("Current_CLIS")




cl_ob = .Classes.("Current_CLIS")

cli_ob.Line(k).CLI = P_obj.rows.item(k).cells(1).innertext



but the above code throws an error could you please help me as i am stuck here



1 Reply

  • Hi,



    What exact error do you get when you run this code? On which line does it occur?