When the method SetValueWithStatusEx is used in Visual Basic, the code cannot be compiled
Summary
When the method SetValueWithStatusEx is used in Visual Basic, the code cannot be compiled. A compile error appears, stating "Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic".
Description
When the method SetValueWithStatusEx is used in Visual Basic, the code cannot be compiled. A compile error appears, stating "Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic".
Solution
An issue has been addressed in the programming interface where a wrong return value was defined for SetValueWithStatusEx. Now, Visual Basic code is able to be compiled properly.
Information
Issue Number: 33686
Fixed on Date: 17.2.2015
Versions: 7.11 0 BUILD 18023 | 7.50 0 BUILD 25796
Related Articles
zenon logic runtime supports online change with c-compiled code
Summary The zenon logic runtime now also supports online change when c-compiled runtime code is used Description The zenon logic runtime now also supports online change when c-compiled runtime code is used Solution The zenon logic workbench and the ...
Checklist: VBA code compilation error
Time estimate: 15 minutes Please go through all the points in the following checklist. If necessary, confirm with IT Department any information you cannot verify before contacting your local COPA-DATA Representative. Error still occurs after ...
Server is not responding to user actions if SMS gateway method is used in a redundant system
Summary If a redundant system is used in combination with Message Controls SMS gateway dispatching method, after some time the runtime on the server is no longer responding. Description If a redundant system is used in combination with Message ...
API method UnloadedProjects() doesn't return unloaded sub projects
Summary When the API method UnloadedProjects() is used to return all unloaded projects from the workspace, unloaded projects that are included in a different project are not returned by the method. Description When the API method UnloadedProjects() ...
Required code for reload under Linux not active
Description The code in CThreadLocalValues::CreateVarReloadSubscriptionIfNecessary was not activated, which led to issues when the data points used were reconfigured in the IIoT service or the Historian service. The code has been activated and the ...