Get Command name from variable

Get Command name from variable

Hallo!
I try to get information about what Command is linked to variable.
In code like
VBA Code:

Public Sub LeftClickDown_SdSymbol(obElem As Element)
Dim var As Variable
Set var = obElem.ItemVariable(0)
Dim LockingName As String
LockingName = var.DynProperties("LockingName")
End Sub

LockingName is always "".
What I do wrong?

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