Doc.MainFlowInDoc has Name = null
Dear friends,
The following snippet reports null for the name of the MainFlow in my testfile.
var oDoc = app.ActiveDoc; // Name = ...\Allerlei.fm
var oFlow = oDoc.MainFlowInDoc; // Name = null - should IMHO be A
var oPgf = oFlow.FirstTextFrameInFlow.FirstPgf; // Name = null
Fo a newly created file the report is A - as expected.
→ How can this property disappear even after MIF washing? In the UI of FM the flow is reported as A
That's the cause of my problems reported in this post.
→ I could recover from this strange situation by
- Create a new document portrait
- Import all styles from the existing
- Copy all contents of flow A to the new doc
But the question remains: how this property can disappear - at least for the script.

