Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi. I'm trying to get Integer value for each tab using GetInteger().
However, only the first tab is input and other tabs are treated as *Cancel*. Why?
<CommandMethod("BBB", CommandFlags.Session Or CommandFlags.Interruptible Or CommandFlags.Modal)>
Public Sub MyCommand2()
For Each Doc As Document In Application.DocumentManager
Application.DocumentManager.MdiActiveDocument = Doc
Dim rst As PromptIntegerResult = Doc.Editor.GetInteger("INPUT : ")
If rst.Status = PromptStatus.OK Then
Doc.Editor.WriteMessage(rst.Value.ToString)
Else
Doc.Editor.WriteMessage("Failed.")
End If
Next
MsgBox("Done.")
End Sub
Solved! Go to Solution.