getMetadata("Info") for a stack

Hi all,

I have a small problem, I have a DICOM stack where I want to get the header from the first slice.
I tried the following code :
setSlice(1);
str = getMetadata(“Info”)
A=getInfo(“0008,1030”)

The getInfo(“0008,1030”) gives a proper response, and I get my string.
The problem is that getMetadata(“Info”) give an empty response in a stack.

In short getMetadata(“Info”) give a proper result in a single slice image but an empty result for a stack.

Is it a bug ?
Is it another way I could get all the header of one single slice from a stack ?

Regards,

Salim

Try using

str = getMetadata("label");

Thank you so much you solved my problem

Salim