I’ve got a whole bunch of places in my app where the user can modify something in any of many Master views and I want to show the change in the Detail view. So something like this:
[code]If Self.ParentSplitView <> Nil Then 'Update form
Select Case CurrentForm
Case 0
Form0View(Self.ParentSplitView.Detail).UpdateForm
more cases here
End Select
End If[/code]
I would like to create a global method to do this instead of replicating this code everywhere but “Self” can’t be used in a global method. It looks like I can replace the first line with:
If iOSSplitView.Available Then
but I’m stumped on how to call the update method of a particular View. Suggestions? Thanks in advance.
Sub myMethod(v as view) // or whatever the type is
If v.ParentSplitView <> Nil Then 'Update form
Select Case CurrentForm
Case 0
Form0View(v.ParentSplitView.Detail).UpdateForm
more cases here
End Select
End If
end Sub