access to variable adress in Runtime

access to variable adress in Runtime

hello
i really need to access to the variable address in run time
with this code i finde error :(

VBA Code:

Public Sub LeftClickDown_Default(obElem As Element)
Dim var1 As Variable
Dim myVal

Set var1 = thisProject.Variables.Item("Feeder 404 Current")
myVal = var1.Driver.DynProperties("IEC870_IOA1")



MsgBox myVal
End Sub


if fhis DynProperty doesn't exist in the zenon RT, plz tell me an other way to access address variable in runtime
Thanks a lot

This is a migrated post! Originally posted on 25.06.2011 by user anahita. Please be aware that information can be outdated.