As I said:
You need to define these properties in the CustomView class.
You need to add in the class code routines defining properties accessible from outsides.
Add two local variables in the class:
Private mFilePath, mFileName As String
The code below adds the FilePath and FileName and FilePath properties:
'set or get the FilePath property
Public Sub setFilePath(FilePath As String)
mFilePath = FilePath
End Sub
Public Sub getFilePath As String
Return mFilePath
End Sub
'set or get the FileName property
Public Sub setFileName(FileName As String)
mFileName = FileName
End Sub
Public Sub getFileName As String
Return mFileName
End Sub
Or as a subroutine where you can change both in the same routine:
'set the FilePath and FileName
Public Sub SetFilePathAndName(FilePath As String, FileName As String)
mFileName = FileName
mFilePath = FilePath
End Sub
Example in the Main module:
Log(SVGViewer1.FilePath)
Log(SVGViewer1.FileName)
SVGViewer1.SetFilePathAndName(File.DirRootExternal, "MyFile.svg")
Log(SVGViewer1.FilePath)
Log(SVGViewer1.FileName)
It's up to you to add the code to do what you need with FilePath and FileName.
Attached a modified version.