6. Functions : Core Library Functions : StdList Function : Example—StdList function:
 
Share this page                  
Example—StdList function:
declare
NewList = ChoiceList default null;
enddeclare
begin
/* Build a list of weekday names */
NewList = StdList(Type = 'weekdays');
/* Build a list of month names */
NewList = StdList(Type = 'months');
/* Build a list of state names */
NewList = StdList(Type = 'states');
/* Build a list of values from a column in a table */
NewList = StdList(Type = 'query',
                  TblName = 'department',
                  ColName = 'dept_name');
end