shahudit
2nd December 2011, 11:22
Hi Experts
label.desc = tt.field.desc("whina000.mvst")
In the above statement, is it possible to get the value of the field (whina000.mvst) description in label.desc variable since tt.field.desc function return void?
Please guide.
Thanks
Best Regards :)
mark_h
2nd December 2011, 18:19
The syntax see is:
Syntax
void tt.field.desc( string field(17), ref string desc() mb)
Description
This retrieves information about a specified table field.
Arguments
field The field name.
desc This returns the field description.
So the format would be tt.field.desc("whina000.mvst",label.desc)
This needs to be moved to the tools forum.
andreas.toepper
5th December 2011, 11:33
It seems to me that Infor changed the syntax of this specific function in LN. I'll quote the reference given in the latest programmers guide (Dec 2010):
"Syntax:
function string tt.field.desc (string field(17), ref string desc() mb)
Description
This retrieves information about a specified table field. It is returned, and optionally also stored in the desc argument. (The optional argument is only present for backwards compatibility.)
Arguments
string field(17) The field name.
ref string desc() mb This returns the field description in the user's current language.
Return values
The description is returned."
So i think theres no general change in handling of void-type functions.
shahudit
5th December 2011, 15:30
Thanks Andreas. .....I found that in LN help.