Industry Online Support
Technical Forum
12/18/2012 11:27 AM | |
Posts: 1064 Rating: (72) |
In theory yes but it's not a good practice .You should open the db in the new fc or fb to be sure |
This contribution was helpful to1 thankful Users |
12/18/2012 11:53 AM | |
Joined: 12/22/2006 Last visit: 1/25/2022 Posts: 1742 Rating: (309) |
Hello, I add an extract of the programming manual explaining what happens when you are nesting blocks. To summarize, when you call a DB it remains open when you jump into another program block, until you call a new data block in that program block (you inherit the current data block). But when you come back to the calling block, the block active at that time is reactivated. On the other hand, for clarity, I would recommend to always specify at the beginning of a program block the data block that should be addressed. Because any change in block calls (call order, or calling a new data block)could lead to access datawords in a wrong (unexpected data block). I agree that there could be exceptions to that "best practice rule" to reach some specialresults, but it should remain in my opnion an exception ... AttachmentD:\Temp\CPU948-Programming guide-nesting blocks.pdf (281 Downloads) |
Best regards |
|
This contribution was helpful to3 thankful Users |
12/18/2012 1:48 PM | |
Posts: 26 Rating: (0) |
thanks very much for your answer |
Follow us on