FTView SE Windows 10 FM20.dll issue

ArtWalls

Member
Join Date
Apr 2016
Location
Miami, Arizona
Posts
57
Gentlemen -

Our site is in the process of upgrading our clients from Windows 7 to Windows 10 (SE version 9.0), and we have a couple screens that use the Microsoft Forms 2.0 ComboBox ActiveX controls. The VBA behind the form loads the combo box with whatever is needed for the control (it varies).

When I load the display, the Display_AnimationStart event calls a routine LoadTapRcv, passing it the combobox control and some parameters for loading the values. The code looks like this:

Private Sub LoadTapRcv(byval cmbCurr as MSForms.ComboBox, dblStart as double, dblEnd as double, dblIncr as double)

with cmbCurr
.clear
for dblcurr = dblstart to dblend step dblincr
.AddItem dblCurr
next dblcurr
end with

End sub

The .clear command runs just fine, but when it gets to the .AddItem, I get the message:

RSIVBA Module has stopped working

A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.


Of course, it doesn't notify me, the client has no external access and I suspect it wouldn't work even if it did.

I've checked the FM20.dll versions on my Windows 10 engineering station vs the client, they have the same version. TechConnect said there might be some versions buried in another location on the client, and suggested I apply the latest patches. The latest patches didn't work.

I tried loading the values in using a .List, that blew out VBA as well.

Any ideas?
 
There actually is error handling in the routine, I just didn’t bring it across. No error code is produced, it just crashes VBA with the message above.

I’m going to try building it on the HMI server today, instead of my engineering station, see if that helps.
 
What a pain...

Our HMI server had an old (2010) version of the FM20.dll file, so it didn't recognize the ActiveX ComboBoxes; I had to delete all of them and replace them with a new one from the toolbox, of course setting all the properties the same, and ensuring the layering was OK. That still didn't fix the issue.

When I replaced all the ComboBoxes, I did the first one and tested it, seemed to be OK. I then copied it for the rest of them. So, it shouldn't have been an object issue, if it worked for one, it should work for all of them. The VBA still blew out at the same location, with the same indications.

When I was looking in the debug window at the client, I was doing some cleanup and tried to compile the code, it complained that it didn't know what the MSForms.ComboBox was on the parameter list. The client had the same reference to the same version of the FM20.dll on my engineering machine, but still wasn't compiling. So, just for kicks, I changed the parameter from a MSForms.ComboBox to an object.

voila!

My code now reads:

Private Sub LoadTapRcv(byval cmbCurr as Object, dblStart as double, dblEnd as double, dblIncr as double)

with cmbCurr
.clear
for dblcurr = dblstart to dblend step dblincr
.AddItem dblCurr
next dblcurr
end with

End sub


Just for kicks, I tested it on the older Windows 7 clients, still works. I'll call this one resolved.
 

Similar Topics

I have an FTView SE (V9) application that is using VBA to create a .CSV file and saving it to a specific folder on the hard drive. The operator...
Replies
0
Views
1,786
Hello... I've just had to buy a new lappy and it came with Windows 8.1, no options for W7, and I'm stuck on site with only my Studio 5000 v21 and...
Replies
22
Views
11,277
Guys, does anyone know how to run FTView Sudio 6.0 under Windows 7 64 bit? Rockwell says: use VWware, but this is not allowed by our IT man. I've...
Replies
3
Views
2,982
Dear All I have a question about the ActiveX and FTVIEW 6.0 on Windows 7. I have develop an application on FTVIEW 5 and use on Windows XP PRO...
Replies
3
Views
2,756
I am creating a global object in FTView SE 13. I want to have a string read from the PLC and display (in this case the tagname). So lets say...
Replies
4
Views
170
Back
Top Bottom