Hello Cameron,
I finished my application and the result is perfect now. Thanks lot for your help.
Now I am thinking the situation after I release it to user.
Sorry, I forget mention to you: I am trying to get infromation from the first file in my assembly which includes this rule.
As you know, when we put first file into an assembly, it automaticly put "file name" without extension name and with ":1" as suffix (as "firstblock:1")
So I used your code and took off the extension name and put ":1" to run following snippet.
iProperties.Value("Custom", "BlockHeight") = iProperties.Value(oFirstName, "Custom", "BlockHeight")
But maybe there is a chance, user put same file twice into assembly by mistake and later delete the first one. Then the first file name will be: "firstblock:2".
Then above snippet will not work well.
Do yo know how to just get the display name which without extension name and ":1" or ":2" and so on in assembly? If we can do this, then we do not need to worry how the user put the file now.
Appreciate your help again?