Hi I am looking at a FB written by someone else
there is the code
I understand this is reading the DB number from the ACC and copying it into the variable DBNB and then opening the DB with the number DBNB...
My question is "why?" I always access the DB directly because it is related to the FB to which it is assigned.
I assume I am missing something very clever
there is the code
Code:
L DINO
T #DBNB
OPN DB [#DBNB]
I understand this is reading the DB number from the ACC and copying it into the variable DBNB and then opening the DB with the number DBNB...
My question is "why?" I always access the DB directly because it is related to the FB to which it is assigned.
I assume I am missing something very clever