07-16-2014 08:04 AM
Hi,
In my scenario I have two sequence files A and B.
From the Main sequence in the A file I have to call (in the same execution) the one of subsequences from file B.
The files A and B have the same FileGlobals variables definied.
How to secure the called subsequence (in the file B) will be executed having the FileGlobals values inherited from the caller (Main sequence in the file A)?
K.
07-16-2014 08:20 AM
Why wouldn't you use parameters? The subsequence in file B should have everything it needs from the caller passed through as parameters. This is the correct way to write software.
However, you can access the fileglobals of a caller by using Caller.FileGlobals
If you are set on making file Bs FileGlobals the same as File As FileGlobals then you would need to use some sort of copy where you loop through all the subproperties and copy them. You would have to do this at the beginning of subsequence in file B. Because it doesn't have a runstate until you enter it.
Regards,