jaymukh
10th July 2002, 22:50
How to get description of a Label in Program Script. I have the label code like tiitm001.item etc. I want the description to be returned in a string. Similar to tt.session.desc ???
Any body knows...
Thanks in advance...
Jay
mark_h
10th July 2002, 23:06
Check out the file odllfindlabel. There is a routine called iadv0037.read.adv140.desc. It looks like it requires the language, package and label name. Then it returns the label description. You can run a bic_info on the ottdllfindlabel library.
Good Luck!
Mark
lbencic
10th July 2002, 23:09
Jay -
I see Mark's response now. The labels are stored in table ttadv140 - probably his function is easiest to get at it. If not you can read the table yourself.
jaymukh
11th July 2002, 00:00
Thanks a lot guys,
I used these functions...
void TT.FIELD.DESC ( string field(17),
ref string desc() )
void TT.SHORT.FIELD.DESC ( string field(17),
long length, ref string desc() )
In both case it gave me the Label/Description for that field. Second one is better as you can find the best description for the proper length you want.
Thanks a lot...
Jay