Hello experts,
I am trying to get Table ID from RecordLink."Record ID" field using code:
SomeTableID := "Record ID".TABLENO;
SomeTableID = Integer
"Record ID" = RecordID
(NAV 5.0 SP1)
Compiling this code I receive the following error:
The variable is not a record. 'Variable.Field' is invalid.
Why?
Any help appreciated.
Answers
using global variable with Subtype=RecordID => everything WORKS!
using any field with Subtype=RecordID => DON'T WORK!
strange :-k :-k :-k
i have used some other field named "abc" with the same subtype RecordID, same error.
nevertheless, i found that TABLENO works only with Variables, not fields.
Sorry, but there is the C/AL Symbol Menu where you could find any possiblity of your variables, fields, records... what ever! You should look at it at least.