Tutorial Toolkit Function Descriptions > Obsolete, Modified, and Broken Functions > Preferences (Chapter 16)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">   
Preferences (Chapter 16)
 
Modified
MSC.Patran outputs the error message “Wrong number of arguments for built-in function”.
Remove the variable MAXLEN from the routine since it only has 2 arguments and not 3.
Original Description Information:
(prefname, maxlen, value)
Description:
Retrieve the value of a string preference.
Input:
STRING
prefname[]
Name of preference to load.
INTEGER
maxlen
Max length of return string w/o null.
Output:
STRING
value[]
Result preference string.
INTEGER
<Return Value>
0; no error, else see error returned.
Error Conditions:
None.
Remarks:
None.
Examples:
None.
New Description Information:
(prefname, value)
Description:
Retrieve the value of a string preference.
Input:
STRING
prefname[]
Name of preference to load.
Output:
STRING
value[]
Result preference string.
INTEGER
<Return Value>
0; no error, else see error returned.
Error Conditions:
None.
Remarks:
None.
Examples:
None.