I want the to get the recordRef to the current Rec.
I know there is no such thing as Rec.getRecRef.
But what is the best way to get a RecRef variable to point to my Rec?
No not exactly.
I have a RECORD called Rec
And a RECORDREF called RecRef
The Rec is initialized, the RecordRef is not.
Now i want the RecRef to point to the same Record as Rec.
So why does RecRef.GETRECORD(Rec) doesn't fit? Do you have any Filtergroups or something on the Rec? If you want that RecRef does only points to the current pointed Recordset in Rec you can append a RecRef.SETRECFILTER();
It looks like a usable function, but according to help i have to use it like this:
RecordRef := recordid.GETRECORD
I tried:
RecRef.GETRECORD(Rec)
and
RecRef := Rec.GETRECORD;
And they both don't work.
For First one the compiler says it can't find the GETRECORD function,
And for the second one it gives an error about an invalid type conversion.
SOLVED
RecRef.SETTABLE(Rec) does not only set the table no., but also makes the RecRec point to the same record and applies the same filters to the RecRef.
Answers
RecRef.GETRECORD or RecRef.SETRECORD isn't the solution?
I have a RECORD called Rec
And a RECORDREF called RecRef
The Rec is initialized, the RecordRef is not.
Now i want the RecRef to point to the same Record as Rec.
RIS Plus, LLC
So why does RecRef.GETRECORD(Rec) doesn't fit? Do you have any Filtergroups or something on the Rec? If you want that RecRef does only points to the current pointed Recordset in Rec you can append a RecRef.SETRECFILTER();
RecordRef := recordid.GETRECORD
I tried:
RecRef.GETRECORD(Rec)
and
RecRef := Rec.GETRECORD;
And they both don't work.
For First one the compiler says it can't find the GETRECORD function,
And for the second one it gives an error about an invalid type conversion.
Sorry I meant GETTABLE and SETTABLE!
It sets a Record to the RecordRef Instance.
RecRef.SETTABLE(Rec) does not only set the table no., but also makes the RecRec point to the same record and applies the same filters to the RecRef.
Thx a LOT for your help! =D>