Aliased table and RTP57 (11) open call (OpenInsight 64-bit)
At 05 SEP 2021 01:29:17PM Richard Hunt wrote:
OI Version 9.4…
In my SOURCE application I have a file (table) called STATE. In my TEST application I have a file (table) called STATE. From my SOURCE application I "ALIAS" the file (table) STATE from the TEST application with the file (table) name of STATE_TEST. Now I have the SOURCE application file (table) TEST and the TEST application file (table) STATE_TEST. All is good so far. I can access both files (tables) with no problem.
Without going into great detail on why… When initially opening the STATE file (table), during the initial RTP57 OPEN call (with a custom MFS before the RTP57) the passed RTP57 variables are as follows…
CODE = 11
BFS = RTP57
HANDLE = The revmedia file handle for the SOURCE STATE file (table).
NAME = STATE*SOURCE
FMC = is null
RECORD = is null
STATUS = 1
And when initially opening the aliased file (table) STATE named STATE_TEST, during the initial RTP57 OPEN call (with a custom MFS before the RTP57) the passed RTP57 variables are as follows…
CODE = 11
BFS = RTP57
HANDLE = The revmedia file handle for the TEST STATE file (table).
NAME = STATE*SOURCE
FMC = is null
RECORD = STATE_TEST
STATUS = 1
So my question is… Is the RECORD variable passed by the RTP57 open call is always the alias file (table) name? And when the file (table) is not aliased then the RECORD variable is null?
Is there more info available for the RTP57 passed RECORD variable? The user help states that the RTP57 RECORD variable is "NULL" on input and the file handle on output.