Access SplitView.Detail from Global Method

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.

no but SELF can be passed as a parameter

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
myMethod(self)

Thanks. But when I declare v As View and pass Self I get a type mismatch error "Expected view, but got class .

you have to pass the correct datatype… which is why I put the comment

// or whatever the type is

Doh! v As iOSView did the trick. Thanks!