There are work arounds, but before we get into those
I think you’d be better served if we knew more about what you’re actually trying to accomplish
You can use a CLASS instead of a GROUP. That will allow you to NEW() it.
Another option would be to NEW a STRING the same size as the GROUP, then assign the group reference to that address. You’d need to dispose of the STRING when you’re done with it.
Something I discovered several years ago, when writing my PrivateClass.
If you pass a REFERENCE of the object to XFiles, maybe that would work. It allows RTL functions (such as WHAT()) to treat a class object similarly to a GROUP.
e.g.
YourClass CLASS
YadaYada
END
YourRef &YourClass
CODE
YourRef &= YourClass
!Now try passing YourRef to xFiles