use getlabel to load value label from externational dictiona

Discussions about CSEntry
Post Reply
Jing Liu
Posts: 42
Joined: July 1st, 2015, 3:19 am

use getlabel to load value label from externational dictiona

Post by Jing Liu »

Hi,

May I use getlabel() to load value label from external dictionary?

LHHLANGUAGE is a variable in an external dictionary named HHLISTING. I tried to use the following code to get the value label, but then i got error message "ERROR: Dictionary object expected near line 42 in CNULL_FF procedure".

getlabel( LHHLANGUGE,LHHLANGUGE(i) )

Is that possible to do that?

best

Jing
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: use getlabel to load value label from externational dict

Post by josh »

getlabel does work with external dictionaries. I just tested it to make sure. Hard to say why you are getting that error without seeing your dictionary and your application. From the error seems like CSPro doesn't think LHHLANGUAGE is a dictionary variable so it could be misspelled, could be that the dictionary hasn't been added to the application. You could also try using the dictionary name too in case the same symbols is defined somewhere else i.e. HHLISTING.LHHLNAGUAGE
Jing Liu
Posts: 42
Joined: July 1st, 2015, 3:19 am

Re: use getlabel to load value label from externational dict

Post by Jing Liu »

Thanks Josh,

I will test the program see if it works, as least it can compile now.

best

Jing
Post Reply