Hello Everyone,
Is there a way to check the field type? As in whether it is a calcfield or not?
I want to do this using RecordRef using C/AL code.
Thank you in advance.
*This post is locked for comments
Try this sample code
CustomerRecref.OPEN(DATABASE::Customer);
FOR i := 56 TO 60 DO BEGIN
MyFieldRef := CustomerRecref.FIELD(i);
MESSAGE('%1 %2',i, MyFieldRef.CLASS);
END;
where
CustomerRecref RecordRef
i Integer
MyFieldRef FieldRef
Thank You Mohana. CLASS method did the work.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Alexander Ermakov 2
SC666 1