Get Variable Name

Does anyone know of a way of getting the name of a variable as a string?
Like in JS:
name = Object.Keys(myVar)[0]

@Gareth - I am not aware of an HSL call that performs this action. There are calls to retrieve string values for the names of sequences, functions, methods, workflows and current HSL file, but not one for the variable ID.

I will update if I find otherwise.


Thanks Nick. That would be great.