Alternative to arrayscan function?

I am converting an old Panorama database to Panorama X. One of my procedures uses the arrayscan( function in conjunction with the Export statement.

I discovered that arrayscan( no longer exists in Panorama X. Is there another way to achieve its functionality in the context of Export? I need to “explode” multi-line data in a single record to distinct lines in the exported text.