Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I would love to have an external rule, which would start the first local form of an opened document independent of it's naming. If there is no form nothing should happen or maybe a hint, that the current document does not provide a local form.
So far I created this external rule with a list of possible names, which is not that clever. It should be more general by detecting local forms.
Dim PossibleFormNames As New ArrayList ' list with all possible names
PossibleFormNames.Add("GO")
PossibleFormNames.Add("Values")
PossibleFormNames.Add("WebInput") ' Customer 1
PossibleFormNames.Add("Formular 1") ' Customer 2
PossibleFormNames.Add("FactoryDesignProperties") ' Factory
PossibleFormNames.Add("DrawingControl")
PossibleFormNames.Add("nn")
Check = 0 ' for debugging
For Each FormName In PossibleFormNames ' running through list
Try
If Check > 0 Then MsgBox("Try show form " & FormName) ' debugging
iLogicForm.Show(FormName) ' try opening the form
Exit Sub ' if successful, leaving this rule
Catch : End Try
Next
' feedback, in case of no form
MessageBox.Show("Document doesn't provide a local form.", "No Form available")
P.S.: I'm not a computer programmer/developer, I'm a technical designer/engineer!
Cheers
Kay (Principal CAD-Consultant)
Kay (Principal CAD-Consultant)
Solved! Go to Solution.