I’m trying to set/change the "User Attributes" of a Test.Lab project. So far I only managed to load an attribute list file (*.dtp) using the IBook::LoadAttributesList member:
TestLabBook.LoadAttributesList "Z:\Attribute List.dtp", 0, 1
I would like to run thought each attribute and update it after the list was loaded.
I think the only thing you are missing is a “Set” command before “propBlock”. The line should read:
Set propBlock = block_watch.Data
In VBA, a set command is needed whenever you are assigning a value to an object (rather than assigning to a simple numeric or string variable). "propBlock" was previously defined as an IBlock2 object.
Note that many of the examples provided with Test.Lab are written for VB.Net, which has some syntax differences compared to VBA.