I have serveral buttons on the screen of my Main.pdi file, and these buttons open the Stations.pdi file, and pass some parameters to that file through VBA:
Private Sub StationCir1_Click(ByVal lvarX As Long, ByVal lvarY As Long)
Dim d1 As Display
Set d1 = Application.Displays.Open(FolderPath & "Stations.pdi", True)
' "FolderPath" is the path of the folder that has all the .pdi files.
d1.stationNumber = 1
'If I click on StationCir2, stationNumber would be 2,etc..
In my Stations.pdi file, I declared stationNumber as integer and the passing of the variable stationNumber works fine when using ProcessBook. But when I use ActiveView, stationNumber is always zero when a display file is opened in html since the variable is not being passed.
I'm wondering if there is any workaround to this problem.
Thanks a lot.